summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2017-01-03 21:33:05 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2017-01-03 21:33:05 -0500
commitfeaa1e6eb92c0e1d3db819cfd3c151d9fa15ca26 (patch)
tree81d0cc79c9bc2d1c0a0d4791947a142b9474ec36
parent5c1143debba4f541e5f266519913554b931c9c21 (diff)
fix a bug in the nginx config example
-rw-r--r--nginx.conf.example4
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;
}