How can I configure Apache virtual hosts to run on port other than 80

Tim Dawson

I've recently upgraded my laptop to Win10 (from Win7). Since doing so I've discovered that something is running on Port 80 so my Apache Local Server won't work as it did. I got lost trying to detect what it was on Port 80 (it's not Skype), so I'm trying to set up Apache to use Port 8080.

I have succeeded up to a point. If I enter 'localhost:8080' in the browser address bar (Firefox FWIW), I get the test 'It works!' message. If I enter my usual virtual host names and append ':8080' it works too. But surely I should be able to get it to work with just 'localhost' etc?

I have set httpd.conf to 'Listen 8080'

I have tried setting the first line of the v-hosts definitions to <VirtualHost *:8080> instead of the previous <VirtualHost 127.0.0.1> but it makes no difference.

I have tried appending ':8080' after the ServerName in the V-hosts file (which seems logical) but it doesn't work. I have also tried turning off my Kaspersky Internet Security (but obviously I don't like doing this too much). I have read several articles on Stack Overflow and elsewhere which come close to my problem, but they all assume that the steps I've taken already will be sufficient.

Is there something else I should have done?

Here is the screenshot from TcpView: enter image description here

Marged

Your first screenshot of tcpview already shows the process blocking port 80. But it does not say 80, it was translated into the name of the protocol running on port 80, which (usually) is http.

In order to see 80 in the Local port column you have to disable translation which can be done through the menu or by pressing Ctrl + R:

TcpView

To see more details about the process which opened the port you might want to run procexp (with an administrative account).

I think others had the same problem already and a solution to this can be found on a different site on stack exchange: https://superuser.com/questions/352017/pid4-using-port-80

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How can I run a Spring Boot application on port 80

Node.js app can't run on port 80 even though there's no other process blocking the port

How do I get Flask to run on port 80?

How can a single nginx virtual server deal with both port 80 and 443?

How can I configure /etc/hosts with ansible orchestration

How can I set up a load balancer for multiple virtual hosts (apache)

How can i run wildfly 8 in port 80

(PureScript) How can I run a DOM event listener callback within a monadic context other than Eff?

How to configure Jenkins to run on port 80 on Centos 7

NodeJS HTTP - listen on other port than 80

(How) Can I run more than one Spring Boot application on the same server and port?

How can I use port 80 instead of 3000?

How can I start the python SimpleHTTPServer on port 80?

How to configure Jenkins to run on port 80

How can I get a startup application to run in another workspace other than #1?

In node.js, how to check at runtime if I can run on port 80?

How to restrict apache virtual hosts?

Can I use apache virtual hosts to have many prefixes?

How to configure name based virtual hosts on Apache 2.4 in Linux?

Can I use another port other than 443 for SSL communication?

How can I open port 80?

How can I set up Apache to use port 1 and other ports below 80?

How can I configure Visual Studio Code to recognize files with extensions other than .js as Javascript

How can I configure a service to run at startup

How can I make ssh-copy-id use a port other than 22?

How to access website from apache2 (linux from GCP) from other port than 80?

How do I test virtual hosts in Apache before I buy the domains?

How should I configure multiple virtual hosts with a single configuration file in Apache?

Docker container allows me to curl hosts port 80 , but not other port