I have a computer at home and one at work that are both running Apache2 Apache-AdvancedExtranetServer (the default install that ships with Mandrake 9.2).
At home, I've got virtual hosting working just fine with about 4 different domains getting served.
At work, I can't get any subdomains to be served. We've got two different domains pointing at this IP and regardless of what URL I request, the root page is served from /var/www/html/
Here is my /etc/httpd/conf/vhosts/Vhosts.conf file:
NameVirtualHost *:80
<VirtualHost *:80>
ServerName 216-165-210-197.crescentb.com
DocumentRoot /var/www/html/
HostnameLookups on
Options +Includes
AddHandler server-parsed .html
</VirtualHost>
<VirtualHost *:80>
ServerName
www.norwoodtower.com
ServerAlias norwoodtower.com *.norwoodtower.com
DocumentRoot /var/www/html/nt
</VirtualHost>
I wish there was more explicit logging available. For instance, /var/log/access_log only shows the request came in for / --- it doesn't say what domain, etc.
What are the other dependencies required for virtual hosting to work? Anyone know how to enable verbose logging in Apache?
Appreciatively,
di11rod