From 2683d1b0a284fe0c8e3fef0c6e2e4e77984d5396 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Mon, 28 Apr 2008 20:30:27 +0000 Subject: [PATCH] - do not by default forbid download of .pl (and .fcgi) scripts Changed files: lighttpd-mod_cgi.conf -> 1.7 lighttpd-mod_fastcgi.conf -> 1.6 lighttpd-mod_staticfile.conf -> 1.11 --- lighttpd-mod_cgi.conf | 6 ++++++ lighttpd-mod_fastcgi.conf | 4 ++++ lighttpd-mod_staticfile.conf | 5 ----- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/lighttpd-mod_cgi.conf b/lighttpd-mod_cgi.conf index 8c5e97f..329f610 100644 --- a/lighttpd-mod_cgi.conf +++ b/lighttpd-mod_cgi.conf @@ -22,3 +22,9 @@ cgi.assign = ( # ".php" => "/usr/bin/php.cgi", # ".py" => "/usr/bin/python", ) + +#static-file.exclude-extensions = ( +# ".pl", +# ".php", +# ".py", +#) diff --git a/lighttpd-mod_fastcgi.conf b/lighttpd-mod_fastcgi.conf index 0a9485b..5fddfbf 100644 --- a/lighttpd-mod_fastcgi.conf +++ b/lighttpd-mod_fastcgi.conf @@ -11,3 +11,7 @@ server.modules += ( #### fastcgi module ## read fastcgi.txt for more info #fastcgi.debug = 1 + +#static-file.exclude-extensions = ( +# ".fcgi", +#) diff --git a/lighttpd-mod_staticfile.conf b/lighttpd-mod_staticfile.conf index 00d7471..ef7034f 100644 --- a/lighttpd-mod_staticfile.conf +++ b/lighttpd-mod_staticfile.conf @@ -5,11 +5,6 @@ server.modules += ( "mod_staticfile" ) -# which extensions should not be handled via static-file transfer -# -# .pl, .fcgi are most often handled by mod_fastcgi or mod_cgi -static-file.exclude-extensions = ( ".pl", ".fcgi" ) - # see http://trac.lighttpd.net/trac/ticket/1216 #etag.use-inode = "enable" #etag.use-mtime = "enable" -- 2.44.0