首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

nginx中重写rewrite的语法异常[emerg] unknown directive

2013-12-11 
nginx中重写rewrite的语法错误[emerg] unknown directiveif ( $host ! www.quxiaoshou.com ){rewrite ^

nginx中重写rewrite的语法错误[emerg] unknown directive
if ( $host != 'www.quxiaoshou.com' ){ rewrite ^(.*)$ http://www.quxiaoshou.com$1 permanent; }

?用^代替空格看起来更清晰:

if^(^$host^!=^'www.quxiaoshou.com'^){?

热点排行