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

learn more… | top users | synonyms

0
votes
1answer
168 views

Varnish stops listening on port 80 after few hours

I have configured varnish to listen on port 80 and nginx to listen on 8080. After around 24 hours of uptime, my site has been down for 22 hours. I checked in and found varnish isn't listening on port ...
0
votes
2answers
90 views

Understanding Varnish: Can it cache 10,000 static pages on a site?

First off, I use: APC, W3TC, PHP5, Wordpress 3.8, Apache 2.2 and am getting a lot of "Cache Misses" Still don't really understand Varnish that well. Here are some stats I got from the Unixy backend ...
0
votes
2answers
71 views

Wordpress (using varnish + apc + w3tc): Do the statistics get updated when the data is being retrieved from the cache?

If the data is served to the client from the varnish cache, does it still get registered as a hit in the statistics (could be derived from nginx logs or might be google analytics)? I believe if the ...
2
votes
1answer
201 views

AWS WebServer architecture (ELB + iptables)

I'm currently working on the architecture of high-traffic high-availability website. We are using AWS. Currently, we have: Route 53 -> ELB -> Multiple EC2 instances -> RDS Multi AZ. Each EC2 ...
0
votes
1answer
277 views

Varnish 503 error after exactly 60 seconds… how to change this timeout value?

I'm running Varnish over Apache on a Drupal site. I have a PHP script that executes on a certain path of my site, and takes a really long time... like 60 - 120 seconds. When trying to access that ...
0
votes
1answer
104 views

Redirection in varnish based on cookie value

We have varnish sitting in front of our site and it is imperative that we cache as much as possible. Recently we decided to ditch GeoIP redirection for interstate content for a more traditional ...
2
votes
0answers
99 views

Varnish as Reverse Proxy Server for Rubygems

I want to setup a cache server for Rubygems, as I'm currently based in Vietnam and the international internet connections are pretty slow. I have been trying to get this done via Varnish, but after ...
0
votes
0answers
44 views

bogus_host_without_reverse_dns from server's own IP

I see a lot of bogus_host_without_reverse_dns originating from server's own IP in Apache status. 405-0 28180 0/20/542 _ 0.07 33 147 0.0 0.00 0.42 127.127.127.127 ...
0
votes
0answers
250 views

varnish random and sporadic 503 error

EDIT1 : I tried the setting suggested on my preprod environment without success. Since I can reproduce the issue on another environment I tried to look for similarities. I disabled logrotate for ...
0
votes
0answers
14 views

Varnish ESI: fetch once, replace many?

The documentation is a little sparse about implementation details of ESI. Specifically, I'd like to know if an ESI block is fetched each time it's encountered or if the URI's of several ESI include ...
0
votes
1answer
77 views

Varnish Won't Start - “invalid number Cache”

I wondered if anybody knew what would be causing Varnish to not start? The command and output is printed below. All I've done is download the latest version, set it up using yum, then edit a port ...
0
votes
1answer
145 views

Apache / Nginx / Varnish - GZIP does not work on css, js

My current setup is as following: Apache -> Nginx -> Varnish running on Ubuntu apache2.conf: h**p://pastebin.com/A3wehAbe .htaccess: h**p://pastebin.com/Yre4hdSy (edited to allow deflate) ...
0
votes
0answers
313 views

Varnish redirect loop

I've tried with a lot of varnish configurations and always experience the same redirect loop, after varnish is running for a couple of hours some pages are displaying the message: The page isn't ...
1
vote
1answer
183 views

varnish file download fail from user session

I have 2 varnish 3.0.4 servers on edge of an Apache cluster (fallback director). On one of my sites, users log in to download static content such as pdf, images (jpg,jpeg,png, gif), xls/xlsx etc. All ...
1
vote
1answer
148 views

How to disable Varnish

I have installed Varnish in my WordPress Ubuntu EC2 instance as described in this guide: http://jeffreifman.com/detailed-wordpress-guide-for-aws/install-varnish/ I do have many issues with Varnish ...
0
votes
0answers
329 views

Varnish, Nginx & SSL

I've added SPDY to my server last week which is running Varnish for cashing and Nginx as webserver. Varnish was listening at port 80 and Nginx at 8080 and 443. Traffic at 8080 is redirected using ...
0
votes
1answer
25 views

Varnish transforming POST to GET

All the POST requests coming to Varnish are sent to the backend as GET. As a consequence I'm receiving 503 Bad gateway on all POST requests. GET requests are working just fine.
-1
votes
1answer
344 views

How to configure squid to act as a virtual host for docker images

I have a server which is running a bunch of docker images (which basically just host a bunch of websites) they all have different domain names all pointing to the server's IP (lets say the server IP ...
0
votes
0answers
115 views

Varnish Cache/Proxy for Multiple Sources

We're using Varnish 3.0.3. The web site serves images from two domains. Images that have the same URL as the site's domain are cached successfully and are served via Varnish. Images coming from a ...
0
votes
0answers
70 views

nginx — > varnish — > apache2 very slow?

This is my current setup Nginx and Varnish on one server---> Apache2 second server Entry Point ---> NGINX ( Port 80 rewrites to 443 ) 443 terminate and reroute to port 6081 on localhost as http ...
1
vote
0answers
52 views

Varnish & iFrames - Each iFrame counts as a hit = poor performance?

I have a large Wordpress site (600-900 consistent users at all times) and about 6 months ago we setup Varnish. Our config uses 5GB cache and is stored in memory. When the site hits around 1500-2000 ...
0
votes
1answer
210 views

Varnish: vcl_error redirection

I have a few question about Varnish configuration. I've got this simple config file: backend default { .host = "127.0.0.1"; .port = "80"; } sub vcl_recv { if (req.http.Host == "192.168.1.100") ...
2
votes
1answer
50 views

Automatic reverse/caching proxy configuration update?

I've never done something so ambitious before so please let me know if this is simply a bad idea, and alternate solutions I should consider. So I have three servers (and more later), all hosting ...
0
votes
1answer
206 views

varnish backend conn. failure

using: varnish-3.0.4 can anyone suggest potential cause of backend connection failure, this normally happens when N-Worker_thread goes anything above default of 100 worker_thread(not necessarily all ...
1
vote
1answer
110 views

Specifying varnish's default virtual-host

I'm using Varnish-3.0.5 on Scientific Linux 6.4 (64bit): $ rpm -q varnish varnish-3.0.5-1.el5.centos.x86_64 $ cat /etc/redhat-release Scientific Linux release 6.4 (Carbon) $ uname -a Linux ...
1
vote
1answer
100 views

Buffered nginx/varnish access logging to remote server

I need a way to measure how many times different files have been accessed and when. My setup consists of several low capacity servers spread out over the world running Varnish behind Nginx (for SSL ...
1
vote
1answer
411 views

nginx varnish nginx php-fpm: real ip for php's _SERVER['REMOTE_ADDR']

This is specific question. A Nginx server (call it N1) listens on :80 and forwards to varnish with proxy_pass Varnish listens on 127.0.0.1:6081 and forwards to Nginx (N2) on 8080. N2 talks to the ...
0
votes
3answers
94 views

Varnish caching wordpress site per user or UA (i am not sure). I want the caching to be universal

I have recently switched a website from generic PHP to wordpress driven. The varnish front-end is the same except for rules to accommodate wp-admin. I find the cache-hit is unique to my connection ...
1
vote
1answer
156 views

Varnish 3.0 Guru Meditation with FetchError TestGunzip error at the very end

I'm getting intermittent guru meditations in varnish (as in I fire 50 requests off and 3 come back bad). In varnishlog it says 15 VCL_return c hash 15 HitPass c 1394372109 15 ...
1
vote
1answer
43 views

Unable to compile Varnish 2.1 under SUSE 10.3

I just cloned the latest varnish 2.1 from git-repository. All the dependencies listed on the website have been installed. I run the following commands: ./autogen.sh -> works fine ./configure -> ...
0
votes
1answer
29 views

how to exclude varnish cache for some pages by header?

I'm using varnish caching and now i want to exclude all the pages that have "MT=1" in header how to exclude from varnish cache ? i think it would be at /etc/varnish/default.vcl under sub vcl_recv ...
1
vote
0answers
148 views

Varnish server in front of nginx server with multiple virtualhosts

I have tried to search for a solution for this, but can't find any documentation/tips on my specific setup. My setup: Backendserver: ngnix: 2 different websites (2 top domains) in virtualenv, ...
0
votes
2answers
229 views

varnish 3 varnishlog show missed URL

I'm trying to display missed URLs in varnishlog. The following command returns the whole transaction: varnishlog -m "TxHeader:X-Cache: miss" I would like to display only the requested URL, but the ...
1
vote
1answer
644 views

How to configure Varnish not to cache a particular folder?

I would like to set up Varnish as reverse proxy cache for Apache. How can I setup Varnish so that it does not cache content from a particular folder (and its subfolders), let's say ...
0
votes
2answers
493 views

How can I set up Varnish to cache only static content?

I would like to set up Varnish as reverse proxy cache for Apache. How can setup Varnish so that Varnish should serve all static data (jpeg, jpg, png, gif, ico, js, css, txt, pdf, gz, zip, lzma, bz2, ...
1
vote
0answers
44 views

Run script when Varnish starts

I'd like to run a script when Varnish starts. This script should execute a webrequest to a webserver (its backend), which then makes sure Varnish's cache gets filled with all pages residing on this ...
2
votes
1answer
308 views

Varnish does not recognize req.hash

I have Varnish 3.0.2 on Redhat and service varnish start fails after I added vcl_hash section. I did varnishd and then loaded the vcl using vcl.load vcl.load default default.vcl Message from ...
1
vote
1answer
64 views

How do you get Varnish to serve cached objects with an expired TTL when the backend returns 503?

I'm trying to get Varnish to serve up cached objects with an expired TTL when requesting a new copy of the object from the backend returns a 503 error. There is a Varnish Grace feature which will do ...
-1
votes
1answer
43 views

What kind of scaling method is it, when you add new software to a single server to handle more users? [closed]

I have read about scaling (in terms of terminology and methods). This got me confused about the following: On a single computer, running a web server (say apache), if the system administrator adds a ...
-1
votes
1answer
227 views

How to Enable geoip on magento with varnish page cache

I currently have 3 stores online with 3 different domains, running magento with Apache and varnish (using Phoenix page cache extension) running on centos One store is for uk, another for Ireland and ...
0
votes
0answers
23 views

varnish giving a cache hit even after ttl

I'm trying to set ttl for a HTTP GET request. the url for which is something like #if (req.url vcl_fetch{ if (req.url == "^/taxons/sold_out_status.") { std.syslog(180, "setting TTL for sold out ...
1
vote
1answer
53 views

Trouble with apache starting on boot with ssl api key

Im Running on Centos, the trouble is when i restart my server i need to start my apache and varnish service I use this to start both of them service httpd restart && service varnish restart ...
0
votes
0answers
237 views

How to add Pound & Varnish to my SPDY/https-only LEMP stack?

So I got quite excited about installing Varnish, having read lots of good things. But then I discovered it doesn't work with https. Fair enough. It seems combining it with Pound is the solution: ...
0
votes
3answers
186 views

Issue varnish purge through CloudFlare to Varnish

I've been working on this for a while and can't seem to find any solution. I have varnish sitting in front of my nginx server, with CloudFlare sitting in front. When I issue a curl -X PURGE host ...
0
votes
0answers
55 views

VarnishADM - Remove ban.url

I can't seem to find any information / nor anything on the manuals it self on how to remove a ban.url via varnishadm. I added a url via varnishadm "ban.url xyz"; but how do you remove it?
4
votes
1answer
371 views

Varnish + Tomcat vs Apache + mod_jk + Tomcat

Does anyone have some performance metrics for Varnish in front of 1) Tomcat or 2) Apache with mod_jk (connected to Tomcat). I know that the AJP connector is supposedly faster than HTTP, but I was ...
1
vote
1answer
134 views

Monit and Varnish

I am using the following config for monit set daemon 30 check process varnish with pidfile /var/run/varnishd.pid if failed host www.hatchedbyyolk.com port 80 protocol http and request ...
-1
votes
2answers
104 views

How do I block visitors by varnish on centos, using nginx as backend?

I want to block visitors from some country, by country code, not by maintain a lot of ip ranges. I can do it using only nginx, but i've just configured varnish to frontend, and I have not found any ...
0
votes
1answer
181 views

Varnish is passing all requests to Apache

I'm setting up Varnish Cache 3.0.4 and Apache 2.22 on the same Xubuntu server, with Varnish accepting connections on port 80, and Apache listening on port 81. The intention is to cache .html files in ...
0
votes
0answers
91 views

Varnish bandwidth accounting per domain - How to do it?

Does anyone know is there way to do bandwidth account per domain on Varnish. Or is there a way to use some other system to monitor how many bandwidth consumed per domain? Thanks