Skip to content

Instantly share code, notes, and snippets.

@nawan95
Last active September 27, 2025 15:09
Show Gist options
  • Select an option

  • Save nawan95/6aa66e009615fc431ba7f9f47d32d738 to your computer and use it in GitHub Desktop.

Select an option

Save nawan95/6aa66e009615fc431ba7f9f47d32d738 to your computer and use it in GitHub Desktop.
wiki.example.com {
root * /usr/lib/xwiki
encode gzip zstd
handle / {
handle /bin {
rewrite /bin/ /{uri}
}
handle {
rewrite * https://wiki.example.com/Beranda
}
}
@proxy not file
reverse_proxy @proxy http://127.0.0.1:8080
file_server
log {
output file /var/log/caddy/wiki.example.com.log
level INFO
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment