Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] How to use Jetty as a Git server with the Smart HTTP protocol?

Hi,

On Sun, Jul 12, 2026 at 4:50 PM Julien via jetty-users
<jetty-users@xxxxxxxxxxx> wrote:
>
> scriptPattern in FastCGIProxyHandler expects a regular expression, but how can I pass the constant value "/usr/lib/git-core/git-http-backend" for SCRIPT_FILENAME?

SCRIPT_FILENAME is built from `root + path`, so likely:

* root = /usr/lib/git-core
* path = /git-http-backend
* scriptPattern = (.*)

The pattern will match the entirety of the request path
("/git-http-backend"), and you should be good.

> How to set FastCGI parameters in FastCGIProxyHandler?

Override FastCGIProxyHandler.customizeFastCGIHeaders().

-- 
Simone Bordet
----
https://webtide.com
https://cometd.org
Developer advice, training, services and support
from the Jetty & CometD experts.


Back to the top