lnmpa 在VPS线上使用nginx做前端,apache后端的CI 的uri配置
如题,最近在VPS上弄lnmpa配置,只能访问首页,其他都报404错误。使用CI2.2,试了下没有CI的网站是成功的。不知道lnmpa针对CI如何配置。。。若有人配置过,求指导一下。。。
server
{
listen 80;
#listen [::]:80;
server_name www.***.net;
index index.html index.htm index.php default.html default.htm default.php;
root/home/wwwroot;
error_page 404 @apache;
location /
{
try_files $uri $uri/ @apache;
}
location @apache
{
internal;
proxy_pass http://127.0.0.1:88;
include proxy.conf;
}
location ~ [^/]\.php(/|$)
{
proxy_pass http://127.0.0.1:88;
include proxy.conf;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
access_log/home/wwwlogs/**.logaccess;
}
有没有大神飘过呢。。。求指导哇。。。不胜感激。。。。:hug::hug: 结贴喽。。。弄了好多天终于可以了,其实lnmpa对于CI的配置很简单,前端nginx, Apache处理动态服务时,只需针对Apache的.htaccess 设置就可以了。
页:
[1]