1. Caddy version (caddy version
):
v2.4.6 h1:HGkGICFGvyrodcqOOclHKfvJC0qTU7vny/7FhYp9hNw=
2. How I run Caddy:
Caddy is started with supervisor
a. System environment:
Docker / Alpine
b. Command:
/usr/local/bin/caddy run --config /etc/caddy/Caddyfile --adapter caddyfile
c. Service/unit/compose file:
Paste full file contents here.
Make sure backticks stay on their own lines,
and the post looks nice in the preview pane.
d. My complete Caddyfile or JSON config:
:80, :{$PORT} {
root * /app/{$PUBLIC_DIR}
php_fastcgi 127.0.0.1:9000
file_server
log {
output file /var/log/access.log
}
push
encode gzip
}
3. The problem Iām having:
When accessing this URL, php_fastcgi
redirects to example.com, when trying to add the trailing slash
http://mysite.com/%5cexample.com/%2f%2e%2e
I added this to fix it:
redir "/\*" / 308
4. Error messages and/or full log output:
5. What I already tried:
redir "/\*" / 308
fixes the issue for me but the default php_fastcgi has a security hole