E
E
edik892016-10-28 18:55:40
Apache HTTP Server
edik89, 2016-10-28 18:55:40

How to set up a virtual host on port 8080 in Apache 2?

I'm trying to set up a virtual host on port 8080. I'm using WampServer, Apache version is 2.4.9. My config in httpd-vhosts.conf:

Listen 8080
<VirtualHost *:8080>
    ServerAdmin [email protected]
    DocumentRoot "c:/wamp/www/seo-service/web"
    ServerName seo-service.loc
    ErrorLog "logs/dummy-host2.example.com-error.log"
    CustomLog "logs/dummy-host2.example.com-access.log" common
</VirtualHost>

The hosts file contains the required entry:
127.0.0.1 seo-service.loc
The address seo-service.loc::8080 does not work. I tried to set port 80, everything works as it should at seo-service.loc. Doesn't want to work on 8080.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question