2017-05-08 28 views
0

私はすべてのソリューションを試してみました。アクセスを禁止する方法を禁止!エラー403からxampp 5.6

Allow from all 
Require all granted 

私は上記の行をhttpd-xampp.confに追加しましたが、何も起こりません。助けてください!!で、最後の

+1

これらの2つのディレクティブは、異なるバージョンからは「はすべてを付与された必要」試してみてください、その1つだけです。 –

+0

@ ezra-sはい、そうです。 – Paramjeet

答えて

0
Open httpd-vhosts.conf file and in the bottom of the file change it 

<VirtualHost *:80> 
DocumentRoot “E:/xampp/htdocs/” 
ServerName localhost 
<Directory E:/xampp/htdocs/>. 
Require all granted 
</Directory> 
</VirtualHost> 



Here E:/xampp is my project workspace, you can change it as per your settings and Second Change is 

Now Open httpd-xampp.conf file and in the bottom of the file change it 

# 
# New XAMPP security concept 
# 
<LocationMatch “^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))”> 
Order deny,allow 
Allow from all 
Allow from ::1 127.0.0.0/8 
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var 
</LocationMatch> 

NOTE : Make sure u backup files (httpd-xampp.conf) and (httpd-vhosts.conf) , Both Files are located in Drive:\xampp\apache\conf\extra 
+0

を提案してくれてありがとう実際は、httpd-xampp.confファイルにLocationMatchタグがありません。 – Paramjeet

+0

あなたのウィンドウの右上隅にある検索ボックスの助けを借りて、このファイルを検索してください.... –

+0

D:\ xampp \ apache \ conf \ httpd-xampp.confファイルの余分なパス – Paramjeet

0

、私は答えを見つけた - :

は、このあなたが2.4を使用する場合は、後者を使用し、

Alias /phpmyadmin "D:/xampp/phpMyAdmin/" 
<Directory "D:/xampp/phpMyAdmin"> 
    AllowOverride AuthConfig 
    Require all granted 
    ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var 
</Directory>