Avatar of tikejhya
tikejhyaFlag 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.

Regards.
Apache Web Server

Avatar of undefined
Last Comment
tikejhya
ASKER CERTIFIED SOLUTION
Avatar of arober11
arober11
Flag of United Kingdom of Great Britain and Northern Ireland image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of tikejhya
tikejhya
Flag of United Kingdom of Great Britain and Northern Ireland image

ASKER

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?
Avatar of arober11
arober11
Flag of United Kingdom of Great Britain and Northern Ireland image

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.
Avatar of tikejhya
tikejhya
Flag of United Kingdom of Great Britain and Northern Ireland image

ASKER

Yep noticed that could u share something on malloc as I have 8gb of men and 8gb of swap
Apache Web Server
Apache Web Server

The Apache HTTP Server is a secure, efficient and extensible server that provides HTTP services in sync with the current HTTP standards. Typically Apache is run on a Unix-like operating system, but it is available for a wide variety of operating systems, including Linux, Novell NetWare, Mac OS-X and Windows. Released under the Apache License, Apache is open-source software.

21K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo