summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorWayne Witzel III <wayne@riotousliving.com>2016-12-12 19:06:42 +0100
committerWayne Witzel III <wayne@riotousliving.com>2016-12-12 19:25:10 +0100
commit19f7d9e8d8b8830591096cf2083c6adbcfc8fa22 (patch)
tree8a9ccf0e085e24e87b34b9705c0ace116e730190 /config
parentexplicitly set long harakiri time to deal with very large inventory deletes (diff)
downloadawx-19f7d9e8d8b8830591096cf2083c6adbcfc8fa22.tar.xz
awx-19f7d9e8d8b8830591096cf2083c6adbcfc8fa22.zip
redirect if no forward-slash
Diffstat (limited to 'config')
-rw-r--r--config/awx-nginx.conf2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/awx-nginx.conf b/config/awx-nginx.conf
index 30806cbfe8..15e58678ba 100644
--- a/config/awx-nginx.conf
+++ b/config/awx-nginx.conf
@@ -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;