It turns out that this (and probably the OP’s problem as well) isn’t related
to Apache at all, but a networking issue.
As long as the /etc/hosts files match on both machines, all is well…
It also turns out that, even though deprecated in the RFC’s, an underscore
is not legal in a virtual host name.
Thanks to sub on the IRC channels for the input!

John D

-----Original Message-----
From: John Dangler [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 05, 2005 12:05 PM
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Apache vhosts revisited
Importance: High

After going back through the entire thread dealing with the vhosts problem
that was running here recently, I tried to setup my local fileserver with
the ‘default’ apache server, and adding 1 virtual host.
 
my apache2.conf file is basically a default (out of the box) setup, with the
line
Include conf/vhosts/vhsots.conf uncommented so that it is included.
 
my vhosts.conf file has
<NameVirtualHost 192.168.1.36:80>
 
<VirtualHost 192.168.1.36:80>
  ServerName Mambo
  DocumentRoot /var/www/localhost/htdocs>
</VirtualHost>
 
<VirtualHost 192.168.1.36:80>
  ServerName GenoFit
  DocumentRoot /usr2/genofit/public
  <Driectory /usr2/genofit/public>
    order deny,allow
    Allow from all
    AllowOverride All
    Options FollowSymLinks
  </Directory>
</VirtualHost>
 
from the local machine, both hosts are accessible.
from another machine on the same router (192.168.1.35):
browsing to 192.168.1.36 gives me the Apache default page.
browsing to 192.168.1.36/GenoFit gives me “Not Found” The requested URL
/GenoFit was not found on the server
browsing to 192.168.1.36/Mambo gives me “Not Found” The requested URL /Mambo
was not found on the server
 
ping works in both directions, so I’m sure that it’s something I did/didn’t
do correctly in the config files.
After reading through the wiki docs on virtual hosts, and the docs on the
apache site (which are a little harder to digest), I think that the vhosts
file is ok, but I’m not sure about the apache2.conf file…
 
Any input is appreciated.
 
John D



-- 
gentoo-user@gentoo.org mailing list

Reply via email to