Hi, I'm trying to set up a virtual host on a new OS10.5.6 machine.   I'm
using settings that I run on several other OSX machines (also 10.5.6) and
they work fine, but for some reason fail on this machine .
The goal is set up the virtual host in the directory
/Users/dad/research/dataenv.   The virtual host name is "DataEnvironment".

With my current settings, when I run apachectl -t I get:

   [Fri Mar 13 16:48:48 2009] [warn] VirtualHost 127.0.0.1:80 overlaps with
VirtualHost 127.0.0.1:80, the first has precedence, perhaps you need a
NameVirtualHost directive
   [Fri Mar 13 16:48:48 2009] [warn] NameVirtualHost *:80 has no
VirtualHosts
   Syntax OK

When I run apachectl -S I get:

   [Fri Mar 13 16:56:45 2009] [warn] VirtualHost 127.0.0.1:80 overlaps with
VirtualHost 127.0.0.1:80, the first has precedence, perhaps you need a
NameVirtualHost directive
   [Fri Mar 13 16:56:45 2009] [warn] NameVirtualHost *:80 has no
VirtualHosts
   VirtualHost configuration:
   127.0.0.1:80           DataEnvironment
(/private/etc/apache2/users/dad.conf:1)
   Syntax OK


So it looks like apache things there's a virtual host in the right place.
However, when I go to http://DataEnvironment in any browser, I get, e.g:

Safari can’t find the server.

Safari can’t open the page “http://dataenvironment/” because it can’t find
the server “dataenvironment”.
If anyone could shed some light that would be great (and sorry if I'm making
an obvious stupid error).

best,
Dan


Below I've included the text of my /private/etc/hosts and httpd-vhosts.conf
configuration files.  I've also uncommented the virtual host include line in
httpd.conf.


/private/etc/hosts:


127.0.0.1: localhost
255.255.255.255 broadcasthost
::1             localhost
fe80::1%lo0 localhost
127.0.0.1: DataEnvironment



httpd-vhosts.conf:

<VirtualHost 127.0.0.1:80>
DocumentRoot "/Users/dad/research/dataenv/"
ServerName DataEnvironment

<Directory /Users/dad/research/dataenv>
Options FollowSymLinks All MultiViews ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>

<Directory /Users/dad/research/dataenv/System/CGI-Executables>
Options FollowSymLinks All MultiViews ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>

</VirtualHost>

Reply via email to