Hey guys, having trouble with virtual hosts on my CentOS run Apache2 server.
my httpd.conf is as follows (changed the domain and user names for security)
Code:
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot /home/user1/domain1.com/public_html
ServerName domain1.com
<Directory />
AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot /home/user2/domain2.com/public_html
ServerName domain2.com
<Directory />
AllowOverride All
</Directory>
</VirtualHost>
Now domain1.com shows the correct files however by going to domain2.com it is showing the files for domain1.com.....
i tried in a different browser incase it was showing a cached page from a previous viewing but its not.
Any suggestions ?
Cheers.