Thank you very much, it's clearer now. I initially thought that I wouldn't have to extend FastCGIProxyHandler.
This is the kind of URL I use now with Sourceforge (read-only and read-write accesses):
I'd prefer not having to include /usr/lib/git-core/git-http-backend in the URLs. Maybe hardcoding the value in the class that will extend FastCGIProxyHandler will help.
Best regards.
envoyé : 13 juillet 2026 à 20:51
de : Simone Bordet <sbordet@xxxxxxxxxxx>
à : Julien <gouessej@xxxxxxxxx>, JETTY user mailing list <jetty-users@xxxxxxxxxxx>
objet : 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.