• 本帖最后由 icel 于 2012-3-7 22:42 编辑 *

我在www.name.com.conf的server下添加了下面的信息:- if ($host !='www.name.org'){

nginx: invalid condition "$host" in /usr/local/nginx/conf/vhost/www.name.org.conf:5
nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed
nginx: invalid condition "$host" in /usr/local/nginx/conf/vhost/www.name.org.conf:5

哪里错了?