Skip to content

Can't use Apache HTTPd as a reverse proxy - missing content-type header #17310

Closed
@rubys

Description

@rubys

Gitea Version

Gitea version 1.15.4 built with GNU Make 4.1, go1.16.9 : bindata, sqlite, sqlite_unlock_notify

Git Version

git version 2.25.1

Operating System

Ubuntu 20.04

How are you running Gitea?

Downloaded from https://dl.gitea.io/gitea/1.15.4/gitea-1.15.4-linux-amd64

Database

MySQL

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Description

I'm trying to use Apache HTTPd as a reverse proxy, per https://docs.gitea.io/en-us/reverse-proxies/#apache-httpd-with-a-sub-path

Unfortunately, mod proxy html requires a valid content type header, per https://httpd.apache.org/docs/2.4/mod/mod_proxy_html.html#proxyhtmlenable

No such header is provided by gitea's main page:

$ curl --head https://try.gitea.io/
HTTP/2 200 
date: Thu, 14 Oct 2021 20:25:39 GMT
set-cookie: i_like_gitea=526e7410161b0b16; Path=/; HttpOnly; SameSite=Lax

P.S. I believe that the instructions are missing a ProxyHtmlEnable on.

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/needs-feedbackFor bugs, we need more details. For features, the feature must be described in more detailissue/not-a-bugThe reported issue is the intended behavior or the problem is not inside Gitea

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions