Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to make caddy not listen to port 80? #50

Closed
luckypoem opened this issue Oct 10, 2018 · 1 comment
Closed

how to make caddy not listen to port 80? #50

luckypoem opened this issue Oct 10, 2018 · 1 comment

Comments

@luckypoem
Copy link

hi.
i'm using caddy's https proxy feature.
root@umh:# cat /root/caddyfile
mydomain.com:3443 {
gzip
log access.log
forwardproxy
}
root@umh:
# lsof -i:80
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
caddy 349 root 6u IPv6 183473 0t0 TCP *:http (LISTEN)
root@umh:#
root@umh:
# lsof -i:3443
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
caddy 349 root 5u IPv6 183472 0t0 TCP *:3443 (LISTEN)
root@umh:~#

in my caddyfile,i didn't mention port 80,why caddy occupies/listen on port 80?
how to make caddy not listen to port 80?

@sergeyfrolov
Copy link
Member

It uses port 80 to do the ACME-HTTP challenge (that's how you get TLS certificate)
I believe you can disable that challenge, and get TLS certificate another way, but I would not reccomend it for detectability reasons. Just use default port 80 and 443 and pretend to be just a simple innocuous webserver: that's the whole point.

This issue is not forwardproxy-specific and is about generic caddy usage, so it is better asked elsewhere, like https://caddy.community. I am sure caddy community had discussed this question before, try googling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants