<LocationMatch "/theproxypath">
ProxyPass http://[hostname]:[port]/theproxypath
ProxyPassReverse http://[hostname]:[port]/theproxypath
</LocationMatch>
server {
listen [port] default_server;
server_name [origin-hostname];
location /go4ip {
uwsgi_pass 127.0.0.1:9000;
include uwsgi_params;
# Required if Nginx not proxying to Apache over HTTPS
uwsgi_param HTTPS on;
uwsgi_param UWSGI_SCHEME "https";
uwsgi_param HTTP_X_FORWARDED_PROTO "https";
# Required if path prefix to root of app
uwsgi_param SCRIPT_NAME /theproxypath;
uwsgi_modifier1 30;
uwsgi_param UWSGI_SCHEME $scheme;
uwsgi_param SERVER_SOFTWARE nginx/$nginx_version;
}
}