5👍
As far as I know, HAProxy doesn’t do caching. For that you want something like Squid.
As far as treating /static/ seperately, you can set up your HAProxy config to redirect any URLs matching a pattern to another backend cluster:
frontend my_website *:80
mode http
acl static url_beg /static/
use_backend my_static_proxy if static
default_backend my_django_server
👤dan
3👍
You might want to try varnish instead of squid. It’s much more flexible and has a much newer design, you should read
http://www.varnish-cache.org/trac/wiki/ArchitectNotes
- [Django]-Makemigrations error : django.db.utils.OperationalError: no such table
- [Django]-Parsing dates with django utils parse_date
- [Django]-Internet Explorer does not talk with django dev server
Source:stackexchange.com