搭建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=*

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM