gitweb: support automatic FCGI detection
commita52fb04eb4ab13dbccdf1838f117590bbad70569
authorKyle J. McKay <mackyle@gmail.com>
Mon, 13 Apr 2015 06:35:59 +0000 (12 23:35 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Mon, 13 Apr 2015 06:35:59 +0000 (12 23:35 -0700)
tree0217f740d609f50b756e677daeb7c3cc50f27ab6
parentedc86ee83917a7e10fa057f5f8f931224bc2ed13
gitweb: support automatic FCGI detection

Add support for a new configuration option '$auto_fcgi' and when
true automatically activate FCGI mode when getsockname succeeds on
STDIN.

Enabling this feature allows the same configuration to be used for
both non-FCGI (i.e. regular CGI mode) and FCGI mode operation.

This feature is always opt-in only.  Because although unlikely, it's
certainly feasible for some hypothetical server software to run
normal CGI mode programs with STDIN connected to a socket for which
getsockname succeeds.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
Documentation/gitweb.conf.txt
gitweb/gitweb.perl