1. The problem I’m having:
Trying to setup reverse_proxy for php-based wiki running on a second local server. Wiki is displayed, but layout is corrupted. I’m not sure if caddy have to be configured to display php, instead of “normal” reverse_proxing
2. Error messages and/or full log output:
Jun 25 17:09:08 caddy caddy[2157]: {"level":"error","ts":1750871348.3049283,"logger":"http.log.error","msg":"dial tcp 192.168.178.55:80: i/o timeout","request":{"remote_ip":"91.231.89.96","remote_port":"53455","proto":"HTTP/1.1","method":"GET","host":"wiki.almeida.dedyn.io","uri":"/pmwiki.php/Main/ThinkPadX60","headers":{"Connection":["close"],"User-Agent":["Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:134.0) Gecko/20100101 Firefox/134.0"],"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"],"Accept-Language":["en-US,en;q=0.5"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"","server_name":"wiki.almeida.dedyn.io"}},"duration":3.001148605,"status":502,"err_id":"r214vucp5","err_trace":"reverseproxy.statusError (reverseproxy.go:1272)"}
PASTE OVER THIS, BETWEEN THE ``` LINES.
Please use the preview pane to ensure it looks nice.
3. Caddy version:
caddy v 2.6.2
4. How I installed and ran Caddy:
debian apt installed, runnig by systemd
a. System environment:
debian bookworm , systemd, running as proxmox Container
b. Command:
caddy start, etc, but starting automated by systemd
PASTE OVER THIS, BETWEEN THE ``` LINES.
Please use the preview pane to ensure it looks nice.
c. Service/unit/compose file:
PASTE OVER THIS, BETWEEN THE ``` LINES.
Please use the preview pane to ensure it looks nice.
d. My complete Caddy config:
# 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 ":80" below with your
# domain name.
wiki.almeida.dedyn.io {
reverse_proxy 192.168.178.55:80 {
}
# Refer to the Caddy docs for more information:
# https://caddyserver.com/docs/caddyfile
PASTE OVER THIS, BETWEEN THE ``` LINES.
Please use the preview pane to ensure it looks nice.