Hi Daniel,
Thank you for the help!
To clarify:
1. What is "passenger_set_cgi_params" was doing before? It seems phusion removed old docs and I couldn't find related info anywhere :(
2. For "passenger_set_env", for instance:
passenger_set_env: X_foo $something
I learned passenger_set_env is only working while application is loading. What does that mean? Will "X_foo" always be same value even though nginx passes different value to $something per request?
3. my understanding of others are as following, correct me if I am wrong
proxy_set_header: X_foo $something
Nginx add head "X_foo" with value $something to http request sending to passenger
passenger_set_header: X_foo $something
After receiving http request from nginx, prefix X_foo with HTTP_ and add the new header "Http_X_foo" with value $something to request and send it to rack