AMH 社区首页
AMH社区 - 开放自由有价值的社区
[求助帖] 改Rewrite後,出現錯誤,啓動不了WEB服務 |
|
---|---|
chanbanana |
chanbanana 发表于 2014-01-10 23:31:12
[警告] Nginx配置Rewrite规则错误,请查检改正。
[AMRewrite-1.0 admin] [OK] AMRewrite-1.0 is already installed. nginx: [emerg] duplicate location "/" in /usr/local/nginx/conf/vhost/compassmacau.conf:20 nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed 麻煩各位指教指教,現在全部網站都停了. www.vinha.com.mo
点赞,加油! (0分)
2014-01-10 23:31:12 1
|
wilsonjor |
那就是规则错误了,在网上搜一下吧。新增一个正确的规则试试看
回复
2014-01-10 23:38:25 2
|
chanbanana |
我已經,是COPY這個論壇的那個規則了.但也一樣
回复
2014-01-11 09:06:51 3
|
Yusky |
把规则贴出来看看。
回复
2014-01-11 13:47:26 4
|
chanbanana |
location / {
if (-f $request_filename/index.html){ rewrite (.*) $1/index.html break; } if (-f $request_filename/index.php){ rewrite (.*) $1/index.php; } if (!-f $request_filename){ rewrite (.*) /index.php; } }
回复
2014-01-11 18:47:52 5
|
CodeByMe |
400错误是域名没识别出来
回复
2014-01-11 19:05:29 6
|
tanyuxiang |
nginx: [emerg] duplicate location "/" in /usr/local/nginx/conf/vhost/compassmacau.conf:20
/usr/local/nginx/conf/vhost/compassmacau.conf:20
回复
2014-01-11 20:01:08 7
|
Yusky |
引用: 虚拟主机, 截图看看 compassmacau.conf 这个贴出来看看 估计你域名没绑定好
回复
2014-01-12 00:49:30 8
|