puma/puma — pull request #153 by kidpollo (2012-10-04 01:19:47+00:00)
Title: Allow for alternate locations in status app

Its quite a minor thing but I was annoyed I could not proxy the status app to another location like __status/

The idea is to be able to do:

server {
listen 81;
server_name services.gsfn.local;
root /path_to/public;
access_log /path_to/log/nginx.log;

client_body_temp_path /path_to/tmp/nginx/client_temp;
proxy_temp_path /path_to/tmp/nginx/proxy_temp;

location / {
proxy_redirect off;
proxy_set_header Host $http_host;

if (!-f $request_filename) {
proxy_pass http://app;
break;
}
}
location /__status {
proxy_redirect off;
proxy_set_header Host $http_host;

if (!-f $request_filename) {
proxy_pass http://app_status;
break;
}
}
}

Thanks