Category Archives: port

Ubuntu – Change Apache2 Port from 80 to 8080

1. Edit the following file:

2. Change the line Listen 80 to Listen 8080

3. You also need to change the VirtualHost so that the server can use the correct server/port when redirecting traffic.
Then edit the following file:

4. Change the line <VirtualHost *: 80> to <VirtualHost *: 8080>

5. Restart the Apache2 service:

Apache will now listen on port 8080