Issue when creating/deleting files using https with HAproxy


Im having trouble setting up my nextcloud server with haproxy in front of it.

When I access my website directly, I have 0 issues.

BUT, when I try to access it with haproxy (with the haproxy IP) I cannot create or delelete files and the page is reloading constantly…

I cant find any informations on my logs files so I dunno what to do…

I think the problem is with the session or with cookies but Im not sure…

My infrastructure:

My haproxy configuration:

Both my virtualhosts look like this :

Thanks for any help and have a great weekend :slight_smile: