phpmyadmin.conf 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # phpmyadmin - Web based MySQL browser written in php
  2. #
  3. # Allows only localhost by default
  4. #
  5. # But allowing phpmyadmin to anyone other than localhost should be considered
  6. # dangerous unless properly secured by SSL
  7. Alias /phpmyadmin /usr/share/phpmyadmin
  8. <Directory /usr/share/phpmyadmin/>
  9. Order Deny,Allow
  10. Deny from All
  11. Allow from 127.0.0.1
  12. Allow from ::1
  13. </Directory>
  14. <Directory /usr/share/phpmyadmin/setup/>
  15. Order Deny,Allow
  16. Deny from All
  17. Allow from 127.0.0.1
  18. Allow from ::1
  19. </Directory>
  20. # These directories do not require access over HTTP - taken from the original
  21. # phpmyadmin upstream tarball
  22. #
  23. <Directory /usr/share/phpmyadmin/libraries/>
  24. Order Deny,Allow
  25. Deny from All
  26. Allow from None
  27. </Directory>
  28. <Directory /usr/share/phpmyadmin/setup/lib/>
  29. Order Deny,Allow
  30. Deny from All
  31. Allow from None
  32. </Directory>
  33. # This configuration prevents mod_security at phpmyadmin directories from
  34. # filtering SQL etc. This may break your mod_security implementation.
  35. #
  36. #<IfModule mod_security.c>
  37. # <Directory /usr/share/phpmyadmin/>
  38. # SecRuleInheritance Off
  39. # </Directory>
  40. #</IfModule>