As you can see they are sharing the same IP address. There is only one NIC card in the server. Yet I'm told it is supposed to be possible to set up multiple websites on a single server.
The last two keep giving me error messages. The only one that doesn't is the first one with the * wildcard. But none of them really work the way I want! With all of them, the second VirtualHost is totally ignored. When I open my browser and type in www.scholastictrackssandbox.ca I'm taken to the DocumentRoot of www.tjtflooring.ca which is /var/www/html. However, I explicity set the DocumentRoot for sholastictrackssandbox.ca to /var/www/sandbox.
I'm really frustrated. Please someone explain to me what I need to do set this up properly.
I notice that you have left off the 'www' part of scholastictrackssandbox.ca, perhaps that is the reason? Since the 'www' version is not specified it will default to some other document root (perhaps this is /var/www/html defined earlier in your httpd.conf?)
form of virtual hosts. Remember that you may want a "default" virtual host - the first one listed. This might be the IP address of your machine so that if someone goes directly to the IP it will use that one.
<a href="http://forums.hotjoe.com/forums/list.page" target="_blank" rel="nofollow">Java forums using Java software</a> - Come and help get them started.
posted 13 years ago
You were right. It was the fact that I left off the triple www on the URL for scholastictrackssandbox.ca. It's working now. Thanks. Sometimes I just can't see the forest for the trees!