redirect if no forward-slash

This commit is contained in:
Wayne Witzel III
2016-12-12 13:06:42 -05:00
parent c6e1598b9c
commit 19f7d9e8d8
2 changed files with 36 additions and 32 deletions

View File

@@ -87,6 +87,8 @@ http {
}
location / {
# Redirect if there is no forward-slash
rewrite ^(.*[^/])$ $1/ permanent;
uwsgi_read_timeout 120s;
uwsgi_pass uwsgi;
include /etc/nginx/uwsgi_params;