commit 2bcf5efd3ab4a121f2e71139864bbf8c7bc87c56 parent 608e740288777dd9ec238758f15bfb00a624f4b2 Author: Marcello Stanisci <stanisci.m@gmail.com> Date: Thu, 4 Jan 2018 11:31:07 +0100 no uwsgi for /landing @ "env" Diffstat:
| M | etc/nginx/sites-enabled/env.site | | | 6 | ++---- |
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/etc/nginx/sites-enabled/env.site b/etc/nginx/sites-enabled/env.site @@ -60,11 +60,9 @@ server { } location ~ ^/(?<user>[a-zA-Z0-9-_]+)(?<req>/.*|)$ { + # replace 'redirect' with 'break'? rewrite ^/([a-zA-Z0-9-_]+)/(..)/$ /$1/$2/index.html redirect; - uwsgi_pass unix:/home/$user/sockets/landing.uwsgi; - include /etc/nginx/uwsgi_params; - uwsgi_param SCRIPT_NAME "/$user/"; - uwsgi_param PATH_INFO "$req"; + root /home/$user/landing/demo; } location ~ ^/(?<user>[a-zA-Z0-9-_]+)/auditor(?<req>/.*|)$ {