Advertisement
Guest User

Untitled

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