找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 1625|回复: 0

apache伪静态转nginx问题!

[复制链接]
发表于 2015-9-23 09:47 | 显示全部楼层 |阅读模式
# 将 RewriteEngine 模式打开
RewriteEngine On

RewriteBase /
# Rewrite 系统规则请勿修改
RewriteRule ^login(.*)$ index.php/api/login/index/(.*)$
RewriteRule ^ping(.*)$ index.php/api/ping/index/(.*)$
RewriteRule ^auth(.*)$ index.php/api/auth/index/(.*)$
RewriteRule ^portal(.*)$ index.php/api/user/index/(.*)$
RewriteRule ^library/test/success.html index.php/api/login/apple
RewriteRule ^weixin(.*)$   /index.php/api/login/weixin/(.*)$
RewriteRule ^dladmin(.*)$   /index.php/index/index/alog/(.*)$
RewriteRule ^ptadmin(.*)$   /index.php/wifiadmin/login/index/(.*)$
RewriteRule ^wxmm(.*)$   /index.php/index/wxmm/index/(.*)$
上面是协成的apache伪静态文件,通过百度搜索来的一个工具转成nginx的伪静态文件如下:
rewrite ^/login(.*)$ /index.php/api/login/index/(.*)$ last;
rewrite ^/ping(.*)$ /index.php/api/ping/index/(.*)$ last;
rewrite ^/auth(.*)$ /index.php/api/auth/index/(.*)$ last;
rewrite ^/portal(.*)$ /index.php/api/user/index/(.*)$ last;
rewrite ^/library/test/success.html /index.php/api/login/apple last;
rewrite ^/weixin(.*)$ /index.php/api/login/weixin/(.*)$ last;
rewrite ^/dladmin(.*)$ /index.php/index/index/alog/(.*)$ last;
rewrite ^/ptadmin(.*)$ /index.php/wifiadmin/login/index/(.*)$ last;
rewrite ^/wxmm(.*)$ /index.php/index/wxmm/index/(.*)$ last;
把转过来的文件放在nginx服务器WEB目录里还是不能用,提示还是服务器忙,请各位大神看下,是伪静态文件没转好,还是别的什么问题。
mysql数据库文件都已正常导入,对接好。

我的恩山、我的无线 The best wifi forum is right here.
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-20 03:25

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

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