1. Caddy version (caddy version
):
2.4.6
2. How I run Caddy:
I currently use reverse proxy for two internal services.
a. System environment:
raspbian - pi 4
b. Command:
c. Service/unit/compose file:
#Security headers for www.rupel.org caddyfile
header /* {
Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
X-Xss-Protection "1; mode=block"
X-Content-Type-Options "nosniff"
X-Frame-Options "DENY"
Content-Security-Policy "upgrade-insecure-requests"
Referrer-Policy "strict-origin-when-cross-origin"
Cache-Control "public, max-age=15, must-revalidate"
Feature-Policy "accelerometer 'none'; ambient-light-sensor 'none'; autoplay 'self'; camera 'none'; encrypted-media 'none'; fullscreen 'self'; geolocation 'none'; gyroscope 'none'; magnetometer 'none'; microphone 'none'; midi 'none'; payment 'none'; picture-in-picture *; speaker 'none'; sync-xhr 'none'; usb 'none'; vr 'none'"
Server "No."
d. My complete Caddyfile or JSON config:
www.rupel.org {
tls /home/user/Caddy/server.pem /home/user/Caddy/key.pem
reverse_proxy /plex* 192.168.55.205:5000
reverse_proxy /tautulli* 192.168.55.205:8181
import /home/user/Caddy/caddy_security.conf
}
3. The problem I’m having:
I want to be able to redirect guests from my root https://www.rupel.org to my reverse proxy /plex. Can I do this along with keeping the reverse proxy? If so, how?
4. Error messages and/or full log output:
5. What I already tried:
Looked at reference material about redirection rule but was uncertain about how to apply it in this situation.