Configure Virtualhost in wamp

Asked

Viewed 172 times

0

I have the following configuration on wamp:

<VirtualHost *:8080>
    ServerName 192.168.10.129 
    ProxyPreserveHost On 
    ProxyPass / http://172.31.42.42/ 
    ProxyPassReverse / http://172.31.42.42/ 
    DocumentRoot "c:/wamp/www/site"
</VirtualHost>

I have a virtual machine running on IP 172.31.42.42.

In addition to the above configuration, I enabled the "proxy_module".

When typing in the browser 192.168.10.129:8080 does not open the site, the message appears "This web page is not available".

What is misconfigured or missing?

1 answer

0

1 - Open the file %sys%/wamp/bin/apache/conf/httpd.conf

2 - Search by line:

 # Include conf/extra/httpd-vhosts.conf

3 - Remove the # and save the configuration file.

4 - Restart the Wamp

I once helped a friend who was having problems with the Wamp simply with these tips. I believe the problem that is caused is that the Wamp does not come with the vhosts.conf included by default.

Note: Remember to configure the files system32/etc/hosts.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.