2.4.2后版本的apache中需要在目錄下面添加 Require all granted,否則無論怎么訪問都是403


http://ylw6006.blog.51cto.com/470441/965119

 

注意:2.4.2版本的apache中需要在目錄下面添加 Require all granted,否則無論怎么訪問都是403,悲了個催的!具體報錯如下:

[Fri Aug 10 19:07:13.263893 2012] [authz_core:error] [pid 8918:tid 1126259008] [client 192.168.123.102:53420] AH01630: client  denied by server configuration: /tmp

  1. [root@db1 ~]# grep -v '^#' /usr/local/apache/conf/extra/httpd-vhosts.conf |grep -v '^$'  
  2. <VirtualHost *:80
  3.     ServerName 192.168.123.110   
  4.     <Location /> 
  5.     Order deny,allow  
  6.     Deny from all  
  7.     </Location
  8. </VirtualHost
  9. <VirtualHost *:80
  10.     ServerName   www.yang.com  
  11.     DocumentRoot /tmp  
  12.     <Directory /tmp
  13.      Options +indexes  
  14.      Order allow,deny  
  15.      Allow from all  
  16.      Require all granted   
  17.     </Directory
  18. </VirtualHost


免責聲明!

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



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