So I'm trying to set up a reverse proxy to make radarr and other services available remotely.
So when I go to mydomain.com I get my website and when I go to radarr.mydomain.com I should get the radarr interface but instead, I get this:
502 Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request
Reason: Error reading from remote server
I run httpd 2.4.37-39 on CentOS 8 and everything is updated.
Here are the logs from the requests.log file :
[Fri Aug 27 10:46:18.470061 2021] [proxy_http:error] [pid 10351:tid 140348953143040] (103)Software caused connection abort: [client 178.192.157.22:51840] AH01102: error reading status line from remote server 192.168.1.113:7878
[Fri Aug 27 10:46:18.470128 2021] [proxy:error] [pid 10351:tid 140348953143040] [client 178.192.157.22:51840] AH00898: Error reading from remote server returned by /
[Fri Aug 27 10:46:23.894582 2021] [proxy_http:error] [pid 10006:tid 140348995106560] (103)Software caused connection abort: [client 178.192.157.22:1032] AH01102: error reading status line from remote server 192.168.1.113:7878
[Fri Aug 27 10:46:23.894739 2021] [proxy:error] [pid 10006:tid 140348995106560] [client 178.192.157.22:1032] AH00898: Error reading from remote server returned by /
[Fri Aug 27 10:46:24.526018 2021] [proxy_http:error] [pid 10006:tid 140348986713856] (103)Software caused connection abort: [client 178.192.157.22:1032] AH01102: error reading status line from remote server 192.168.1.113:7878, referer: https://radarr.mydomain.com/
[Fri Aug 27 10:46:24.532347 2021] [proxy_http:error] [pid 10003:tid 140348751816448] (103)Software caused connection abort: [client 178.192.157.22:1033] AH01102: error reading status line from remote server 192.168.1.113:7878, referer: https://radarr.mydomain.com/
[Fri Aug 27 10:46:24.532489 2021] [proxy:error] [pid 10003:tid 140348751816448 [client 178.192.157.22:1033] AH00898: Error reading from remote server returned by /favicon.ico, referer: https://radarr.mydomain.com/
This is my apache config file:
<VirtualHost *:80>
ServerName radarr.mydomain.com
ErrorLog /var/www/radarr.mydomain.com/log/error.log
CustomLog /var/www/radarr.mydomain.com/log/requests.log combined
RewriteEngine On
SSLProxyEngine On
SSLProxyCheckPeerCN Off
SSLProxyCheckPeerName Off
SSLProxyVerify none
RewriteCond %{SERVER_NAME} =radarr.mydomain.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
DocumentRoot /var/www/radarr.mydomain.com/html
ProxyPass / http://192.168.1.113:7878/
ProxyPassReverse / http://192.168.1.113:7878/
ProxyPreserveHost On
ProxyBadHeader Ignore
</VirtualHost>
I found some people getting this to work but with Nginx and since everything else is hosted on apache I don't want to change everything again.
Does someone have an idea on how to solve this problem ?
Thanks in advance!
ps: Sorry for my English