Re: URI host part changes when accessing default files
> I know, however the CERN server remaps directory URLs
> automatically. See,
The document in question is CERN httpd manual, and this directive
applies to it only when it's acting as a normal HTTP server, not as a
proxy. In other words, from the HTTP server configuration perspective
the URL forms with and without the trailing slash can be mapped to the
same resouce. However, from the client perspective these two URLs are
different, and the slash affects translation of relative URLs.
CERN httpd has code to generate different directory listings depending
on if the trailing slash is there. NCSA httpd always issues a
redirect to the form with the trailing slash, CERN doesn't require
this for generated directory listings, only for HTML welcome pages.
Ari Luotonen email@example.com
Netscape Communications Corp. http://home.netscape.com/people/ari/
501 East Middlefield Road
Mountain View, CA 94043, USA Netsite Server Development Team
> Which says:
> By default there is no difference between directory names with
> and without a trailing slash when it comes to welcome pages.
> The one without a trailing slash will cause an automatic
> redirection to the one with a trailing slash, which then gets
> mapped to the welcome page.
> If it is desirable to have plain directory names to produce a
> directory listing, and only the ones with a trailing slash
> cause the welcome page to be returned, set the AlwaysWelcome
> directive to off:
> AlwaysWelcome Off
> Default value is On.
> It should work exactly the same as the syntactically correct URL.
> Cheers, Craig