zoukankan      html  css  js  c++  java
  • 搭建http静态网页服务器出现“Forbidden You don't have permission to access / on this server”

    部分参考链接:

    2.4+ httpd最简单example.conf, 存放目录:/etc/httpd/conf.d/example.conf

    Alias /newstart-zte/ "/nsdl-nanjing-mirrors/"

    <Directory "/nsdl-nanjing-mirrors/">
        Options Indexes
        AllowOverride None
        Require all granted
    </Directory>

        #
        # AllowOverride controls what directives may be placed in .htaccess files.
        # It can be "All", "None", or any combination of the keywords:
        #   Options FileInfo AuthConfig Limit
        #
        AllowOverride None

    https://stackoverflow.com/questions/10873295/error-message-forbidden-you-dont-have-permission-to-access-on-this-server#

    https://askubuntu.com/questions/256013/apache-error-could-not-reliably-determine-the-servers-fully-qualified-domain-n

    note:

    1> 不同版本的http的welcome.conf的配置选项不一样;如关于允许所有用户进行访问的选项:

    http 2.4  ---   Require all granted    允许所有用户访问

    http 2.2 ---    Allow from all      允许所有用户访问

    2> 如何使网页显示的长rpm包名显示完整

    修改/etc/httpd/conf/httpd.conf文件,在尾端增加“IndexOptions VersionSort NameWidth=*

  • 相关阅读:
    字体符号版面设计
    有人嘲笑我ps技术不够好@罗小白
    浅谈UI:
    色彩基础:
    常用的Mysql数据库操作语句大全
    汇编(坑逼之路)
    Linux学习笔记|扬帆
    坑爹的C++要课堂检测了 然而我什么都没学
    why I need a flow learn note.
    burpsuite
  • 原文地址:https://www.cnblogs.com/noxy/p/9524807.html
Copyright © 2011-2022 走看看