zoukankan      html  css  js  c++  java
  • nginxserver报403 forbidden错误的解决的方法

    

    改动nginx.config文件内容:

    location / {
                #root   html;
                root   D:java;
                index  index.html index.htm;
                #没有索引页时,罗列文件和子文件夹 
                autoindex on; 
                autoindex_exact_size on; 
                autoindex_localtime on;
            }
         location ~ /.flv {
                flv;
            }
            location ~ /.mp4 {
                mp4;
            }


    加入: 

     #没有索引页时。罗列文件和子文件夹 
                autoindex on; 
                autoindex_exact_size on; 
                autoindex_localtime on;

  • 相关阅读:
    BZOJ 3330 分数
    FR #11题解
    BZOJ 1857 传送带
    BZOJ 4757 Building a Tall Barn
    FR #10题解
    BZOJ 4393 Fruit Feast
    BZOJ 3126 Photo
    BZOJ 1312 Hard Life
    BZOJ 2039 employ人员雇佣
    Count SIN Numbers
  • 原文地址:https://www.cnblogs.com/wzzkaifa/p/6931686.html
Copyright © 2011-2022 走看看