码迷,mamicode.com
首页 > Web开发 > 详细

简单配置nginx使之支持phpinfo

时间:2016-05-09 12:48:59      阅读:1996      评论:0      收藏:0      [点我收藏+]

标签:

server {
        listen       80;
        server_name  localhost;
        index index.html index.htm index.php;
        root /alidata/www/pro;
        location ~ .*\.(php|php5)?$
        {
                #fastcgi_pass  unix:/tmp/php-cgi.sock;
                fastcgi_pass  127.0.0.1:9000;
                fastcgi_index index.php;
                include fastcgi.conf;
                include pathinfo.conf;# 加载phpinfo.conf配置
        }
        location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
        {
                expires 30d;
        }
        location ~ .*\.(js|css)?$
        {
                expires 1h;
        }
        #α¾²Ì¬¹æÔò
        include /alidata/server/nginx/conf/rewrite/default.conf;
        access_log  /alidata/log/nginx/access/mobile.log;
}

 

简单配置nginx使之支持phpinfo

标签:

原文地址:http://www.cnblogs.com/bass6/p/5473472.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!