update caddyfile
This commit is contained in:
@@ -7,9 +7,15 @@ atom.town {
|
||||
root * /srv/home
|
||||
encode zstd
|
||||
|
||||
# /index.html -> /
|
||||
@indexhtml path_regexp idx ^(.*/)index\.html$
|
||||
redir @indexhtml {re.idx.1} permanent
|
||||
|
||||
# /something.html -> /something
|
||||
@html path_regexp strip ^(.+)\.html$
|
||||
redir @html {re.strip.1} permanent
|
||||
|
||||
# something -> something.html
|
||||
try_files {path} {path}.html {path}/index.html
|
||||
|
||||
file_server
|
||||
|
||||
Reference in New Issue
Block a user