I am having trouble successfully adding VirtualHost entries to
httpd.conf. Whatever entry is last determines the DocumentRoot
setting. The relevant section of my httpd.conf file looks like this:
<VirtualHost 207.254.90.13>
DocumentRoot /usr/local/etc/httpd/htdocs/library/gov/990/
ServerName www.form990.org
ErrorLog logs/form990.org-error_log
TransferLog logs/form990.org-access_log
</VirtualHost>
<VirtualHost 207.254.90.13>
DocumentRoot /usr/local/etc/httpd/htdocs/
ServerName www.nonprofits.org
ErrorLog logs/error_log
TransferLog logs/access_log
</VirtualHost>
This entry allows a web browser to find the home page for
www.nonprofits.org, but requesting " www.form990.org" simply finds the
same page. If I reverse the order of the entries, then both
www.nonprofits.org and www.form990.org go to the www.form990.org
subdirectory.
I have read the documentation on Virtual Hosting at www.apache.com,
and that says the order should not matter. Do I need to change the
/etc/hosts.allow or /etc/host.conf file?
I am running Apache Server version 1.0.5 on Linux.
Please reply to:
--Cliff