Advertisement
Guest User

phpMyAdmin.conf

a guest
Nov 27th, 2015
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 KB | None | 0 0
  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.  
  8. Alias /phpMyAdmin /usr/share/phpMyAdmin
  9. Alias /phpmyadmin /usr/share/phpMyAdmin
  10.  
  11. <Directory /usr/share/phpMyAdmin/>
  12. AddDefaultCharset UTF-8
  13.  
  14. <IfModule mod_authz_core.c>
  15. # Apache 2.4
  16. <RequireAny>
  17. Require ip <my ip>
  18. </RequireAny>
  19. </IfModule>
  20. <IfModule !mod_authz_core.c>
  21. # Apache 2.2
  22. Order Deny,Allow
  23. Require ip <my ip>
  24. </IfModule>
  25. </Directory>
  26.  
  27. <Directory /usr/share/phpMyAdmin/setup/>
  28. <IfModule mod_authz_core.c>
  29. # Apache 2.4
  30. <RequireAny>
  31. Require ip <my ip>
  32. </RequireAny>
  33. </IfModule>
  34. <IfModule !mod_authz_core.c>
  35. # Apache 2.2
  36. Order Deny,Allow
  37. Require ip <my ip>
  38. </IfModule>
  39. </Directory>
  40.  
  41. # These directories do not require access over HTTP - taken from the original
  42. # phpMyAdmin upstream tarball
  43. #
  44. <Directory /usr/share/phpMyAdmin/libraries/>
  45. Order Deny,Allow
  46. Deny from All
  47. Allow from None
  48. </Directory>
  49.  
  50. <Directory /usr/share/phpMyAdmin/setup/lib/>
  51. Order Deny,Allow
  52. Deny from All
  53. Allow from None
  54. </Directory>
  55.  
  56. <Directory /usr/share/phpMyAdmin/setup/frames/>
  57. Order Deny,Allow
  58. Deny from All
  59. Allow from None
  60. </Directory>
  61.  
  62. # This configuration prevents mod_security at phpMyAdmin directories from
  63. # filtering SQL etc. This may break your mod_security implementation.
  64. #
  65. #<IfModule mod_security.c>
  66. # <Directory /usr/share/phpMyAdmin/>
  67. # SecRuleInheritance Off
  68. # </Directory>
  69. #</IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement