Varnish with multiple hosts/subdomains
Posted
by
jerhinesmith
on Server Fault
See other posts from Server Fault
or by jerhinesmith
Published on 2010-12-30T16:52:21Z
Indexed on
2010/12/30
16:55 UTC
Read the original article
Hit count: 180
I'm new to Varnish, and I'm hoping it already does this "out of the box", but I'd like to clarify before I consider using it in production:
Here's my setup:
- I have multiple sites running off of the same machine that vary by subdomain (i.e. user1.example.com, user2.example.com, etc.)
- Each "site" has a profile picture that has the same name (i.e. user1.example.com/profile.png, user2.example.com/profile.png)
Will Varnish recognize these as separate resources and cache them accordingly? Or will I need to change something in the VCL to tell it include the full host url when looking up cache hits?
© Server Fault or respective owner