Hello all,

I know that this should be really simple. This is round 4 for me in trying to make this work.

Facts: NW6.5 sp4 (OES), Apache2, single ip address NATted from the outside-in.

I am trying to get virtual hosts working on my server. We have a web page www.domainname.com that works just fine. I want to be able to have biology.domainname.com, chemistry.domainname.com. All the same domain name with a different host name. Maybe this isn't virtual hosting and that is my problem.

The first thing I tried to do was to goto the Apache web configuration page at https://ipaddress:2200. It asked me import my configuration. When I did that with no changes, apache failed to load. I recovered from a backup copy of httpd.conf file and apache loaded. I compared the two files and the web configurator reconfigured ALL KINDS of stuff and put stuff in. I did not work.


So, I modified my httpd.conf file by hand as follows:

NameVirtualHost 172.20.0.3:80
Include "SYS:/Apache2/conf/biology.conf"

Biology.conf file is like this
#Biology.domainname.conf in file sys:/Apache2/conf
<VirtualHost 172.20.0.3:80>
ServerName biology.domainname.com
ServerAdmin webmaster@domainname.com
DocumentRoot "SYS:/web/biology"
ErrorLog "|SYS:/APACHE2/bin/rotlogs.nlm sys:/apache2/logs/error_log 5M"
CustomLog "|sys:/apache2/bin/rotlogs.nlm sys:/apache2/logs/access_log 5M" common
</VirtualHost>

When I start this, it kind of works. My default web server that sits on 172.20.0.3, (Natted to an external address) stops working and EVERYTHING is sent to this biology.domainname.com. So, I thought that maybe with a virtual web server, with 1 IP address, stops the default web site and EVERYTHING must be a virtual host. So I added this to the httpd.conf

Include "SYS:/Apache2/conf/www.conf"

This file includes:
#www.domainname.conf in file sys:/Apache2/conf
<VirtualHost 172.20.0.3>
ServerName www.domainname.com
ServerAdmin webmaster@domainname.com
DocumentRoot "SYS:/WEB/DOC"
ErrorLog "|SYS:/APACHE2/bin/rotlogs.nlm sys:/apache2/logs/error_log 5M"
CustomLog "|sys:/apache2/bin/rotlogs.nlm sys:/apache2/logs/access_log 5M" common
</VirtualHost>


It isn't working. I still only get the biology page.

Any suggestions?

Sincerely,

Tom Hafemann