Advertisement
Inidian

lighttpd phpMyAdmin

Oct 8th, 2013
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. # Alias for phpMyAdmin directory
  2. alias.url += (
  3. "/phpmyadmin" => "/var/www/phpMyAdmin",
  4. )
  5.  
  6. # Disallow access to libraries
  7. $HTTP["url"] =~ "^/phpmyadmin/libraries" {
  8. url.access-deny = ( "" )
  9. }
  10. $HTTP["url"] =~ "^/phpmyadmin/setup/lib" {
  11. url.access-deny = ( "" )
  12. }
  13.  
  14. # Limit access to setup script
  15. $HTTP["url"] =~ "^/phpmyadmin/setup" {
  16. auth.backend = "htpasswd"
  17. auth.backend.htpasswd.userfile = "/etc/phpmyadmin/htpasswd.setup"
  18. auth.require = (
  19. "/" => (
  20. "method" => "basic",
  21. "realm" => "phpMyAdmin Setup",
  22. "require" => "valid-user"
  23. )
  24. )
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement