Advertisement
Guest User

Untitled

a guest
Nov 13th, 2010
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. # phpMyAdmin default Apache configuration
  2.  
  3. Alias /phpmyadmin /usr/share/phpmyadmin
  4.  
  5. <Directory /usr/share/phpmyadmin>
  6. Options FollowSymLinks
  7. DirectoryIndex index.php
  8.  
  9. <IfModule mod_php5.c>
  10. AddType application/x-httpd-php .php .phtml
  11.  
  12. php_flag magic_quotes_gpc Off
  13. php_flag track_vars On
  14. php_flag register_globals Off
  15. php_value include_path .
  16. </IfModule>
  17.  
  18. </Directory>
  19.  
  20. # Authorize for setup
  21. <Directory /usr/share/phpmyadmin/setup>
  22. <IfModule mod_authn_file.c>
  23. AuthType Basic
  24. AuthName "phpMyAdmin Setup"
  25. AuthUserFile /etc/phpmyadmin/htpasswd.setup
  26. </IfModule>
  27. Require valid-user
  28. </Directory>
  29.  
  30. # Disallow web access to directories that don't need it
  31. <Directory /usr/share/phpmyadmin/libraries>
  32. Order Deny,Allow
  33. Deny from All
  34. </Directory>
  35. <Directory /usr/share/phpmyadmin/setup/lib>
  36. Order Deny,Allow
  37. Deny from All
  38. </Directory>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement