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?

You'll probably want to have your own CGI servlet then.

You might find the old Jetty CGI servlet useful as a starting point.

https://github.com/jetty/jetty.project/blob/jetty-9.4.x/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/CGI.java

It's not something that Eclipse Jetty will likely ever implement again, too many unsolvable security issues with CGI as a concept.

- Joakim


On Fri, Jul 10, 2026 at 11:31 AM Julien <gouessej@xxxxxxxxx> wrote:

Hello


Thank you for these precious pieces of information. fcgiwrap seems to require nginx unfortunately.


envoyé : 10 juillet 2026 à 17:19
de : Joakim Erdfelt <joakim.erdfelt@xxxxxxxxx>
à : 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?


CGI and FastCGI are different things.

CGI is an old school technique that forks a process to the configured script per request.
FastCGI doesn't call scripts or fork processes, it communicates with a persistent process over the FastCGI protocol.
That other process is basically a FastCGI Server.

Jetty used to have a CGI Servlet, but it's been removed as result of CVE-2023-36479.

I don't think `git-http-backend` has a FastCGI option.
You'd likely have to use a tool like `fcgiwrap` to make `git-http-backend` available via FastCGI.

- Joakim

On Fri, Jul 10, 2026 at 9:56 AM Julien via jetty-users <jetty-users@xxxxxxxxxxx> wrote:

Hello


I would like to use Git with Smart HTTP with Jetty instead of Apache HTTPD. I know that Jetty supports CGI thanks to FastCGI, I know how to activate the module, I saw the example for Wordpress in the documentation, but I have no idea about how to make it work with the CGI script git-http-backend. Is it doable with Jetty?

_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/jetty-users

Back to the top