title: NGINX and environment variables from configuration file
body: <p>I'm trying to set some environment variables to nginx via it's configuration file. I'm using nginx/0.8.53 and it's not working.</p>
  
  <pre><code>server {
      listen 80;
      server_name localdictus;
      root /opt/vdmo_dictus/public;   # &lt;--- be sure to point to 'public'!
      passenger_enabled on;
      rails_env development;
      env VDMO_MANDANT = "somevalue";
      }
  </code></pre>
  
  <p>This is the error message:</p>
  
  <pre><code>unknown directive "env" in /opt/nginx/conf/nginx.conf:43
  </code></pre>
  
  <p>The documentation tells me that there is an "env" command... so what I'm doing wrong ??
  <a href="http://wiki.nginx.org/CoreModule#env" rel="nofollow">http://wiki.nginx.org/CoreModule#env</a></p>
  
  <p>setting the environment variables via export on the shell is not an option for my application by the way.</p>
  
  <p>Here are the lines:</p>
  
  <pre><code>37:    server {
  38:    listen 80;
  39:    server_name localdictus;
  40:    root /opt/vdmo_dictus/public;   # &lt;--- be sure to point to 'public'!
  41:    passenger_enabled on;
  42:    rails_env development;
  43:    env VDMO_MANDANT = "somevalue";
  44:    }
  </code></pre>
  
  <p>Regards,</p>
  
  <p>Alex</p>