首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往
  • 您找到你想要的搜索结果了吗?
    是的
    没有找到

    Nginx对指定目录做代理及显示文件夹目录

    default.conf 添加如下内容: location / {          root /data/www/file                    //指定实际目录绝对路径;          autoindex...on;                            //开启目录浏览功能;          autoindex_exact_size off;            //关闭详细文件大小统计...,让文件大小显示MB,GB单位,默认为b;          autoindex_localtime on;              //开启以服务器本地时区显示文件修改日期! ...**.com/soft 目录浏览 vi  /usr/local/nginx/conf/nginx.conf  #编辑配置文件,在server {下面添加以下内容: location  /soft { autoindex...on; autoindex_exact_size off; autoindex_localtime on;                             } :wq!

    4.6K61

    nginx服务器配置虚拟主机

    D:\www";//根目录         location / {             index  index.html index.htm index.php;             //autoindex... 是否开启目录列表             autoindex  on;         }         //以下是伪静态规则         location ~ \.php(.*)$ {             ...phpStudy\WWW";         location / {             index  index.html index.htm index.php;             #autoindex..."D:\www\web1";         location / {             index  index.html index.htm index.php;             #autoindex..."D:\www\web2";         location / {             index  index.html index.htm index.php;             #autoindex

    3.8K20
    领券