http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_cache_path
root /var/www/webroot;
index index.html;
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
location /50x.html {
root /var/www/webroot;
}
location /websocketapp
{
proxy_pass http://127.0.0.1:8080;
proxy_intercept_errors on;
proxy_http_version 1.1;
proxy_read_timeout 240;
proxy_set_header Connection "upgrade";
proxy_set_header Upgrade $http_upgrade;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /foo
{
HTTP PROXY to like FPM or something
}