VPS侦探论坛

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

LNMP用CI框架問題.

[复制链接]
发表于 2010-12-27 15:39:41 | 显示全部楼层 |阅读模式

小弟自行安裝php+ nginx+ mysql用以下rewrite rule可以成功使用CI框架.
rewrite ^/\/?index\.html$ /html/index.html last;
rewrite ^/((xxxx/|xxxx/|xxxx/xxxx|xxxx|xxxx)/?.*)$ /index.php/$1 last;
rewrite ^/\/?((cn|en|tw)?\/?([a-zA-Z][a-zA-Z0-9_\-]+)*\.html)$ /html/$1 last;
rewrite ^/\/?((cn|en|tw)?\/?news\/\d+)\.html$ /html/$1.html last;

但如果用LNMP安裝後使用相同rewirte就只可以成功rewirte到html, 但框架不能使用.

想問下師兄門有否如到相同問題.
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2010-12-27 19:29:29 | 显示全部楼层

回复 1# 的帖子



不了解。。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2010-12-27 23:05:24 | 显示全部楼层

那麼在自行架設nginx/ PHP的設定上跟LNMP的設定會有不同嗎?
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-17 02:57 , Processed in 0.025727 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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