add html rewrite rule

This commit is contained in:
Raul Jordan
2020-10-30 09:42:08 -05:00
parent 1ed3ebdcae
commit 68037bdcfb

View File

@@ -1,8 +1,8 @@
http://docs.prylabs.network
root * /usr/share/caddy/html
file_server
try_files {path}.html {path}
uri strip_suffix .html
rewrite /docs/ /docs/getting-started
rewrite /docs /docs/getting-started
header Access-Control-Allow-Origin *
header Access-Control-Request-Method GET,OPTIONS
header Access-Control-Request-Method GET,OPTIONS