gitweb: Run in FastCGI mode if gitweb script has .fcgi extension
commit45aa9895c5bef3914b6f3707b983f7a53900ebb7
authorJakub Narebski <jnareb@gmail.com>
Sat, 5 Jun 2010 21:11:18 +0000 (5 23:11 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 11 Jun 2010 15:54:35 +0000 (11 08:54 -0700)
tree8502c99969f0b31838cde7ccd3dfd7b0172727c3
parenta0446e7ba8dc05c67052b67c2faacdf5f7ce625a
gitweb: Run in FastCGI mode if gitweb script has .fcgi extension

If the name of the script ($SCRIPT_NAME or $SCRIPT_FILENAME CGI
environment variable, or __FILE__ literal) ends with '.fcgi'
extension, run gitweb in FastCGI mode, as if it was run with
'--fastcgi' / '--fcgi' option.

This is intended for easy deploying gitweb using FastCGI
interface.

Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
gitweb/gitweb.perl