Quantcast
Channel: WampServer - WampServer English
Viewing all articles
Browse latest Browse all 3177

Unable to Connect in Multiple Domains using WAMPSERVER (4 replies)

$
0
0
This is my configuration

Domain 1

<VirtualHost *:80>
ServerAdmin adminemail
DocumentRoot "c:/wamp/www/"
ServerName localhost
ServerAlias localhost
#ErrorLog "logs/error.log"
#CustomLog "logs/access.log" common
<Directory "c:/wamp/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>

<VirtualHost *:80>
ServerAdmin adminemail
DocumentRoot "c:/wamp/www/domain1"
ServerName domain1.com
ServerAlias www.domain1.com
#ErrorLog "logs/error.log"
#CustomLog "logs/access.log" common
<Directory "c:/wamp/www/domain1">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>



====================
Domain 2

<VirtualHost *:80>
ServerAdmin adminemail
DocumentRoot "c:/wamp/www/"
ServerName localhost
ServerAlias localhost
#ErrorLog "logs/error.log"
#CustomLog "logs/access.log" common
<Directory "c:/wamp/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>

<VirtualHost *:80>
ServerAdmin adminemail
DocumentRoot "c:/wamp/www/domain1"
ServerName domain2.com
ServerAlias www.domain2.com
#ErrorLog "logs/error.log"
#CustomLog "logs/access.log" common
<Directory "c:/wamp/www/domain2">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>



HOST File

127.0.0.1 domain1
::1 domain1

127.0.0.1 domain2
::1 domain2


============

WHen I browse on my network domain1.com work well, it response well, but when I browse domain2.com it says "Unable to Connect".

What part did I missed in my configuration..

Please help me

Thank you

Viewing all articles
Browse latest Browse all 3177

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>