[ILUG] apache mod_vhost_alias and normal vhosts
Stephen Shirley
diamond at skynet.ie
Tue Aug 29 22:17:04 IST 2006
Hi,
I have a server, running debian sarge, with apache2. The following is
the entire vhost configuration:
-------------------------------8<--------------------------
NameVirtualHost 213.239.204.216:80
<VirtualHost 213.239.204.216:80>
VirtualDocumentRoot /srv/%1/public_html
</VirtualHost>
<VirtualHost 213.239.204.216:80>
ServerName www.ichbinn.net
ServerAlias ichbinn.net ja.ichbinn.net
DocumentRoot /var/www/
</VirtualHost>
------------------------------->8--------------------------
What's supposed to happen (according to my understanding of the apache docs):
- http://www.ichbinn.net, http://ichbinn.net and http://ja.ichbinn.net
be served from /var/www
- http://svn.ichbinn.net should be served from /srv/svn/public_html
What actually happens:
- http://www.ichbinn.net, http://ichbinn.net are served from /var/www
- http://svn.ichbinn.net is served from /srv/svn/public_html
- http://ja.ichbinn.net is served from /srv/ja/public_html
Can anyone suggest why this might be happening? After many hours of
poking at this, i'm leaning towards the idea that there might be a bug
in apache2 relating to the fqdn of a host being handled differently
when it comes to vhosts.
Steve
--
"You are technically correct, the best kind of correct."
- Bureaucrat 1.0, Futurama
More information about the ILUG
mailing list