1. The problem I’m having:
hello, thanks, first time poster.
in the past, this worked for me
caddy reverse-proxy --from 100.115.202.129:5001 --to localhost:9096 --debug
but now i get
Error: loading new config: http app module: start: listening on :80: listen tcp :80: bind: address already in use
yes, i know this is a common error but i cannot figure out the correct command line to work around that?
is the only to create a caddyfile? i know that is possible but i cannot figure out how to convert
caddy reverse-proxy --from 100.115.202.129:5001 --to localhost:9096 --debug
to a caddyfile.
and disable Auto HTTPS rules
perhaps you can help me?
thanks, david
2. Error messages and/or full log output:
caddy reverse-proxy --from 100.115.202.129:5001 --to localhost:9096 --debug
2024/01/10 00:06:05.949 WARN admin admin endpoint disabled
2024/01/10 00:06:05.949 INFO http.auto_https enabling automatic HTTP->HTTPS redirects {"server_name": "proxy"}
2024/01/10 00:06:05.950 INFO tls.cache.maintenance started background certificate maintenance {"cache": "0xc000250200"}
2024/01/10 00:06:05.951 DEBUG http.auto_https adjusted config {"tls": {"automation":{"policies":[{"subjects":["100.115.202.129"]},{}]}}, "http": {"servers":{"proxy":{"listen":[":5001"],"routes":[{"handle":[{"handler":"reverse_proxy","transport":{"protocol":"http"},"upstreams":[{"dial":"localhost:9096"}]}]}],"tls_connection_policies":[{}],"automatic_https":{}},"remaining_auto_https_redirects":{"listen":[":80"],"routes":[{},{}]}}}}
2024/01/10 00:06:05.956 WARN tls storage cleaning happened too recently; skipping for now {"storage": "FileStorage:/root/.local/share/caddy", "instance": "6d900ba6-2b2d-4553-95c7-811e8143afbc", "try_again": "2024/01/11 00:06:05.956", "try_again_in": 86399.999998917}
2024/01/10 00:06:05.956 INFO tls finished cleaning storage units
2024/01/10 00:06:05.974 INFO pki.ca.local root certificate is already trusted by system {"path": "storage:pki/authorities/local/root.crt"}
2024/01/10 00:06:05.975 INFO http enabling HTTP/3 listener {"addr": ":5001"}
2024/01/10 00:06:05.977 DEBUG http starting server loop {"address": "[::]:5001", "tls": true, "http3": true}
2024/01/10 00:06:05.977 INFO http.log server running {"name": "proxy", "protocols": ["h1", "h2", "h3"]}
2024/01/10 00:06:05.978 INFO tls.cache.maintenance stopped background certificate maintenance {"cache": "0xc000250200"}
Error: loading new config: http app module: start: listening on :80: listen tcp :80: bind: address already in use
3. Caddy version:
v2.7.6 h1:w0NymbG2m9PcvKWsrXO6EEkY9Ru4FJK8uQbYcev1p3A=
4. How I installed and ran Caddy:
sorry, not understanding what is required?
i installed caddy as per the caddy website instructions.
a. System environment:
uname -a
Linux hetz05 5.15.0-91-generic #101-Ubuntu SMP Tue Nov 14 13:30:08 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy
b. Command:
caddy reverse-proxy --from 100.115.202.129:5001 --to localhost:9096 --debug
d. My complete Caddy config:
not using caddy file yet, as that is what i need help with
5. Links to relevant resources:
just want to convert that command line into a caddyfile and disable Auto HTTPS rules
thanks much, david