Configure VirtualHost in wamp

0

I have the following configuration in 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 working with IP 172.31.42.42.

In addition to the above configuration, I activated the "proxy_module" module.

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

What is wrongly configured or missing?

    
asked by anonymous 08.04.2015 / 18:50

1 answer

0

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

2 - Look for the line:

 # Include conf/extra/httpd-vhosts.conf

3 - Remove the # and save the configuration file.

4 - Restart Wamp

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

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

    
18.08.2015 / 19:01