Skip to content

wrong url for submodule when using reverse proxy in 1.11 and newer #12345

Closed
@shenlijun

Description

@shenlijun
  • Gitea version (or commit ref): 1.11 and newer
  • Git version: 2.18.4
  • Operating system: CentOS 8
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

I have a gitea with base URL https://xxxx.yyy/git, using Nginx as a reverse proxy

same repository, when using 1.11 and newer, the submodule URL will be https://xxxx.yyy/git/git/zzz, click it just give me 404 because duplicated “git”

but 1.10 works fine, just https://xxxx.yyy/git/zzz
...

Screenshots

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/needs-feedbackFor bugs, we need more details. For features, the feature must be described in more detail

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions