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
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!