We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 796b46e + aefafea commit f8ae94aCopy full SHA for f8ae94a
templates/Caddyfile.j2
@@ -8,7 +8,9 @@
8
handle_path /{args.0}/* {
9
root * {{ caddy.site_dir }}/{args.0}
10
try_files {path}.html {path}
11
- file_server
+ file_server {
12
+ hide .git
13
+ }
14
}
15
16
@@ -77,14 +79,18 @@ http://{{ caddy.addresses.main }}, http://{{ ansible_fqdn }} {
77
79
handle {
78
80
root * {{ caddy.site_dir }}/matplotlib.github.com
81
82
83
84
85
86
87
# Use a custom 404 error page.
88
handle_errors {
89
@notfound expression {http.error.status_code} == 404
90
root * {{ caddy.site_dir }}/mpl-brochure-site
91
rewrite @notfound /404.html
92
93
94
95
96
0 commit comments