This is absolutely insane.
Some please give me a config that caches responses from an nginx server in memory for 30 seconds.
nginx is serving static content (like 1kb html pages) and i need haproxy to sit in front of it and cache.
I have tried every single tutorial, and it’s insanely hard to find any guidance anywhere about anything even remotely advanced with haproxy.
I cannot get it to work unless i modify my browser headers, and I’m at a breaking point.
I have been at it for 5 hours and I haven’t gotten anywhere.
It cannot be this difficult.
My code is exactly what the one example that haproxy gives. I have tweaked it in every way possible.
I am using haproxy 2.8 on rhel9
Do i set headers with nginx? I DO NOT care if the browser caches. I need haproxy to serve the content from its memory rather than asking nginx for the common resources.
1 post - 1 participant