你的位置:首页 > 操作系统

[操作系统]简单配置nginx使之支持phpinfo

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;}