Feature #2013

[PATCH] mod_cgi: option to execute only chmod+x files

Added by penma about 5 years ago. Updated about 5 years ago.

Status:FixedStart date:2009-06-25
Priority:LowDue date:
Assignee:-% Done:

100%

Category:mod_cgi
Target version:1.5.0
Missing in 1.5.x:

Description

This patch adds an option that will only execute a CGI script if its +x bit is set.
If the bit is not set the script will be treated as a normal file.

Together with cgi.execute-all, this can be used to execute all files that have +x
set and to not execute all files that don't have +x set. Some other httpds do this
(example: thttpd, gatling and probably quite a lot more). It removes the need to
flag all CGIs with an extension. (Extension based handling of stuff is not UNIX at
all and belongs to Windows software.)

The default setting is "disable" and will do nothing.

Applies to a720459

lighttpd-e803990-xonly.diff Magnifier (2.32 KB) penma, 2009-06-25 18:43

Associated revisions

Revision 2558
Added by stbuehler about 5 years ago

Add "cgi.execute-x-only" to mod_cgi, requires +x for cgi scripts (fixes #2013)

Revision 2559
Added by stbuehler about 5 years ago

Add "cgi.execute-x-only" to mod_cgi, requires +x for cgi scripts (fixes #2013)

History

#1 Updated by stbuehler about 5 years ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

Applied in changeset r2558.

Also available in: Atom