Hi All,
I need some help to configure my Red Hat 7 server to support name-based
virtual hosting for two web domains, using Apache 1.3.12 (bundled with RH7).
I have only one IP address which is dynamically allocated. I have tried the
following in my httpd.conf file:
NameVirtualHost *
<VirtualHost *>
ServerName www.foo.com
DocumentRoot /home/foo/html
...
</VirtualHost>
<VirtalHost *>
ServerName www.bar.com
DocumentRoot /home/bar/html
...
</VirtualHost>
When I restart Apache after making these changes both www.foo.com and
www.bar.com end up going to the same document root. The server does not
process the requests to their respective directories.
I've tried in vain to use the samples given at Apache's website for how to
setup name-based virtual hosting, but it does not work. As for my web
browser, it is HTTP 1.1 compliant and it is enabled, as required.
Thanks for any help you can provide.
Regards,
Richard