Re: [PATCH/RFC] gitweb: Run in FastCGI mode if gitweb script has .fcgi extension
- From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Date
- Jun 5, 2010, 21:12 UTC
- Message-ID
- <AANLkTimrD_JkJdHOn6PfKr0LMaGNn3V9_cHOkdjKVke9@mail.gmail.com>
- In-Reply-To
- <1275772278-14709-1-git-send-email-jnareb@gmail.com>
On Sat, Jun 5, 2010 at 21:11, Jakub Narebski <jnareb@gmail.com> wrote:
> 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.
Looks good to me, it'll make deploying on e.g. Apache a lot easier, and doubtless most other web servers too.