Last active
September 27, 2025 15:09
-
-
Save nawan95/6aa66e009615fc431ba7f9f47d32d738 to your computer and use it in GitHub Desktop.
Caddyfile for XWiki with short URLs (https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/ShortURLs/)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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