LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: urls that don't end in /

To: <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: urls that don't end in /
From: Scott Laird <laird@xxxxxxxxxxxx>
Date: Mon, 2 Jul 2001 11:10:02 -0700 (PDT)
Assuming that you're using Apache, set the ServerName for the real server
to the virtual server name.  When a user does a 'GET /some/directory',
Apache returns a redirect to 'http://$servername/some/directory/'.


Scott

On Mon, 2 Jul 2001, Noah Roberts wrote:

> When I use urls like www.myserver.org/directory/ everything works fine.
> But if I don't have the ending / then my client attempts to find the
> realserver and ask it, and it uses the hostname that I have in
> /etc/hosts on the director which is to the internal LAN so it fails
> badly.
>
> I don't even know where to attempt to look for an fix to this one.....
>
>
> _______________________________________________
> LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
> Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
> or go to http://www.in-addr.de/mailman/listinfo/lvs-users
>



<Prev in Thread] Current Thread [Next in Thread>