Hi,
I am trying to set up a machine with virtual hosts on my
intranet but am not getting it to recognize both. Here's
what my httpd.conf looks like:
Port 80
ServerName eclipse
NameVirtualHost 172.30.50.22
<VirtualHost 172.30.50.22>
ServerName eclipse
ServerAlias eclipse
DocumentRoot /usr/local/apache/share/htdocs
ScriptAlias /cgi-bin/ /usr/local/apache/share/cgi-bin/
</VirtualHost>
<VirtualHost 172.30.50.22>
ServerName dsendtest
ServerAlias dsendtest
DocumentRoot /usr/local/apache/share/htdocs/dinotes
ScriptAlias /cgi-bin/
/usr/local/apache/share/htdocs/dinotes/cgi-bin/
</VirtualHost>
With this setup I'm getting a "URL not found" error and the
error log says that it's looling for /usr/local/apache/httpd
which is not where I've specified above. I have removed the
DocumentRoot statement elsware in my config files as well as
ServerRoot. If I replace the VirtualHost with a system name
(instead of its IP), I get only the latter directory for
both URL's. Both names are legit name in my DNS. Not sure
what else to try.
Please help!
Michael Clay