Gitea: IIS Redirect Loop Gravatar

Created on 27 Aug 2020  路  2Comments  路  Source: go-gitea/gitea

  • Gitea version (or commit ref): 1.12.3
  • Git version: 2.28.0.windows.1
  • Operating system: Microsoft Windows Server 2012 R2 Standard
  • Database (use [x]):

    • [ ] PostgreSQL

    • [x] MySQL

    • [ ] MSSQL

    • [ ] SQLite

  • Can you reproduce the bug at https://try.gitea.io:

    • [ ] Yes (provide example URL)

    • [ ] No

    • [x] Not relevant

  • Log gist:

Description

Profile avatars from gravatar are in a redirect loop.
I am using IIS Reverse Proxy with an outbound rule that rewrites to a host name.
instead of going to https://secure.gravatar.com/avatar/XXXXXXXXXXX...X?d=identicon
the redirect is to http://hostname/XXXXXXXXXXX...X?d=identicon and ends up in a loop.
The error does not exits while accessing the Gitea from localhost.
The IIS rewrite and config is from #10748
...

Screenshots

kinquestion

Most helpful comment

Try this
UNCHECK 'Reverse rewrite host in response headers'
in Application Request Routing>Server Proxy Settings

All 2 comments

Try this
UNCHECK 'Reverse rewrite host in response headers'
in Application Request Routing>Server Proxy Settings

It worked! Thanks for the help!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jorise7 picture jorise7  路  3Comments

lunny picture lunny  路  3Comments

thehowl picture thehowl  路  3Comments

tuxfanou picture tuxfanou  路  3Comments

lunny picture lunny  路  3Comments