I installed httpd using brew
.
I edited /usr/local/etc/httpd/httpd.conf
and changed:
Listen 8080
to:
Listen 80
Restarted the service:
brew services restart httpd
But Apache's still listening on port 8080:
Benjamins-Mac-mini:~ benjamin$ sudo lsof -iTCP:80 -sTCP:LISTEN
Benjamins-Mac-mini:~ benjamin$ sudo lsof -iTCP:8080 -sTCP:LISTEN
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
httpd 24646 benjamin 4u IPv6 0xcc42d5b2e5fcae09 0t0 TCP *:http-alt (LISTEN)
httpd 24647 benjamin 4u IPv6 0xcc42d5b2e5fcae09 0t0 TCP *:http-alt (LISTEN)
httpd 24648 benjamin 4u IPv6 0xcc42d5b2e5fcae09 0t0 TCP *:http-alt (LISTEN)
httpd 24649 benjamin 4u IPv6 0xcc42d5b2e5fcae09 0t0 TCP *:http-alt (LISTEN)
httpd 24650 benjamin 4u IPv6 0xcc42d5b2e5fcae09 0t0 TCP *:http-alt (LISTEN)
httpd 24651 benjamin 4u IPv6 0xcc42d5b2e5fcae09 0t0 TCP *:http-alt (LISTEN)
httpd 34288 benjamin 4u IPv6 0xcc42d5b2e5fcae09 0t0 TCP *:http-alt (LISTEN)
httpd 34289 benjamin 4u IPv6 0xcc42d5b2e5fcae09 0t0 TCP *:http-alt (LISTEN)
httpd 34290 benjamin 4u IPv6 0xcc42d5b2e5fcae09 0t0 TCP *:http-alt (LISTEN)
How can I force httpd to listen to port 80?
I tried restarting the service using sudo
as port 80
is a privileged port, with no success.