Questions tagged [varnish]

Varnish is a high-performance reverse proxy and load-balancer package for Linux/Unix systems.

Filter by
Sorted by
Tagged with
10 votes
7 answers
9k views

Varnish -> Nginx -> Apache a good idea?

I'm thinking about the architecture for a new Webserver. Would having Varnish as a cache in front of Nginx as a reverse-proxy and serving static files in front of apache for all heavy lifting be a ...
Zoran Zaric's user avatar
3 votes
2 answers
3k views

Varnish does not start properly (crashes after startup) with no error messages

I am running Varnish (2.0.4 from the Ubuntu unstable apt repository, though I have also used the standard repository) in a test environment (Virtual Machines) on Ubuntu 9.10, soon to be 10.04. When ...
Matthew Savage's user avatar
2 votes
1 answer
1k views

varnish: Alter response body

I need to rewrite the response received by the backend in varnish. The C-function is ready, embedded in the configuration file, and passes tests run on response headers. But I need to access the body ...
soulmerge's user avatar
  • 161
1 vote
1 answer
574 views

Varnish send while cache

I wanted the varnish download the file to the cache while sends to client. From what I am seeing, it first download and then send the file, and that with very large files, is slow. (sorry for english,...
osmano807's user avatar
1 vote
1 answer
257 views

Need Varnish configuration advice

I need some advice here for default.vcl. Here's the rules: Only cache pages with urls that contains '/c/', the rest will pass Set the cache expiry to 3 hours Only cache and serve from cache if cookie ...
Patrick's user avatar
  • 455
1 vote
3 answers
3k views

varnish demon error: libvarnish.so.1 not found

In order to try out varnish for an upcoming project I installed it on an ubuntu server using this tutorial: http://varnish-cache.org/wiki/InstallationOnUbuntuDapper The build process worked without ...
BMBM's user avatar
  • 481
3 votes
3 answers
2k views

How do you cache web pages with a personalized header using caching reverse proxy such as Squid, Varnish, or Nginx

Pretty much every page of my website is dynamically generated. However they don't change that frequently (kinda similar to a forum page). So I'd like to cache them using a caching reverse proxy such ...
Continuation's user avatar
  • 3,130
8 votes
3 answers
25k views

Use Varnish Cache only on-disk

The situation is: I' m building a PHP application and need http caching. Varnish is great and lots of people tell me that Varnish stores the cached data in RAM. I want it to cache on hard disk. Is ...
user avatar
0 votes
1 answer
420 views

how can i cahe one more web site on same backend server (web server) with varnish?

i have one web server which is IIS that is back on varnish. there are more web sites on ISS. there are all web sites header's on IIS and all web sites publish from port 80. can i cache all web site by ...
Kerberos's user avatar
  • 123
2 votes
2 answers
562 views

can i cache two diffrent web sites on varnish cache server?

i have two web web sites and i want to cache them with varnish. could i cache them on same varnish with using same port? for example; www.domain1.com:80, www.domain2.com:80
Kerberos's user avatar
  • 123
2 votes
1 answer
8k views

Varnish VCL Reload Fails After Adding Second Backend

I have been running Varnish on my production server successfully for several weeks now. Now I'm trying to configure Varnish to use a second backend for certain requests. My original working VCL (/...
Andy's user avatar
  • 23
5 votes
2 answers
7k views

WebDav rename fails on an Apache mod_dav install behind NginX

I'm trying to solve a problem with renaming files over WebDav. Our stack consists of a single machine, serving content through Nginx, Varnish and Apache. When you try to rename a file, the operation ...
heymatthew's user avatar
2 votes
3 answers
3k views

How much RAM required by Varnish?

I'm using Apache for serving static files. Apache2 require too much RAM. I want to reduce the RAM usage. I don't have experience with Varnish. It's said to be faster. I don't know how Varnish works. ...
user avatar
4 votes
3 answers
9k views

Ignoring GET parameters in Varnish VCL

Okay: I've got a site set up which has some APIs we expose to developers, which are in the format /api/item.xml?type_ids=34,35,37&region_ids=1000002,1000003&key=SOMERANDOMALPHANUM In this ...
JamesHarrison's user avatar
4 votes
2 answers
3k views

How to setup Nginx with Varnish

I'd like to see how to configure Nginx and Varnish. I'm running several PHP sites and Rack-Sinatra sites as virtual hosts across two IP's. I'd like to prevent Nginx from having to serve static files,...
arbales's user avatar
  • 527
11 votes
5 answers
23k views

Does Varnish require much RAM?

Other than virtual memory, How about RAM usage for Varnish? Is it much RAM needed?
user avatar
6 votes
4 answers
11k views

How do I get varnish to return in the http response header from which backend it took the response?

I have three servers in the backend, with a round robin director. I would like varnish to write a X-Server-By header with the name or ip of the server from which the response was fetched, how can ...
user avatar
1 vote
3 answers
3k views

Getting live traffic/visitor analytics when using a reverse proxy

I'm in process of implementing Varnish as a reverse proxy for a Ruby on Rails app and I'm using Google Analytics (JS/client side script to record visitor data) but it's several hours delayed so its ...
user29608's user avatar
5 votes
5 answers
6k views

Nginx, Varnish, ESI - Will that work?

I've serveral backends (one is nginx+passenger) to combine via ESI. Since I don't want to go without gzip/deflate and SSL varnish can't do the job out of the box. So I thought about the following ...
Roland's user avatar
  • 369
7 votes
6 answers
15k views

How many reverse proxies (nginx, haproxy) is too many?

I'm setting up a HA (high availability) cluster using nginx, haproxy & apache. I've been reading great things about nginx and haproxy. People tend to choose one or the other but I like both. ...
user avatar
13 votes
4 answers
8k views

Nginx Varnish Nginx Django?

I have a django app and I want to to setup Varnish on a server in front of it. In another serverfault thread somebody suggested putting Nginx in front of Varnish. Should I put Nginx in front of ...
Enrico's user avatar
  • 491
2 votes
3 answers
1k views

Put caching web server in vmware?

We are having to make a design choice in our web environment. At this moment we are stuck at a discussion if we CAN put the varnish caching server into the vmware environment or on dedicated hardware. ...
hoberion's user avatar
  • 231
2 votes
1 answer
3k views

Nginx running behind Varnish and x-forwarded-for, how do I fool nginx?

I have a setup where I'm looking at running nginx behind a varnish cache. I currently use apache instead of varnish and use x-forwarded-for to have apache tricked into thinking the remoteip is the ...
user avatar
2 votes
6 answers
2k views

Fail-over caching reverse proxy

Is there a way to configure varnish or any other caching reverse proxy, to serve pages from its cache when the back-end fails? At the moment, if the back-end goes down a 503 Service Unavailable error ...
sybreon's user avatar
  • 7,425
1 vote
1 answer
501 views

Serving http content files locally instead of off external servers

When building our web pages from different content sources, it may be necessary to get some images from external servers (e.g. when incorporating a rss feed), which may not be as fast or as well ...
Alex Lehmann's user avatar
0 votes
3 answers
3k views

Setting up monit to work with Varnish and nginx

I have a problem with monit where occasionally Varnish will crash and refuse to start. So Varnish is dead and my webserver is inaccessible. Here's the message from the monit log: info : 'varnish' ...
Lin's user avatar
  • 2,939
21 votes
3 answers
31k views

How to check if chosen Varnish cache size is ideal?

I've configured my Varnish cache to use a cache size of 512 MB, using: varnishd ... -s file,/var/cache/varnish.cache,512M Questions: How do I monitor if 512 MB is too small, too big or okay? How do ...
knorv's user avatar
  • 1,819
7 votes
3 answers
13k views

Configuring Varnish to rewrite Expires/Cache-Control headers for client-side caching

How do I configure Varnish so that all responses to requests matching say "*.css" gets cached in the client's browser for 30 days? What I'm trying to achieve is making Varnish set the correct "...
knorv's user avatar
  • 1,819
1 vote
4 answers
615 views

Cheap scaling techniques using open-source software

What are your favourite techniques to improve scalability of highly websites? I have compiled the following list for techniques I've used using open-source tools: 1.) Caching full-page reverse-proxy ...
12 votes
6 answers
38k views

Simple way of restarting crashed processes?

I need to monitor several processes running on my webserver. For some reason, varnish currently crashes once every day or two. I'm using monit to supposedly restart varnish automatically, but it doesn'...
Lin's user avatar
  • 2,939
5 votes
2 answers
9k views

Need HAproxy + Varnish + nginx setup suggestions

Currently, I have two load balancers running HAProxy, which forward requests to backends, each of which run Varnish cache in front of nginx. I thought this would distribute most the bandwidth across ...
Lin's user avatar
  • 2,939
5 votes
2 answers
10k views

Varnish configuration to only cache for non-logged in users

I have a Ruby on Rails application fronted by varnish+nginx. As most of the sites content is static unless you are a logged in user, I want to cache the site heavily with varnish when a user is logged ...
davidsmalley's user avatar
1 vote
2 answers
6k views

How does Varnish cache handle different domains?

I just started reading about Varnish and am considering using it as a frontend to my webservers. I have multiple domains on my webserver that fetch the same content when the same query strings are ...
Lin's user avatar
  • 2,939
4 votes
7 answers
5k views

Scaling large file downloads?

We currently deliver large (1GB+) files via a single Apache server, but our Apache server is extremely disk-IO-bound and we need to scale. My first idea was to simply duplicate this Apache server, ...
user avatar
2 votes
2 answers
2k views

Gzip vs. Reverse Proxy Cache

I have a mostly static site running on Ruby on Rails that is using the Varnish reverse proxy cache to save on hits to the Rails backend. The problem is that a user can login to the site and when they ...
davidsmalley's user avatar
1 vote
2 answers
2k views

Easiest way to evaluate Varnish using virtualized linux guest on Windows XP host?

I have seen a lot of interesting references to Varnish and would like to play with it. However, I run Windows XP and don't have an extra machine available to run linux, nor do I have much linux skill....
Kevin Hakanson's user avatar
152 votes
13 answers
184k views

How to set up Nginx as a caching reverse proxy?

I heard recently that Nginx has added caching to its reverse proxy feature. I looked around but couldn't find much info about it. I want to set up Nginx as a caching reverse proxy in front of Apache/...
Continuation's user avatar
  • 3,130
3 votes
3 answers
5k views

Logging behind a reverse proxy?

I am currently running Varnish as a reverse proxy in front of our development website, testing before deployment into production. One of the things I've had to come to grips with is logging: in a ...
Annika Backstrom's user avatar
13 votes
2 answers
5k views

Varnish versus other reverse proxies

I'm working with an organisation that has deployed Varnish as a caching reverse proxy for all of their web traffic. Their traffic make up is a lot of customer-generated dynamic websites, with the ...
womble's user avatar
  • 97k
6 votes
3 answers
4k views

Tools for introspecting Varnish

Has anyone developed, or does anyone know of, any third-party tools (or non-obvious uses of the stock tools) to help a poor systems administrator determine what's going on with requests that are ...
womble's user avatar
  • 97k

1
15 16 17 18
19