hello guys
i just set up Caddy with a Caddyfile on Ubuntu 20.04. It’s Caddy v2.
ufw is enabled and port 8384 opened. port forwarding in router menu as well.
i get log errors when checking the status, but both my servers work good.
● caddy.service - Caddy
Loaded: loaded (/lib/systemd/system/caddy.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2021-04-03 11:31:18 CEST; 1h 36min ago
Docs: https://caddyserver.com/docs/
Process: 11518 ExecReload=/usr/bin/caddy reload --config /etc/caddy/Caddyfile (code=exited, status=0/SUCCESS)
Main PID: 1639 (caddy)
Tasks: 11 (limit: 38074)
Memory: 48.4M
CGroup: /system.slice/caddy.service
└─1639 /usr/bin/caddy run --environ --config /etc/caddy/Caddyfile
Apr 03 13:02:29 mmeiraserv caddy[1639]: {"level":"error","ts":1617447749.6018765,"logger":"http.log.error","msg":"dial tcp 127.0.0.1:8384: connect: connection re>
Apr 03 13:02:40 mmeiraserv caddy[1639]: {"level":"error","ts":1617447760.6536393,"logger":"http.log.error","msg":"dial tcp 127.0.0.1:8384: connect: connection re>
Apr 03 13:02:42 mmeiraserv caddy[1639]: {"level":"error","ts":1617447762.32911,"logger":"http.log.error","msg":"dial tcp 127.0.0.1:8384: connect: connection refu>
Apr 03 13:07:42 mmeiraserv caddy[1639]: {"level":"error","ts":1617448062.8984017,"logger":"http.handlers.reverse_proxy","msg":"aborting with incomplete response">
Apr 03 13:08:01 mmeiraserv systemd[1]: Reloading Caddy.
Apr 03 13:08:01 mmeiraserv caddy[11518]: {"level":"info","ts":1617448081.4382784,"msg":"using provided configuration","config_file":"/etc/caddy/Caddyfile","confi>
Apr 03 13:08:01 mmeiraserv caddy[1639]: {"level":"info","ts":1617448081.439481,"logger":"admin.api","msg":"received request","method":"POST","host":"localhost:20>
Apr 03 13:08:01 mmeiraserv caddy[1639]: {"level":"info","ts":1617448081.4395893,"logger":"admin.api","msg":"config is unchanged"}
Apr 03 13:08:01 mmeiraserv caddy[1639]: {"level":"info","ts":1617448081.4395945,"logger":"admin.api","msg":"load complete"}
Apr 03 13:08:01 mmeiraserv systemd[1]: Reloaded Caddy.
this is my Caddyfile:
# The Caddyfile is an easy way to configure your Caddy web server.
#
# Unless the file starts with a global options block, the first
# uncommented line is always the address of your site.
#
# To use your own domain name (with automatic HTTPS), first make
# sure your domain's A/AAAA DNS records are properly pointed to
# this machine's public IP, then replace the line below with your
# domain name.
jellymmeirolas.ddnss.de {
reverse_proxy localhost:8096
}
syncmmeirolas.ddnss.de {
reverse_proxy localhost:8384 {
header_up Host localhost
}
}
# Set this path to your site's directory.
#root * /usr/share/caddy
# Enable the static file server.
#file_server
# Another common task is to set up a reverse proxy:
# reverse_proxy localhost:8080
# Or serve a PHP site through php-fpm:
# php_fastcgi localhost:9000
# Refer to the Caddy docs for more information:
# https://caddyserver.com/docs/caddyfile
can somebody help me sort this out please?
thx in advance