server { listen 80; listen [::]:80; server_name env.taler.net; rewrite ^ https://$host$request_uri? permanent; } server { listen 443 ssl; listen [::]:443 ssl; server_name env.taler.net; include conf.d/talerssl; root /dev/null; ssi on; location ~ ^/(?[a-zA-Z0-9-_]+)/exchange/admin { proxy_pass http://unix:/home/$user/sockets/exchange-admin.http; proxy_redirect off; proxy_set_header Host $host; } location ~ ^/(?[a-zA-Z0-9-_]+)/exchange/(?.*) { proxy_pass http://unix:/home/$user/sockets/exchange.http:/$req; proxy_redirect off; proxy_set_header Host $host; } location ~ ^/(?[a-zA-Z0-9-_]+)/merchant-backend/(?.*) { proxy_pass http://unix:/home/$user/sockets/merchant.http:/$req; proxy_redirect off; proxy_set_header Host $host; } location ~ ^/(?[a-zA-Z0-9-_]+)/bank(?/?.*|)$ { uwsgi_pass unix:/home/$user/sockets/bank.uwsgi; include /etc/nginx/uwsgi_params; uwsgi_param SCRIPT_NAME "/$user/bank/"; uwsgi_param PATH_INFO "$req"; set $envroot "/$user/"; } location ~ ^/(?[a-zA-Z0-9-_]+)/shop(?/?.*|)$ { uwsgi_pass unix:/home/$user/sockets/shop.uwsgi; include /etc/nginx/uwsgi_params; uwsgi_param SCRIPT_NAME "/$user/shop/"; uwsgi_param PATH_INFO "$req"; set $envroot "/$user/"; } location ~ ^/(?[a-zA-Z0-9-_]+)/donations(?/.*|)$ { uwsgi_pass unix:/home/$user/sockets/shop.uwsgi; include /etc/nginx/uwsgi_params; uwsgi_param SCRIPT_NAME "/$user/donations/"; uwsgi_param PATH_INFO "$req"; set $envroot "/$user/"; } location ~ ^/(?[a-zA-Z0-9-_]+)(?/.*|)$ { uwsgi_pass unix:/home/$user/sockets/landing.uwsgi; include /etc/nginx/uwsgi_params; uwsgi_param SCRIPT_NAME "/$user/"; uwsgi_param PATH_INFO "$req"; set $envroot "/$user/"; } include conf.d/favicon_robots; }