diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-11-21 22:37:10 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-11-21 22:37:10 +0100 |
commit | 8c940e8a4ffee8d3824076bf1ad3ff9a8be189b4 (patch) | |
tree | f7e1223deb25ee368a9a8edf805da824276b6846 /etc | |
parent | 97448e29e5a196e072c0cdab29376adaa91168ac (diff) | |
download | deployment-8c940e8a4ffee8d3824076bf1ad3ff9a8be189b4.tar.gz deployment-8c940e8a4ffee8d3824076bf1ad3ff9a8be189b4.tar.bz2 deployment-8c940e8a4ffee8d3824076bf1ad3ff9a8be189b4.zip |
slashes
Diffstat (limited to 'etc')
-rw-r--r-- | etc/nginx/sites-enabled/envs.site | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/nginx/sites-enabled/envs.site b/etc/nginx/sites-enabled/envs.site index 8f71ca6..469d5ea 100644 --- a/etc/nginx/sites-enabled/envs.site +++ b/etc/nginx/sites-enabled/envs.site @@ -31,7 +31,7 @@ server { proxy_set_header Host $host; } - location ~ ^/(?<user>[a-zA-Z0-9-_]+)/bank(?<req>/?.*) { + location ~ ^/(?<user>[a-zA-Z0-9-_]+)/bank(?<req>/?.*|)$ { uwsgi_pass unix:/home/$user/sockets/bank.uwsgi; include /etc/nginx/uwsgi_params; uwsgi_param SCRIPT_NAME "/$user/bank/"; @@ -39,7 +39,7 @@ server { set $envroot "/$user/"; } - location ~ ^/(?<user>[a-zA-Z0-9-_]+)/shop(?<req>/?.*) { + location ~ ^/(?<user>[a-zA-Z0-9-_]+)/shop(?<req>/?.*|)$ { uwsgi_pass unix:/home/$user/sockets/shop.uwsgi; include /etc/nginx/uwsgi_params; uwsgi_param SCRIPT_NAME "/$user/shop/"; @@ -47,7 +47,7 @@ server { set $envroot "/$user/"; } - location ~ ^/(?<user>[a-zA-Z0-9-_]+)/donations(?<req>/?.*) { + location ~ ^/(?<user>[a-zA-Z0-9-_]+)/donations(?<req>/.*|)$ { uwsgi_pass unix:/home/$user/sockets/shop.uwsgi; include /etc/nginx/uwsgi_params; uwsgi_param SCRIPT_NAME "/$user/donations/"; @@ -55,7 +55,7 @@ server { set $envroot "/$user/"; } - location ~ ^/(?<user>[a-zA-Z0-9-_]+)/(?<req>.*) { + location ~ ^/(?<user>[a-zA-Z0-9-_]+)(?<req>/.*|)$ { uwsgi_pass unix:/home/$user/sockets/landing.uwsgi; include /etc/nginx/uwsgi_params; uwsgi_param SCRIPT_NAME "/$user/"; |