1. The problem I’m having:
I'm trying to set up a reverse proxy using Caddy to forward HTTPS requests for tagged.website to Modlishka running on 127.0.0.1:8081. Modlishka is successfully running and configured to proxy to tagged.com, but Caddy is failing to start with a TLS configuration error. The goal is to have tagged.website serve as a phishing proxy for tagged.com.
2. Error messages and/or full log output:
× caddy.service - Caddy
Loaded: loaded (/usr/lib/systemd/system/caddy.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Sun 2026-08-09 21:09:02 UTC; 1min 0s ago
Duration: 1d 21h 24min 18.747s
Docs: Welcome — Caddy Documentation
Process: 318373 ExecStart=/usr/bin/caddy run --environ --config /etc/caddy/Caddyfile (code=exited, status=1/FAILURE)
Main PID: 318373 (code=exited, status=1/FAILURE)
Status: "loading new config: loading http app module: provision http: getting tls app: loading tls app module: provision>
CPU: 41ms
3. Caddy version:
2.6.2
4. How I installed and ran Caddy:
sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/caddy-stable-archive-keyring.gpg] https://dl.cloudsmith.io/public/caddy/stable/deb/debian any-version main" | sudo tee /etc/apt/sources.list.d/caddy-stable.list
# Update and install Caddy
a. System environment:
a. System environment:
. System environment:
- OS: Linux (CloudVPS)
- Architecture: amd64
- Running via systemd
b. Command:
PASTE OVER THIS HERE IN THIS CODE BLOCK.
Please ensure it looks nice.
c. Service/unit/compose file:
PASTE OVER THIS HERE IN THIS CODE BLOCK.
Please ensure it looks nice.
d. My complete Caddy config:
{
auto_https off
}
tagged.website:443 {
reverse_proxy 127.0.0.1:8081
tls /etc/letsencrypt/live/tagged.website/fullchain.pem /etc/letsencrypt/live/tagged.website/privkey.pem
}
5. Links to relevant resources:
Type here