Radicale icon indicating copy to clipboard operation
Radicale copied to clipboard

Appache proxy server return 502 error

Open PowaBanga opened this issue 1 year ago • 3 comments

Hi everybody, I am on archlinux, and i am trying do do a proxy reverse to my radicale server.

so, i have this httpd config :

<VirtualHost *:80>      
    ServerName  radicale.domain.com
    Redirect / https://radicale.domain.com/
</VirtualHost>
     
<VirtualHost *:443>
    ServerName radicale.domain.com
    SSLEngine On
    SSLCertificateFile /etc/httpd/conf/server.crt
    SSLCertificateKeyFile /etc/httpd/conf/server.key
    SSLProxyEngine On
    ProxyPreserveHost On                                                                                              
    ProxyPass / http://192.168.0.10:5232/ retry=0
    ProxyPassReverse / http://192.168.0.10:5232/
    RewriteEngine On
    RewriteRule ^/radicale$ /radicale/ [R,L]
     
    RequestHeader    set X-Script-Name /radciale
    ErrorLog /var/log/httpd/radicale.domain.com.error.log
    CustomLog /var/log/httpd/radicale.domain.com.access.log combined
</VirtualHost>

But the server return a 502 error in my client. There is probably that i misunderstood with requestHeader, but i really do not understand what is it exactly... Does anybody can help me ?

PowaBanga avatar Jun 21 '23 23:06 PowaBanga

have you investigated all logs (Apache, Radicale) and tried without RequestHeader config?

pbiering avatar Jun 23 '23 04:06 pbiering

also check for listen daemon and SElinux settings, can be that Apache is by default blocked to connect further on.

pbiering avatar Jun 23 '23 04:06 pbiering

RequestHeader set X-Script-Name /radciale

s/radciale/radicale

rockstorm101 avatar Sep 08 '23 09:09 rockstorm101