![]() |
Name based Virtual Servers
Help, ive fallen and i cant get up. this virtual server stuff is gonna land me in an early grave :(
the problem is that i have 2 sites set up with two virtual servers on my apache 2.0 server. all seemed well at first, but then i tested the configuration out and found out differently. using the www.mysite1.com address brings me to the correct site. WOOT! using the www.mysite2.com address brings me to mysite1. :( BOO! i have been over hundreds of websites looking for a solution to this problem. PLZ someone help me out here. Below is my config file for the virtual server section: NameVirtualHost * <VirtualHost *> DocumentRoot "/var/www/html/websites/mysite1" ServerName www.mysite1.com </Directory "/var/www/html/websites/mysite1"> allow from all Options +Indexes </Directory> ServerAlias mysite1.com DirectoryIndex Index index.html index.htm </VirtualHost> <VirtualHost *> DocumentRoot "/var/www/html/websites/mysite2" ServerName www.mysite2.com </Directory "/var/www/html/websites/mysite2"> allow from all Options +Indexes </Directory> ServerAlias mysite2.com DirectoryIndex Index index.html index.htm </VirtualHost> any input here would be very helpfull, im at my witts end |
Think this:
Quote:
don't know if that is your problem, though hamish |
All times are GMT -5. The time now is 01:13 AM. |