Need help configuring caddy with vps (ubuntu)

1. Caddy version (caddy version):

v2.6.4

2. How I run Caddy:

installed from the command line using sudo apt install caddy

a. System environment:

Ubuntu 20, VPS (CLI only), no docker

b. My complete Caddyfile or JSON config:

No config file, trying to do the ONE LINER reverse proxy method

3. The problem I’m having:

caddy cannot startup on port 80, tells me something else is already on port 80 (but I can’t figure out what)

4. Error messages and/or full log output:

`caddy reverse-proxy --from (domain name) --to 127.0.0.1:8096
2023/07/30 11:40:45.430 WARN    admin   admin endpoint disabled
2023/07/30 11:40:45.432 INFO    http    server is listening only on the HTTPS po                    rt but has no TLS connection policies; adding one to enable TLS {"server_name":                     "proxy", "https_port": 443}
2023/07/30 11:40:45.433 INFO    http    enabling automatic HTTP->HTTPS redirects                    {"server_name": "proxy"}
2023/07/30 11:40:45.436 INFO    tls     cleaning storage unit   {"description":                     "FileStorage:/home/jellyfin/.local/share/caddy"}
2023/07/30 11:40:45.437 INFO    tls     finished cleaning storage units
2023/07/30 11:40:45.433 INFO    tls.cache.maintenance   started background certi                    ficate maintenance      {"cache": "0xc0002f8f50"}
2023/07/30 11:40:45.438 INFO    tls.cache.maintenance   stopped background certi                    ficate maintenance      {"cache": "0xc0002f8f50"}
Error: loading new config: http app module: start: listening on :443: listen tcp                     :443: bind: permission denied
`

Caddy itself is probably already running as a systemd service. See Keep Caddy Running — Caddy Documentation for instructions for using Caddy as a service.

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