Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Change default port from 80 to 81 Apache2 Monterey

So, I'm living in Italy and use Fastweb as service provider. With this Fastgate router I cannot forward the 80 port. Was already in use for router admin...


I don't want to buy a new router so I try to change the default port for the embedded web server.


I currently use calibre on 8080 port and work fine. I think has an embedded server so is only "a listening port" don'y actually use Apache2.


How I can change (o recreate) the actual port on my web server from 80 to another? I find only instructions for Mountain Lion...


thank for your help!


Luca






Mac mini, macOS 12.3

Posted on Apr 9, 2022 12:45 AM

Reply
Question marked as Best reply

Posted on Apr 10, 2022 2:22 AM

The following command is useful to determine which https.config is actually used (in case more than one is installed):


which httpd


Does localhost:81 in the browser work?


Maybe this article is helpful:

https://neto.medium.com/host-apache-vhost-ssl-monterey-os-12-cd5f9bb7186c

7 replies

Apr 10, 2022 1:41 AM in response to Ejecutor

Brew offers Apache2. 🙂


The fact that Homebrew and Apple versions are separated is good because the don't mess with each other.


Besides, the Apache is updated more frequently by Homebrew than Apple. Moreover, you can add other components (PHP, SQL databases, etc). PHP, for example, isn't provided anymore directly by Apple.


Have you tried to configure your Apache to listen to another port and forward that port on your router?

Change default port from 80 to 81 Apache2 Monterey

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.