你的位置:首页 > 软件开发 > 操作系统 > nginx打开目录浏览

nginx打开目录浏览

发布时间:2016-05-14 22:00:04
server { listen 80; server_name localhost; index index.html index.htm index.php; autoindex on; #开启nginx目录浏览功能 autoindex_lo ...
server {    listen    80;    server_name localhost;    index index.html index.htm index.php;    autoindex on; #开启nginx目录浏览功能    autoindex_localtime on; #显示文件修改时间为服务器本地时间    root /alidata/www/public;    location ~ .*\.(php|php5)?$    {        #fastcgi_pass unix:/tmp/php-cgi.sock;        fastcgi_pass 127.0.0.1:9000;        fastcgi_index index.php;        include fastcgi.conf;    }    location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$    {        expires 30d;    }    location ~ .*\.(js|css)?$    {        expires 1h;    }    include /alidata/server/nginx/conf/rewrite/default.conf;

原标题:nginx打开目录浏览

关键词:nginx

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

我的浏览记录