VPS侦探论坛

 找回密码
 注册
查看: 5271|回复: 2

军哥,帮忙看一下!是什么元因?

[复制链接]
发表于 2014-1-25 13:06:09 | 显示全部楼层 |阅读模式

http://www.jjlamu.com/ecstore/

结果是:
下载了一个文件download

http://www.jjlamu.com/mshop/install

结果是:
下载了一个文件install

http://www.jjlamu.com/bbs
正常显示

二级目录伪静态规则为:
location /mshop/install/ {
index index.html index.php;
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 ^/mshop/install/(.*)$ /mshop/install/index.php;
}
}

location /ecstore/ {
index index.html index.php;
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 ^/ecstore/(.*)$ /ecstore/index.php;
}
}

location /bbs/ {
root /home/wwwroot/www.jjlamu.com;
index index.php index.html forum.php;
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php?q=$1 last;
rewrite "^/index.html$" /index.php last;
rewrite "^/index\.html" /index.php last;
rewrite "^/category$" /index.php last;

rewrite ^/bbs/archiver/((fid|tid)-[w-]+.html)$ /bbs/archiver/index.php?$1 last;
rewrite ^/bbs/forum-([0-9]+)-([0-9]+).html$ /bbs/forumdisplay.php?fid=$1&page=$2 last;
rewrite ^/bbs/thread-([0-9]+)-([0-9]+)-([0-9]+).html$ /bbs/viewthread.php?tid=$1&extra=page%3D$3&page=$2 last;
rewrite ^/bbs/space-(username|uid)-(.+).html$ /bbs/space.php?$1=$2 last;
rewrite ^/bbs/tag-(.+).html$ /bbs/tag.php?name=$1 last;
rewrite ^([^\.]*)/forum-(\w+)-([0-9]+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&page=$3 last;
rewrite ^([^\.]*)/group-([0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=group&fid=$2&page=$3 last;
break;
}
}
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2014-1-25 13:12:17 | 显示全部楼层

军哥,请你过目!十分感谢!



我调了好几天了,十分郁闷!
nginx伪静态规则也仔细看了,不太明白,就是通过不了,好像后台nginx不反回页面内容,而返回一个文件一样,此文件就是二级目录下的index.php文件,字节数相同。辛苦军哥帮忙解决。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2014-1-26 08:51:47 | 显示全部楼层

用的什么程序,就去他们官网找个对应程序的nginx伪静态,如果是二级目录就找个对应程序的二级目录的伪静态
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-25 09:28 , Processed in 0.025479 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表