Skip to content

Instantly share code, notes, and snippets.

@shansana
Last active March 24, 2017 07:28
Show Gist options
  • Save shansana/76496e82a75b59754def281595c605b7 to your computer and use it in GitHub Desktop.
Save shansana/76496e82a75b59754def281595c605b7 to your computer and use it in GitHub Desktop.
Allow Access to phpMyAdmin through LAN using IP - XAMPP
# ---- Edit file Drive:\xampp\apache\conf\extra\httpd-xampp.conf
# ---- Find below code at the bottom of the file
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
Require local
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>
# ---- Replace it with this code
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
Order deny,allow
Deny from all
Allow from ::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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment