[lug] Strange Apache VirtualHost behavior

David Anselmi anselmi at anselmi.us
Mon Nov 22 14:54:06 MST 2004


David Morris wrote:
> I have several virtual hosts setup on my Apache web server
> (1.3.26) and have just noticed a rather strange problem.
> 
> If I go to the following web address:
> 
>     http://david.morris-clan.net/foo/
> 
> I get a directory listing as expected.
> 
> If I go to this one:
> 
>     http://david.morris-clan.net/foo
> 
> (Note the lack of a trailing '/') I get redirected here:
> 
>     http://belsambar.morris-clan.net/foo/

No trailing slash gives me a 404 at the moment.  Perhaps you want mod_dir?

[...]
> NameVirtualHost 66.93.122.13
> 
> <VirtualHost 66.93.122.13:80>
> 	ServerAlias		morris-clan.net
> 	ServerAlias		*.morris-clan.net

Should the first of those be ServerName rather than Alias by any chance?

Dave



More information about the LUG mailing list