Chinaunix首页 | 论坛 | 博客
  • 博客访问: 159646
  • 博文数量: 34
  • 博客积分: 2070
  • 博客等级: 大尉
  • 技术积分: 277
  • 用 户 组: 普通用户
  • 注册时间: 2010-02-26 19:29
文章分类
文章存档

2015年(2)

2014年(4)

2013年(1)

2012年(1)

2011年(5)

2010年(21)

我的朋友

分类: PHP

2015-09-15 10:02:28

1.下载并执行LNMP一键安装包 、
2.配置相关错误解决
nginx访问php页面access denied(403)错误问题
修改php配置文件,cgi.fix_pathinfo = 1

server {
    listen 80; 
    server_name 192.168.11.198;
    index index.php index.html index.htm;
    root /home/wwwroot
 
    location ~ \.php($|/){
        fastcgi_pass  127.0.0.1:9000;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include fastcgi.conf;
    }   


    if (!-e $request_filename) {
        rewrite ^/(.*)$ /index.php/$1 last;
        break;
    }   
    access_log  /home/wwwlogs/access_sg.log  access;
}
阅读(1714) | 评论(0) | 转发(0) |
0

上一篇:编译tmux1.8

下一篇:linux内存管理简单总结

给主人留下些什么吧!~~