title: How to use different rails_env with nginx, passenger and redmine
body: <p>I need to have redmine running in combination with nginx, phusion passenger and mysql. Because of the project requires several instances of redmine, which should be realized using different rails_env, I tried to set them in the different server vhosts with nginx.</p>
  
  <p>Example of one vhost:</p>
  
  <pre><code>server {
      listen xxxx;
      server_name redmine.xxxxx;
      root /xxxxx/redmine/public;
      passenger_enabled on;
      rails_env production;
  }
  </code></pre>
  
  <p>Same goes for the other server vhost, but there server_name is matched to the other domain and rails_env set to internal.</p>
  
  <p>The problem is, that nginx just uses one of both rails_env for both redmine instances, not one for each. Any advice how to use different rails_env with the same application, nginx and phusion passenger?</p>
  
  <p>Thanks</p>