Avatar of tikejhya
Flag for United Kingdom of Great Britain and Northern Ireland asked on

varnish configuration

I am willing to use varnish as caching and my goal is to put varnish on the top and point DNS to varnish and if it has cached images and js or static pages so it should not even reach webboxes but serve from varnish box itself and other URLs should be served from web boxes.

How would we set up to say pick blah.js or other images to be served from varnish and rest go to main web server's (x2) which is loadbalanced.

And how does generally varnish routes traffic to webservers?

Some kind of explanation and snippet would be great.

Apache Web Server

Avatar of undefined
Last Comment

8/22/2022 - Mon

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question

thank you for your answer but may i know what does varnish do with ssl queries.

for example.

http://www.ashishnepal.com works fine
how does varnish treat https:// i know it says no to ssl but how is that treated?

Varnish dosen't handle SSL, so you'll need a separate SSL terminatior sitting on port 443, in front of the port 80 varnish instance.

Yep noticed that could u share something on malloc as I have 8gb of men and 8gb of swap
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes