I have been using Seafile with haproxy for a long time now. I have now updated HAProxy and the reqirep option is no longer supported. I have tried to update the configuration for HAProxy accordingly. Unfortunately without success - neither uploading nor downloading files works.
haproxy.conf backend configuration of older haproxy version - this works:
backend seafile-be
reqirep ^([^\ :]*)\ /seafhttp(.*) \1\ \2
timeout server 43200s
option tcp-check
server seafile1 seafile.domain.local:8082 check port 8082
haproxy.conf backend configuration of current haproxy version - uploads and downloads fail:
backend seafile-be
http-request replace-uri ^([^\ :]*)\ /seafhttp(.*) \1\ \2
timeout server 43200s
option tcp-check
server seafile1 seafile.domain.local:8082 check port 8082
Sample log entry from seahub-django-requests.log file after download fails:
2023-11-10 13:54:52,138 [WARNING] django.request:170 get_response Not Found: /seafhttp/files/dfe84f8b-f9fb-4cb8-a5d6-86d00d89bf0c/CddeqS227284.pdf
What is wrong with my “http-request replace-uri” directive in the backend configuration of my new HAProxy? I hope someone can help me.
Thank you.