今天本來是想要在自己本地搭建一個wamp環境用來做一些代碼的測試和框架的學習。
鑒于目前工作的時候用到了php5.5,所以就用了wamp-server V2.5版本,安裝完成之后配置虛擬主機一直出現403,各種重啟N次卸載重裝,最后才好到問題的所在,故記錄下來,希望其他同學有這樣的問題的時候可以快速的解決~~
apache 虛擬主機配置:
apache AH01630: client denied by server configuration錯誤解決方法
出現這個錯誤的原因是, apache2.4?與? apache2.2?的虛擬主機配置寫法不同導致。
apache2.2的寫法:
<VirtualHost *:
80
>
ServerName fdipzone.demo.com
DocumentRoot
"
/home/fdipzone/sites/www
"
DirectoryIndex index.html index.php
<Directory
"
/home/fdipzone/sites/www
"
>
Options
-Indexes +
FollowSymlinks
AllowOverride All
Order deny,allow
Allow
from
all
</Directory>
</VirtualHost>
?
如果在2.4中使用以上寫法就會有apache AH01630: client denied by server configuration錯誤。
解決方法,apache2.4中
?
Order deny,allow
Allow
from
all
Allow
from
host ip
?
修改為
?
1
Require all granted
2
Require host ip
?
修改后的配置如下:
1
<VirtualHost *:
80
>
2
ServerName fdipzone.demo.com
3
DocumentRoot
"
/home/fdipzone/sites/www
"
4
DirectoryIndex index.html index.php
5
6
<Directory
"
/home/fdipzone/sites/www
"
>
7
Options -Indexes +
FollowSymlinks
8
AllowOverride All
9
Require all granted
10
</Directory>
11
12
</VirtualHost>
?
更多文章、技術交流、商務合作、聯系博主
微信掃碼或搜索:z360901061
微信掃一掃加我為好友
QQ號聯系: 360901061
您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。
【本文對您有幫助就好】元

