简单地说,我想实现与apache vhosts相同的东西:Set Application_ENV via virtual host config and read this in PHP for nginx。怎么做?
一种方法是使用fastcgi_param作为回答here和here。
fastcgi_param
我更喜欢另一种方法。因为我使用GIT作为我的VCS: