Newbie here, I have configured multiple virtual hosts on my server. Each points to the proper directories. However I have a problem when trying to bring up one site and then another. Say I open site1.com it displays properly, then I browse to site2.com it loads the layouts of my site1.com site but with some broken links and image files.
<VirtualHost *:80>
ServerName site2.com
DocumentRoot "C:\Program Files\Apache Group\Apache2\htdocs\site2"
</VirtualHost>
<VirtualHost *:80>
ServerName site1.com
DocumentRoot "C:\Program Files\Apache Group\Apache2\htdocs\site1"
</VirtualHost>
This is what I have in my conf file. Any ideas? Thanks in advance.
<VirtualHost *:80>
ServerName site2.com
DocumentRoot "C:\Program Files\Apache Group\Apache2\htdocs\site2"
</VirtualHost>
<VirtualHost *:80>
ServerName site1.com
DocumentRoot "C:\Program Files\Apache Group\Apache2\htdocs\site1"
</VirtualHost>
This is what I have in my conf file. Any ideas? Thanks in advance.