location /capture { rewrite /capture/(.+) /$1 break; include uwsgi_params; #uwsgi_pass unix:///tmp/captiveportal.sock; uwsgi_pass localhost:9090; }