document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. # cat /etc/lighttpd/conf-enabled/10-cgi.conf
  2.  
  3. server.modules += ( "mod_cgi" )
  4.  
  5. #$HTTP["remoteip"] =~ "127.0.0.1" {
  6. # alias.url += ( "/cgi-bin/" => "/usr/lib/cgi-bin/" )
  7. # $HTTP["url"] =~ "^/cgi-bin/" {
  8. # cgi.assign = ( "" => "" )
  9. # }
  10. #}
  11.  
  12. #$HTTP["url"] =~ "^/cgi-bin/" {
  13. #cgi.assign = ( "" => "" )
  14. #}
  15.  
  16. ## Warning this represents a security risk, as it allow to execute any file
  17. ## with a .pl/.php/.py even outside of /usr/lib/cgi-bin.
  18. #
  19. #cgi.assign = (
  20. # ".pl" => "/usr/bin/perl",
  21. # ".php" => "/usr/bin/php-cgi",
  22. # ".py" => "/usr/bin/python",
  23. #)
  24.  
  25. alias.url += ( "/cgi-bin/" => "/usr/lib/cgi-bin/" )
  26. cgi.assign = ( "cgi" => "" )
');