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

Wamp Virtual Host Error 502 (1 reply)

$
0
0
Hi,


I am facing an issue when accessing when accessing wampserver 3.0.6 64bit virtual host.


Same is working when I connected on WiFi, but not working on LAN.


Getting 502 bad Gateway Error (DNS Error)


Following are my configurations :


--------- httpd.conf ------------

Listen 0.0.0.0:82
Listen [::0]:82

ServerName localhost:82


# Virtual hosts
Include conf/extra/httpd-vhosts.conf



--------- httpd-vhosts.conf ------------

<VirtualHost *:82>
ServerName localhost
ServerAlias localhost
DocumentRoot "D:/wamp/www"
<Directory "D:/wamp/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Allow from all
Require all granted
</Directory>
</VirtualHost>

<VirtualHost *:82>
ServerName mysite.local
DocumentRoot "D:/wamp/www/test"
<Directory "D:/wamp/www/test/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Allow from all
Require all granted
</Directory>
</VirtualHost>


------------etc/hosts-----------

127.0.0.1 localhost
127.0.0.1 mysite.local

::1 localhost
::1 mysite.local



After all these changes i have restarted all wamp servies, but no luck.




[localhost] this URL is working fine but the below virtual host is not working


[mysite.local] Getting error 502 bad gateway, i also tried to access url like [mysite.local] but no luck again.


DNS error

DNS error (the host name of the page you are looking for does not exist)

Please check that the host name has been spelled correctly.



Any help will be appreciated.


Thanks in Advance.

Viewing all articles
Browse latest Browse all 3177

Trending Articles



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