diff options
Diffstat (limited to 'nginx.conf.example')
-rw-r--r-- | nginx.conf.example | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nginx.conf.example b/nginx.conf.example index 71a6b27..734c7cd 100644 --- a/nginx.conf.example +++ b/nginx.conf.example @@ -5,6 +5,10 @@ server { listen 443 ssl http2; listen [::]:443 ssl http2; + if (-d /srv/http/$server_name/out/$uri) { + rewrite ^(.*[^/])$ $1/ permanent; + } + location / { try_files /out$uri/index.html /out$uri /src$uri =404; } |