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?

Go ahead and submit a PR for the documentation at https://github.com/jetty/jetty.project/

Alternatively you can just post a message in the discussions forum there too (those are well indexed by search engines and LLMs)
https://github.com/jetty/jetty.project/discussions

 - Joakim

On Sat, Jul 11, 2026 at 4:48 AM Julien <gouessej@xxxxxxxxx> wrote:

Hello


Thank you for mentioning this other option.


Actually, you were right, I was wrong, fcgiwrap can work with other http servers than nginx, it's just mostly documented to work with this one. I'm going to give it a try, I'll probably have some other questions to ask. If I succeeded in making it work, would it be interesting to add something about that into the documentation?


Best regards.


envoyé : 10 juillet 2026 à 18:34
de : Joakim Erdfelt <joakim.erdfelt@xxxxxxxxx>
à : Julien <gouessej@xxxxxxxxx>
cc : JETTY user mailing list <jetty-users@xxxxxxxxxxx>
objet : 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.


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