soldier
2008-03-16 04:47:54 UTC
NameVirtualHost *:80
ServerAdmin admin@site1.com
ServerName www.site1.com
ServerAlias site1.com
DocumentRoot "/nfs/site1/html"
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
ErrorLog logs/site1/error_log
CustomLog logs/site1/access_log common
Similarly, I've another virtual host for site2 whose docroot is "/nfs/site2/html".
I've added the following lines in /etc/hosts file: IP_Address www.site1.com IP_Address www.site2.com Now, If I open browser and type my IP address then it is executing the code in /nfs/site1/html folder. But if I try to access www.site1.com from browser its displaying the message "website cannot be found". So I used www.site1.com:80, still I get the same error message. Can anyone please help me on this.
Thanks,
Mohan