From feaa1e6eb92c0e1d3db819cfd3c151d9fa15ca26 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Tue, 3 Jan 2017 21:33:05 -0500 Subject: fix a bug in the nginx config example --- nginx.conf.example | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- cgit v1.1-4-g5e80