Error 403 in Localhost XAMPP

Asked

Viewed 14,689 times

0

Well, always running everything normally in XAMPP on localhost, suddenly when starting XAMPP it returns me error 403, with this message:

Acesso Proibido!

Você não tem permissão para acessar o diretório requisitado. Pode não      existir o arquivo de índice ou o diretório pode estar protegido contra leitura.

Se você acredita ter encontrado um problema no servidor, por favor entre em contato com o webmaster.

Error 403

localhost
Apache/2.4.10 (Win32) OpenSSL/1.0.1h PHP/5.4.31

I checked what could have happened, saw something related to Virtualhost, but, I could not successfully implement.

My http.conf

  • Good evening, watching the DocumentRoot and you used DocumentRoot "D:/Desenvolvimento/htdocs", this is not the default installation of Xampp, probably you are trying to change things. I recommend that you install from scratch and in the pattern. 'Cause the way this one goes we’re pretty much "Kick".

2 answers

1


Solved using the hiccup found in Power-pixel

At httpd-xampp.conf, I switched the lines:

<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
    Require local
    ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>

For

<LocationMatch "^/(?i:(?:xampp|licenses|webalizer|server-status|server-info))">
 Order deny,allow
 Deny from 212.124.114.48
 Allow from all

 ErrorDocument 403 /error/HTTP_XAMPP_FORBIDDEN.html.var
</LocationMatch>

0

On Mac OS it works like this:

# since XAMPP 1.4.3
<Directory "/opt/lampp/phpmyadmin">
    AllowOverride AuthConfig Limit
    Require local
    ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</Directory>

Trade in for:

<Directory "/opt/lampp/phpmyadmin">
     AllowOverride AuthConfig Limit
     Order allow,deny
     Allow from all
     Require all granted
</Directory>

Restart all the services.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.