# Git-http on uHTTPd?

**URL:** <https://forum.openwrt.org/t/git-http-on-uhttpd/254923>\
**Category:** Installing and Using OpenWrt\
**Created:** [October 27, 2026, 5:03pm UTC](https://forum.openwrt.org/t/git-http-on-uhttpd/254923 "2026-10-27T17:03:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![m95d](https://forum.openwrt.org/user_avatar/forum.openwrt.org/m95d/32/30883_2.png) [@m95d](https://forum.openwrt.org/u/m95d)\
**Post date:** [October 27, 2026, 5:03pm UTC](https://forum.openwrt.org/t/git-http-on-uhttpd/254923/1 "2026-10-27T17:03:25Z")

</div>

Hi.

Can I use uHTTPd to run `git-http-backend` cgi? How do I configure it?

> **[Git - git-http-backend Documentation](https://git-scm.com/docs/git-http-backend)**

`git-http-backend` needs to be executed when a directory (`/git`) is accessed.

1. Can I alias `/git` from web root to `/usr/lib/git-core/git-http-backend`? The [uHTTPd documentation](https://openwrt.org/docs/guide-user/services/webserver/uhttpd) doesn't say anything about any aliases.

2. What do I set `cgi_prefix` to? `cgi-prefix` seems to be relative to web root and `/usr/lib/git-core/git-http-backend` is outside that.

Thanks.
