Apache - VirtualHost and port 8080

0

I installed wamp in windows 10, port 80 is busy, I must use another one. Example 8080 I also create a virtualhost example localserver.dev.

In httpd.conf

    NameVirtualHost *:8080
    <VirtualHost *:8080>  
        DocumentRoot C:/wamp/www/ 
        ServerName localserver.dev 
    </VirtualHost>

in this publication in: C: \ Windows \ System32 \ drivers \ etc \ hosts

   127.0.0.1        localhost
   127.0.0.1        localserver.dev

Previously it entered the server with: localserver.dev

Now I must place: localserver.dev:8080

There is something you can do to avoid having to enter the port number after the server name. Bone to enter as before.

Thanks in advance.

    
asked by Julio Pérez 01.06.2016 в 17:50
source

1 answer

2

The only option is to listen to HTTP through 80 or HTTPS 443.

One option is to change the port of the other application to release the 80 and redirect according to context from the apache through proxypass / proxypassreverse to the new port.

This way you could keep the two services by 80 and access without putting the port in the URL

    
answered by 14.10.2016 в 01:52