Skip to content

Instantly share code, notes, and snippets.

@Edit-Mr
Created April 30, 2025 16:41
Show Gist options
  • Save Edit-Mr/8e6d321b04e2f1790157a7e5895164d9 to your computer and use it in GitHub Desktop.
Save Edit-Mr/8e6d321b04e2f1790157a7e5895164d9 to your computer and use it in GitHub Desktop.
Caddyfile with redirect and strip_prefix
:80 {
@website path /2025*
handle @website {
uri strip_prefix /2025
reverse_proxy website.zeabur.internal:8080
}
redir / /2025
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment