Advertisement
Guest User

Untitled

a guest
Aug 7th, 2015
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. [root@heartfx ~]# vi /etc/httpd/conf.d/phpMyAdmin.conf
  2. # # Apache 2.4
  3. # <RequireAny>
  4. # Require ip [my_ip_here]
  5. # Require ip ::1
  6. # </RequireAny>
  7. # </IfModule>
  8. # <IfModule !mod_authz_core.c>
  9. # # Apache 2.2
  10. # Order Deny,Allow
  11. # Deny from All
  12. # Allow from [my_ip_here]
  13. # Allow from ::1
  14. # </IfModule>
  15. #</Directory>
  16.  
  17. <Directory /usr/share/phpMyAdmin/setup/>
  18. <IfModule mod_authz_core.c>
  19. # Apache 2.4
  20. <RequireAny>
  21. Require ip [my_ip_here]
  22. Require ip ::1
  23. Require all granted
  24. </RequireAny>
  25. </IfModule>
  26. <IfModule !mod_authz_core.c>
  27. # Apache 2.2
  28. Order Deny,Allow
  29. #Deny from All
  30. Allow from [my_ip_here]
  31. Allow from ::1
  32. </IfModule>
  33. </Directory>
  34.  
  35. # These directories do not require access over HTTP - taken from the original
  36. # phpMyAdmin upstream tarball
  37. #
  38. <Directory /usr/share/phpMyAdmin/libraries/>
  39. Order Deny,Allow
  40. Deny from All
  41. Allow from None
  42. </Directory>
  43.  
  44. <Directory /usr/share/phpMyAdmin/setup/lib/>
  45. Order Deny,Allow
  46. Deny from All
  47. Allow from None
  48. </Directory>
  49.  
  50. <Directory /usr/share/phpMyAdmin/setup/frames/>
  51. Order Deny,Allow
  52. Deny from All
  53. Allow from None
  54. </Directory>
  55.  
  56. # This configuration prevents mod_security at phpMyAdmin directories from
  57. # filtering SQL etc. This may break your mod_security implementation.
  58. #
  59. #<IfModule mod_security.c>
  60. # <Directory /usr/share/phpMyAdmin/>
  61. # SecRuleInheritance Off
  62. # </Directory>
  63. #</IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement