0

I am running ubuntu, rvm, passenger, with a rails 3 application.

I have to set the GEM_HOME and GEM_PATH using SetEnv in my host file as its done in Apache, but I am not sure how this is done in nginx.

Can this be done somehow?

Blankman
  • 2,891
  • 10
  • 39
  • 68
  • possible duplicate of [In my /etc/init.d/nginx script, can I set environmental variables?](http://serverfault.com/questions/209239/in-my-etc-init-d-nginx-script-can-i-set-environmental-variables) – joschi Dec 05 '10 at 07:47

1 Answers1

2

If you are using CGI then the link below documents the method of assigning string, variables and values which are passed to the nginx FastCGI server.

http://wiki.nginx.org/NginxHttpFcgiModule#fastcgi_param

Sameer
  • 4,118
  • 2
  • 17
  • 11