AMH 社区首页
AMH社区 - 开放自由有价值的社区
[求助帖] 仿静态怎么用不了,全部是404 |
|
---|---|
269406793 |
269406793 发表于 2014-07-29 16:59:32
仿静态怎么用不了,全部是404
Nginx环境 # BEGIN # 首页、分类浏览、数据归档、最近更新、排行榜、意见反馈 rewrite ^(index|webdir|update|archives|category|top|addurl|feedback|link|rssfeed|sitemap)(\/?)$ index.php\?mod=$1 last; # 分类目录 rewrite ^webdir\/(.+)-(\d+)-(\d+)$ index.php\?mod=webdir&cid=$2&page=$3 last; rewrite ^webdir\/(.+)-(\d+)$ index.php\?mod=webdir&cid=$2 last; # 最近更新 rewrite ^update\/(\d+)-(\d+)$ index.php\?mod=update&days=$1&page=$2 last; rewrite ^update\/(\d+)$ index.php\?mod=update&days=$1 last; # 数据归档 rewrite ^archives\/(\d+)-(\d+)$ index.php\?mod=archives&date=$1&page=$2 last; rewrite ^archives\/(\d+)$ index.php\?mod=archives&date=$1 last; # 站内搜索 rewrite ^search\/(name|url|tags|intro)-(.+)-(\d+)$ index.php\?mod=search&type=$1&query=$2&page=$3 last; RewriteRule ^search\/(name|url|tags|intro)-(.+)$ index.php\?mod=search&type=$1&query=$2 last; # 详细信息 rewrite ^siteinfo\/(.+)$ index.php\?mod=siteinfo&url=$1 last; # 网站评论 rewrite ^comment\/(\d+)-(\d+)$ index.php\?mod=comment&wid=$1&page=$2 last; rewrite ^comment\/(.+)$ index.php\?mod=comment&wid=$1 last; # 单页 rewrite ^page\/(\d+)$ index.php\?mod=page&pid=$1 last; # RSS rewrite ^rssfeed\/(\d+)$ index.php\?mod=rssfeed&cid=$1 last; # SiteMap rewrite ^sitemap\/(\d+)$ index.php\?mod=sitemap&cid=$1 last; # END
点赞,加油! (0分)
2014-07-29 16:59:32 1
|
269406793 |
我是小白,才第一次,谁教教。
回复
2014-07-29 17:01:56 2
|
269406793 |
还有 amh.log 怎么删除
回复
2014-07-29 17:16:13 3
|
269406793 |
[警告] Nginx配置Rewrite规则错误,请查检改正。 [AMRewrite-1.0 admin] [OK] AMRewrite-1.0 is already installed. nginx: [emerg] unknown directive "RewriteRule" in /usr/local/nginx/conf/rewrite/iwebdir.conf:15 nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed
回复
2014-07-29 19:01:43 4
|
Kvm |
iwebdir.conf 这里面的规则错了。
回复
2014-07-29 20:16:30 5
|
qlan |
回复
2014-07-30 08:32:00 6
|
amysql |
/usr/local/nginx/conf/rewrite/iwebdir.conf 规则第15行有错,
amh.log在安装时的目录。删除,rm -f amh.log find一下也可以。
回复
2014-07-30 11:30:43 7
AMH面板 - 好用高效低占用、安全可靠极稳定 |