1. The problem I’m having:
Trying to redirect from a live server to staging including the api keys.
For example the request is https://live-server.domain/api_details_etc to https://live-staging-server.domain/api_details_etc
2. Error messages and/or full log output:
PASTE OVER THIS, BETWEEN THE ``` LINES.
Please use the preview pane to ensure it looks nice.
3. Caddy version:
v2.11.1 h1:C7sQpsFOC5CH+31KqJc7EoOf8mXrOEkFyYd6GpIqm/s=
4. How I installed and ran Caddy:
apt-install caddy
a. System environment:
Distributor ID: Ubuntu
Description: Ubuntu 24.04.4 LTS
Release: 24.04
Codename: noble
b. Command:
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:
{
auto_https disable_certs
debug
log {
output file /var/log/caddy/runtime.log
}
}
live-updates.domain.com {
tls /var/lib/caddy/vnc/vnc.pem /var/lib/caddy/vnc/vnckey.pem
redir https://live-updates-staging.domain.com{uri}
}