I have finally installed apache, php & mysql on my server running Debian 3.0r1 and got one of my sites transfered across from some other hosting that I used.
Anyway, this morning came the time to set up the virtual hosts so that I can have my other two websites working from the same server..I have read a few howtos, and I think that I have done everything okay, but I still cannot access the second site.
I have moved my first site into a new directory, and set up another directory in the www directory for the two sites, so I have the followong:
I have set these as the root directories of the sites, but if I go to www.siteone.com
everything works fine, however if I go to www.sitetwo.com,
I still get the first site, not the second site in /var/www/sitetwo.com.
I have smoothwall acting as a rounter which port forwards anything on port 80 through to my server - I know this was working as I had the one site running on it yesterday.
Anyway, here is my httpd.conf file for the virtual hosts:
### Section 3: Virtual Hosts
# VirtualHost: If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them.
# Please see the documentation at
# for further details before you try to setup virtual hosts.
# You may use the command line option '-S' to verify your virtual host
# If you want to use name-based virtual hosts you need to define at
# least one IP address (and port number) for them.
Any help would be greaetly apreciated.