caddyserver / caddy

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
https://caddyserver.com
Apache License 2.0
58.03k stars 4.03k forks source link

How to prohibit caddy from automatically occupying IPv6 port 80? #3724

Closed lxhao61 closed 4 years ago

lxhao61 commented 4 years ago

The caddy2 configuration does not enable port 80, but caddy has automatically enabled port 80 for IPv6. How to prohibit it from occupying this port? QQ图片20200913231336

francislavoie commented 4 years ago

Caddy uses port 80 for the ACME HTTP challenge as part of the Automatic HTTPS feature.

https://caddyserver.com/docs/automatic-https

If you don't want this, you can either turn off auto_https with the global option, or change the default HTTP port to something else with the http_port global option.

For next time, please ask your usage questions on the Caddy community forums. We prefer to keep the GitHub issue board for bugs and feature requests. Don't forget to fill out the thread template so we can help you!

mholt commented 4 years ago

Specifically, assuming you are using the Caddyfile, to use only a specific interface, use the bind directive: https://caddyserver.com/docs/caddyfile/directives/bind