产品服务AMH 免费服务器主机面板SSL证书 免费SSL证书申请编程助手免费智能写代码、翻译NewAMYSQL 免费MySQL管理工具AMFTP 免费FTP管理客户端

AMH 社区首页

 AMH社区 - 开放自由有价值的社区

[求助帖] 添加了一个 xx.conf 检测提示错误,检验规则提示错误

qinqinni
铁牌会员
10.00 价值分

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分)   有, 感谢 (0分)
2014-01-10 01:50:29 1

ali
银牌会员
3123.65 价值分

这个要弄好,搞错误了,重启你就要摸黑了
评价: 这个答复有价值吗?  没有 (0分)   有, 感谢 (0分)
回复  2014-01-10 03:43:37 2

tanyuxiang
金牌会员
5420.37 价值分

/usr/local/nginx/conf/rewrite/pin.conf:11
评价: 这个答复有价值吗?  没有 (0分)   有, 感谢 (0分)
回复  2014-01-10 09:46:55 3

CodeByMe
银牌会员
1410.00 价值分

大哥。。。,你用的全是Apache的规则,这是nginx
评价: 这个答复有价值吗?  没有 (0分)   有, 感谢 (0分)
回复  2014-01-10 16:14:12 4

蓝鹰
银牌会员
1328.00 价值分

楼上说的有道理,,自己转下吧,
评价: 这个答复有价值吗?  没有 (0分)   有, 感谢 (0分)
回复  2014-01-11 12:50:43 5
 1  (总1页)
AMH社区列表
用户服务中心