-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't use Apache HTTPd as a reverse proxy - missing content-type header #17310
Comments
Just tried, it returns a 302 I am not sure whether it is necessary to set content-type for a 302 response. I will check later and please advise. |
That's odd; I'm still seeing a 200 response:
|
Do not use I think the behavior is correct(at least,not wrong). If you feel something is wrong, please help to explain why it's wrong and what problem it causes.
|
OK. I have a server. It runs Ubuntu 20.04 with Apache httpd. It serves various content, a few CGIs, and reverse proxy to openvpn, radicale, and a personal node.js application. I tried adding gitea. The configuration is done in
What I find it the HTML returned is not adjusted, for example:
When I run with a browser, I get a 404 when trying to fetch |
You should use Do not use ProxyPassReverse. If you see it, then the document should be updated. |
Got it working, sorry for using the issue tracker for a support request. Thanks! |
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:
P.S. I believe that the instructions are missing a
ProxyHtmlEnable on
.Screenshots
No response
The text was updated successfully, but these errors were encountered: