Hello everybody, this is my situation:
I have installed Xampp for Wxp using the installer version. I have opened port 80 in the firewall ( I can see the port open here: http://www.upseros.com/portscan.php).
In C:\WINDOWS\system32\drivers\etc I edited the host:
127.0.0.1 mysite1.com
127.0.0.1 mysite2.com
190.38.xxx.xx mysite1.com
190.38.xxx.xx www.mysite1.com
190.38.xxx.xx mysite2.com
190.38.xxx.xx www.mysite2.com
And the code for httpd-vhost
- Code: Select all
NameVirtualHost *:80
<VirtualHost *:80>
ServerName mysite1.com
ServerAlias www.mysite1.com
DocumentRoot "D:/xampp/xampp/htdocs"
<Directory "D:/xampp/xampp/htdocs">
IndexOptions +FancyIndexing NameWidth=*
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName mysite2.com
ServerAlias www.mysite2.com
DocumentRoot "D:/xampp/xampp/htdocs/site"
<Directory "D:/xampp/xampp/htdocs/site">
IndexOptions +FancyIndexing NameWidth=*
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName localhost
DocumentRoot "D:/xampp/xampp/htdocs"
</VirtualHost>
The funny thing is initially (with one domain) everything was working well, but when I tried to add the second domain. It says: Can`t connect with server... I don`t know what`s wrong.
I appreciate any help . Thank you so much for your time
PS: I have been reading the posts of this forum, and I have tried everything, and nothing works for my case... Please help =(