Skip to content

IIS Reverse Proxy Settings: Pull Requests require additional Parameter #16245

@nexero

Description

@nexero
  • Gitea version (or commit ref): 1.14.3 built with GNU Make 4.1, go1.16.5 : bindata, sqlite, sqlite_unlock_notify
  • Git version: 2.32.0
  • Operating system:
    • Microsoft Windows Server 2019 \w IIS reverse proxy configuration
    • pre-built .exe
    • Windows Service
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MariaDB
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

When trying to setup Gitea on a Windows Server 2019 with IIS using the reverse proxy configuration example from the official documentation, pull requests won't work at all. Server is returning 400.

This is due to some weird IIS specifics, they don't allow to use some special characters in the URL by default.

Fix

Adding this to the config fixes the pull requests:

<system.web>
    <httpRuntime requestPathInvalidCharacters="" />
</system.web>

I'll create a pull request for this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions