Nginx variables similar to SetEnv in Apache?
问题 I use SetEnv in Apache to set some variables in virtualhosts that I recover in PHP using $_SERVER[the_variable] . Now I am switching to Perl Catalyst and Nginx, but it seems that the \"env\" directive in Nginx is not the same. It does not work. How can it be accomplished? Here is the background picture, just in case someone can suggest a better approach or my previous system does not work with Nginx. I use the same app for many domains. All data comes from different databases with the same