httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Owen Boyle <>
Subject Re: Need help with /
Date Fri, 12 Apr 2002 12:58:46 GMT
Søren Neigaard wrote:
> I have a "erhverv" directory under "PROXY_IP/my/site_manager/static_html/",
> and if I do a "" I get that directory just fine, but
> if ommit the last "/" I get 404, and now the PR guys want to be able to use
> "".

If you leave off the trailing slash, apache doesn't know whether you
want a file called "erhverv" in the docroot, or a subdirectory. So it
issues a redirect to But how does it get
the servername? It uses the ServerName directive - if that is missing
(as in your case) it uses the IP address hence the client gets the wrong
URL when the request following the redirect comes in. 

In other words:


Server: Sorry, don't have file like that, but I do have a directory.
I'll make you a redirect... Oh dear, no ServerName. Never mind, I'll use
the IP address. OK client, try


Server: Hmmm. No ServerName in this request - I'll just go to the first
VirtualHost then... Yikes! No file called erhverv! - oh well: 404....

Read the Docs about ServerName and UseCanonicalName to understand what's
going on.

Owen Boyle.

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message