Unable to log in using reverse proxy

Hello,

I use duplicati on a headless vps. so no tray icon for me. i got the webservice password changed via the --webservice-password option.

i’m using it behind an apache reverse proxy but it doesn’t seem to want to allow the connection.

after doing some investgation it seems that chome and firefox block the setting of the refresh cookie because the domain attribute was incorrect for the current url.
image

Try setting this on apache:

ProxyPreserveHost On

You may also have to set some additional Host header forwarding configs like RequestHeader set X-Forwarded-For and X-Forwarded-Proto but it will take some experimenting. I hope this points you towards the right direction.

thanks, that seem to have fixed it. i needed to update the apache conf to allow websockets as well. code for that below in case anyone else needs it.

ProxyPreserveHost On

RewriteEngine on
RewriteCond %{HTTP:Upgrade} websocket [NC]
RewriteCond %{HTTP:Connection} upgrade [NC]
RewriteRule ^/?(.*) "ws://example.com:9080/$1" [P,L]
1 Like