AMH 社区首页
AMH社区 - 开放自由有价值的社区
[求助帖] 添加了一个 xx.conf 检测提示错误,检验规则提示错误 |
|
---|---|
qinqinni |
qinqinni 发表于 2014-01-10 01:50:29
[警告] Nginx配置Rewrite规则错误,请查检改正。 [AMRewrite-1.0 admin] [OK] AMRewrite-1.0 is already installed. nginx: [emerg] unexpected end of file, expecting ";" or "}" in /usr/local/nginx/conf/rewrite/pin.conf:11 nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed
我的规则是 RewriteRule ^(.*)-htm-(.*)$ $1.php?$2 RewriteRule ^(.*)show-([0-9]+)([-])?([0-9]+)?.html$ $1show.php?itemid=$2&page=$4 RewriteRule ^(.*)list-([0-9]+)([-])?([0-9]+)?.html$ $1list.php?catid=$2&page=$4 RewriteRule ^(.*)show/([0-9]+)/([0-9]+)?([/])?$ $1show.php?itemid=$2&page=$3 RewriteRule ^(.*)list/([0-9]+)/([0-9]+)?([/])?$ $1/list.php?catid=$2&page=$3 RewriteRule ^(.*)([A-za-z0-9_-]+)-c([0-9]+)-([0-9]+).html$ $1/list.php?catid=$3&page=$4 RewriteRule ^(.*)com/([a-z0-9_-]+)/([a-z]+)/(.*).html$ $1/index.php?homepage=$2&file=$3&rewrite=$4 RewriteRule ^(.*)com/([a-z0-9_-]+)/([a-z]+)([/])?$ $1/index.php?homepage=$2&file=$3 RewriteRule ^(.*)com/([a-z0-9_-]+)([/])?$ $1/index.php?homepage=$2 RewriteRule ^(.*)([a-z]+)/(.*).shtml$ $1/$2/index.php?rewrite=$3
点赞,加油! (0分)
2014-01-10 01:50:29 1
|
ali |
这个要弄好,搞错误了,重启你就要摸黑了
回复
2014-01-10 03:43:37 2
|
tanyuxiang |
/usr/local/nginx/conf/rewrite/pin.conf:11
回复
2014-01-10 09:46:55 3
|
CodeByMe |
大哥。。。,你用的全是Apache的规则,这是nginx
回复
2014-01-10 16:14:12 4
|
蓝鹰 |
楼上说的有道理,,自己转下吧,
回复
2014-01-11 12:50:43 5
|