PHPMyAdmin enable ONLY localhost access
Posted: 03. November 2012 09:38
Hello! After xampp installation on fedora 17 i had a very common problem: i couldn't access phpmyadmin and was getting access forbidden message. I *fixed* it by adding "Require all granted" line to <Directory> tag in /opt/lampp/etc/extra/httpd-xampp.config. Now I can access it, but the problem is: anybody can. Even when I type in my_ip_address/phpmyadmin phpmyadmin opens.
It looks like this part doesn't function at all?
It looks like this part doesn't function at all?
- Code: Select all
#
# New XAMPP security concept
#
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
Order deny,allow
Deny from all
Allow from all ::1 127.0.0.0/8 \
fc00::/7 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 \
fe80::/10 169.254.0.0/16
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>