Hi all,
Having serious trouble using Virtual Host.
I'm having ServerName as and DocumentRoot as
Code:
ServerName mydomain1.com:80
DocumentRoot "/var/www/html"
and have:
Code:
NameVirtualHost *:80
<VirtualHost *:80>
ServerName mydomain2.com
DocumentRoot /home/SCI
</VirtualHost>
all other codes are in default.
I have both index.html in /var/www/html/temp1/ and /home/SCI/temp2/
when I go to mydomain1.com/temp1/ it didn't work but mydomain2.com/temp2/ worked fine with the above settings.
but if I added a "s" behind the http temp1 worked prefectly. (Which I'm very confused..., I do have cgi-bin script set up though but I believe there's nothing to do with the settings inside)
When I comment out the
Code:
DocumentRoot /home/SCI
under VirtualHost this time mydomain2.com/temp2 worked but not mydomain1.temp1
Can any one help this dummy?
Cheers
Jam
