How to disable caddy2's port 80 entirely?

I want to use it for other purpose. Can I disable caddy2 from using it entirely?

Be aware that usage of port 80 is necessary to solve the ACME HTTP challenges, so it’s strongly recommended to keep that working, for reliability (if, for some reason, a vulnerability is found in the other challenge types, of which only ALPN is also enabled by default; this has already happened in the past).

Why exactly do you need to do this? It’s likely there’s a better alternative solution.

But that said, you can configure the http_port global option to change it from the default of 80 to something else.

1 Like

You have to turn off auto HTTPS. Am mobile but that will make Caddy not use port 80 at all. Do not recommend. :slight_smile:

1 Like

This topic was automatically closed after 30 days. New replies are no longer allowed.