Hey everyone,
I know there's topic after topic about this and I hate starting a new thread, but I've tried everything I've read and so far nothing has worked. Plus, I'm not totally clear on a few things about the second website.
I used Xampp to install all the goodies. I then installed a phpBB forum. Everything works great. http://www.domain1.com goes to where it needs to. Now I want to add a second forum or html website. The first one is in B:/xampp/htdocs. I wanted to put the second one in B:/xampp/htdocs2. My httpd-vhosts.conf reads like this:
NameVirtualHost *:80
<VirtualHost www.domain2.com:80>
ServerName www.domain2.com
DocumentRoot "B:/htdocs2"
</VirtualHost>
<VirtualHost www.domain1.com:80>
ServerName www.domain1.com
DocumentRoot "B:/xampp/htdocs"
</VirtualHost>
My server is behind a router and my servers local IP is 192.168.1.107 and port 80 is forwarded. All traffic goes to B:/xampp/htdocs no matter how I try to configure it.
What am I doing wrong and how do I fix it?
Also, where does my directory for site 2 have to be to use the PHP and MySQL from site 1?
Thank you very much for your help.