- icel2012-03-07金牌会员27426
- 本帖最后由 icel 于 2012-3-7 22:42 编辑 *
我在www.name.com.conf的server下添加了下面的信息:- if ($host !='www.name.org'){
- rewrite ^/(.*)$ http://www.name.org/$1 permanent;
- }复制代码但是重启nginx一直提示错误
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哪里错了?