LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] apache mod_vhost_alias and normal vhosts

[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
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell