Nextcloud passwords through pound reverse proxy - 500 - internal server error

Hi all,

I’m using pound for accessing to nextcloud and its apps. I obtained a certificat with certbot for https binding. I’m able to open passwords app without its https warning screen but i get a 500 - internal server error. Nextcloud client runs and synchronizes files but it looses connection rights at each new starting of my computer. I’m sure it’s coming from pound’s or nextcloud config because i’m not an expert.

Could somebody help me ? Thanks a lot in advance

Firts of all here is the interesting part of my log (sorry for the little snapshot, the original log file is very long…):

What’s i added in the nextcloud config.php :
‘trusted_proxies’ => [‘192.168.1.64’],
‘overwritehost’ => ‘mywebsite.dynamic-dns.net’,
‘overwriteprotocol’ => ‘https’,
‘overwritecondaddr’ => ‘^192.168.1.64$’,

And finally my reverse proxy config file pound.cfg :


Port(s) listening

ListenHTTPS
Address 192.168.1.64
Port 443
AddHeader “X-Forwarded-Proto: https”
HeadRemove “X-Forwarded-Proto”
HeadRemove “X-Forwarded-For”
xHTTP 3
Cert “/usr/local/etc/letsencrypt/live/mywebsite.dynamic-dns.net/total.pem”
End

Server(s)

Service
BackEnd
Address 192.168.1.28
Port 80
End
Session
Type IP
TTL 900
End
End


Since PHP_AUTH_USER and PHP_AUTH_PW are missing, I think the Authorization header is not forwarded.

Thanks for your response mdw but concretely what do i have to do ? Changing something in the reverse proxy or in the nextcloud config ? Sorry for my basic level question :wink:

Usually this is an issue with the proxy. But since i don’t know pound, i can’t tell you what you have to change there.

ah ok thanks mdw, so thanks again for your clue. So i’m waiting for other advices in this forum. BR