Hi,
It looks like the failure isn’t Git itself—your client is getting HTTP 500 “URL Rewrite Module Error”, which usually means the rewrite rule is erroring before git-http-backend.exe runs.
In your web.config the key thing is you are using <serverVariables>. On IIS, setting server variables via URL Rewrite is blocked unless you explicitly allow it. If the server variables aren’t allowed/unlocked, URL Rewrite will return exactly this 500 error.
Things to check on Server 2025:
- URL Rewrite: “Allowed Server Variables”
- IIS Manager → your server (or site) → URL Rewrite → View Server Variables
- Add/allow at least:
-
GIT_HTTP_EXPORT_ALL -
GIT_PROJECT_ROOT -
PATH_INFO
-
- Enable “Allow Server Variables” for the rule
- After adding them, recycle the app pool / restart IIS and re-test.
- Confirm CGI is installed/enabled
- Server Manager → Add Roles/Features → Web Server (IIS) → Application Development → CGI
- Get the detailed rewrite error
- Check Windows Event Viewer and/or enable Failed Request Tracing (FREB) for the site; it will tell you exactly which part of the rule is failing.
Hope to hear from you soon.