1.開啟httpd-xampp.conf(/xampp/apache/conf/extra/httpd-xampp.conf)
找到以下內容
找到以下內容
New XAMPP security concept
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
Order deny,allow
Deny from all
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>
將Deny from all這一行註釋掉,即
#Deny from all
注:需要重啟apache (/opt/lampp/lampp restart)
2.編輯httpd.conf (/opt/lampp/etc/httpd.conf),
找到以下內容:
<Directory />
AllowOverride none
Require all denied
</Directory>
改為:
<Directory />
# AllowOverride none
# Require all denied
AllowOverride All
Require all granted
</Directory>
這樣就可以了
沒有留言:
張貼留言