Apache Reverse Proxy Not Handling All Requests Properly
Added by Kyle Gustafson about 9 years ago
Hello,
I am running redmine 3.1 behind an apache reverse proxy running on the same host. Almost all the functionality on the site works fine, except for trying to upload file attachments through the apache reverse proxy. For example, I encounter this on the Documents page of a project. Through the apache reverse proxy from another computer when I try to upload a file, it does not show the description field and does not upload when I click Add. This works fine if I run it from the localhost going directly to redmine(not through the apache reverse proxy). Here are the proxy settings I have currently:
ProxyRequests Off <-- this is an important security setting ProxyPass /redmine/ http://server.domain.com:3001/ ProxyHTMLURLMap http://server.domain.com:3001/ /redmine <Location /redmine/> ProxyPassReverse / ProxyHTMLEnable On ProxyHTMLURLMap / /redmine/ RequestHeader unset Accept-Encoding </Location>
I have also attached screenshots of what the page loads through apache and what it loads directly through redmine. Also, the files will not upload properly through Apache. Do I need to add additional ProxyPass and/or ProxyPassReverse settings as well that point to more specific URLs? Has anyone else encountered this problem when using an Apache reverse proxy?
Thanks!
apache_document_upload.png (14.9 KB) apache_document_upload.png | Document Upload Through Apache | ||
redmine_direct_document_upload.png (14 KB) redmine_direct_document_upload.png | Document Upload Directly through Redmine |