Advertisement
Guest User

phpMyAdmin

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