# Mismatched app.ini ROOT\_URL after upgrade 1.26

**URL:** <https://forum.gitea.com/t/mismatched-app-ini-root-url-after-upgrade-1-26/12065>\
**Category:** Install/Maintain/Configure\
**Created:** [April 21, 2026, 8:31pm UTC](https://forum.gitea.com/t/mismatched-app-ini-root-url-after-upgrade-1-26/12065 "2026-04-21T20:31:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![thommierother](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/thommierother/32/7380_2.png) [@thommierother](https://forum.gitea.com/u/thommierother)\
**Post date:** [April 21, 2026, 8:31pm UTC](https://forum.gitea.com/t/mismatched-app-ini-root-url-after-upgrade-1-26/12065/1 "2026-04-21T20:31:33Z")

</div>

After Upgrade to gitea 1.26 I see the following error msg:

```auto
The detected web site URL is "http://gitea.netzwissen.de", it's unlikely matching the site config. Mismatched app.ini ROOT_URL or reverse proxy "Host/X-Forwarded-Proto" config might cause wrong URL links for web UI/mail content/webhook notification/OAuth2 sign-in.

```

Upgrade from gitea 1.24 to 1.26.0 was the only change, there were no changes in rev. proxy configuration..

---

<div class="post-metadata">

**Author:** ![hmoffatt](https://avatars.discourse-cdn.com/v4/letter/h/c57346/32.png) [@hmoffatt](https://forum.gitea.com/u/hmoffatt)\
**Post date:** [April 22, 2026, 12:51am UTC](https://forum.gitea.com/t/mismatched-app-ini-root-url-after-upgrade-1-26/12065/2 "2026-04-22T00:51:42Z")

</div>

Yes, came here to post the same.

I had to reconfigure my reverse proxy to pass on the Host header and set X-Forwarded-Proto.

For Apache I now have:

```auto
    ProxyPass /git http://localhost:3000 nocanon
    <Location /git>
            ProxyPreserveHost on
            RequestHeader set X-Forwarded-Proto "https"
    </Location>

```

---

<div class="post-metadata">

**Author:** ![thommierother](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/thommierother/32/7380_2.png) [@thommierother](https://forum.gitea.com/u/thommierother)\
**Post date:** [April 22, 2026, 5:40am UTC](https://forum.gitea.com/t/mismatched-app-ini-root-url-after-upgrade-1-26/12065/3 "2026-04-22T05:40:18Z")

</div>

OK, thanks, in my case it was the same reason, but with another rev. proxy. The misconfiguration was in the Haproy backend config, the correct setting is:

`# docker1 103 gitea `  
`backend gitea `  
` server 109 10.10.10.14:3020 check`  
` http-request set-header X-Forwarded-Port %[dst_port]`  
` http-request add-header X-Forwarded-Proto https if { ssl_fc }`

---

<div class="post-metadata">

**Author:** ![lunny](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/lunny/32/4701_2.png) [@lunny](https://forum.gitea.com/u/lunny)\
**Post date:** [May 1, 2026, 6:09am UTC](https://forum.gitea.com/t/mismatched-app-ini-root-url-after-upgrade-1-26/12065/4 "2026-05-01T06:09:57Z")

</div>

You can change the PUBLIC\_URL\_DETECTION on [Configuration Cheat Sheet | Gitea Documentation](https://docs.gitea.com/administration/config-cheat-sheet#server-server)

---

<div class="post-metadata">

**Author:** ![astrophile](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/astrophile/32/7411_2.png) [@astrophile](https://forum.gitea.com/u/astrophile)\
**Post date:** [May 21, 2026, 12:11am UTC](https://forum.gitea.com/t/mismatched-app-ini-root-url-after-upgrade-1-26/12065/5 "2026-05-21T00:11:27Z")

</div>

> [@thommierother](#):
>
> `mail content/webhook notific`

"This warning in Gitea 1.26 is usually due to the new, stricter Host header validation. Even if your proxy config hasn’t changed, 1.26 is more sensitive to the `X-Forwarded-Proto` and `Host` headers not matching the `ROOT_URL` in your `app.ini`.
