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