Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have nginx conf as

location /static/ {
                alias $HOME/code/python/vlists/vlists/static/;
        # if asset versioning is used
        if ($query_string) {
            expires max;
        }
    }

where in I want to pass my $HOME from environment, so I do this

$ sudo -E nginx
nginx: [emerg] unknown "home" variable

How do I make sure that $HOME replaces correctly in nginx.conf?

share|improve this question
    
Nginx supports several variables given here wiki.nginx.org/HttpCoreModule#Variables , $home is probably not supported – HackToHell Sep 24 '12 at 1:46

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.