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

learn more… | top users | synonyms

1
vote
1answer
117 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
574 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
103 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
183 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
30 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
176 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
364 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
898 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
817 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
53 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 ...
3
votes
1answer
428 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
67 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
279 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
25 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
62 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
281 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
237 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
71 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
467 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
187 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
124 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
250 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
106 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
0
votes
1answer
102 views

Varnish Working with Custom http response Headers

I am trying to read http response header that holds an "cacheable". For Example: if (req.http.X-Type ~ "cacheable") { unset req.http.Cookie; return(lookup); } I've Tried a lot of things ...
0
votes
0answers
83 views

How to set caching with cookie value in Varnish 3.0.3

I am trying to convert a part of code from the older 2.1.5 to version 3.0.3 Having trouble with vcl_hash where syntax has changed. Syntax from 2.1.5 sub identify_cookie { if (req.http.cookie ~ ...
3
votes
3answers
261 views

Caching PHP pages, Varnish, nginx, other?

I have a web application running on a low end box (1gb RAM), serving a mixture of static and dynamic (php) pages. These PHP pages are querying a MYSQL database which does not change often at all - ...
2
votes
1answer
989 views

How to improve Varnish performance?

We're experiencing a strange problem with our current Varnish configuration. 4x Web Servers (IIS 6.5 on Windows 2003 Server, each installed on a Intel(R) Xeon(R) CPU E5450 @ 3.00GHz Quad Core, 4GB ...
0
votes
1answer
115 views

Replacing Apache2 for Varnish as a reverse proxy

I'm having some troubles replacing a Apache2 reverse proxy rule for a Varnish ACL. The apache rule is: <Location /MySite> ProxyPass http://192.168.0.123/OtherSite </Location> ...
0
votes
1answer
196 views

php5-cgi gives 502 with varnish but is ok without

problem summary: php5-fastcgi works with nginx but doesn't work with nginx+varnish (502 Bad Gateway) does anyone have a suggestion of what I could change to get varnish working ? problem details: ...
0
votes
1answer
157 views

“Syntax error at 'input'” when restarting Varnish; something wrong with default.vcl

Here's the default.vcl, varnish configuration file, that I've built after lots of reading and referring: backend default { .host = "127.0.0.1"; .port = "8080"; } acl purge { "localhost"; } # ...
0
votes
2answers
174 views

I am having difficulties with apache after varnish installation

I am running since few years directadmin on centos, now I need a better server environment for our sites. I installed last centos version on a rackspace instance, installation of directamin with all ...
1
vote
2answers
47 views

Varnish keeps caching subdomains I ask it not to

I'm trying to configure varnish not to cache any domain that begins with "staging" using the pass method like so: if( req.url ~ "^(staging.)" ) I suspect I'm using VCL selectors wrong but after ...
0
votes
1answer
136 views

Calculating count and percentage for specific URL from Varnishlog

I was curious on how I would go about calculating a running percentage for specific URLs... For example, when varnishlog is executed you get a realtime output for information of incoming http ...
0
votes
4answers
953 views

Nginx - Wordpress Redirect Loop

I'm using nginx as a frontend for apache2. Apache2 will handle all dynamic content. This is my main file with nginx being a frontend for apache and having all dynamic pages forwarded to apache2: ...
0
votes
2answers
403 views

Varnish ESI not working

I have a configuration like this: - nginx port 80 - varnish (3.0.4) port 6081 - apache port 8080 Nginx takes the request and passes it to Varnish which then check the cache and then either returns ...
0
votes
1answer
446 views

Nginx, apache2, Varnish with PHPMyAdmin

I have an install of Nginx, apache2 and Varnish. I have setup the following code in my default.vcl so when I browse to my /phpmyadmin it doesn't redirect to 8080. sub vcl_fetch { if (req.url ~ ...
0
votes
1answer
40 views

Domain Not Being Served by Nginx

I have a 13.04 Ubuntu server with two associated ip addresses. Let's say for example the IPs are 123.456.789.111 and 123.456.789.222 and the server has two domains let's say example1.com and ...
1
vote
0answers
160 views

Rapid increase in n_lru_nuked objects in varnish cache with enough malloc to spare

We are using varnish 3.0.3-3.5 on amzn ec2 and it is allocated around 3G of malloc. It starts with normal caching of object but when it hits a certain no of object+objecthead(around 14k), n_lru_nuked ...
0
votes
3answers
276 views

Varnish Server : How to put in-between Top Loadbalancer and Below EC2 Web Servers?

I'm still kinda novice but now i'm on AWS/EC2 Redhat Machines. I have: 1x Load Balancer (Above) 2x EC2 Apache Web Servers (Below) Something like: LB | ------- | | Web Web Then ...
0
votes
1answer
229 views

Varnish sending bad “Host” header to Apache

I'm in the early stages of testing Varnish 3.0.4 as a new front end for a web service. I have varnish configured to listen on port 88. For its backend it's using an existing apache server running on ...
1
vote
1answer
62 views

detect return code (mode) in varnish hook

In vcl_recv I decide whether to pass or lookup based on the existence of a cookie: sub vcl_recv { if (req.http.Cookie ~ "(JSESSIONID=)" ) { /* do not cache logged in users */ ...
1
vote
1answer
301 views

how to disable varnish X Forwarded For header

i am using nginx <=> varnish <=> apache i am passing client IP to varnish via nginx proxy_set_header X-Forwarded-For $remote_addr; but varnish also adding X-Forwarded-For as 127.0.0.1 so ...
2
votes
1answer
2k views

Purge varnish cache for a single url using varnishadm

Varnish is being used in a Wordpress website. I would like to purge Varnish for a single URL instead of a whole domain. With this command I can restart Varnish for the whole domain: varnishadm -T ...
0
votes
2answers
90 views

Web caching with SSL connection and dynamic contents

I have some questions about web-caching systems. If I use systems like Squid, Varnish as reverse-proxy in front of my architetture: Is possible to have SSL connection from user to my proxy and SSL ...
0
votes
4answers
1k views

connections on port 80 suddenly refused / server not responding

my dedicated server stopped responding to requests on port 80 today out of sudden, i havent touched anything in more than a month. its ubuntu 10, varnish + nginx + php-fpm, only 1 website. load is ...
-1
votes
1answer
148 views

Varnish memory management

I have a rather 'dumb' question regarding Varnish. I've been reading info on Varnish cache storage types and yet don't understand what would happen in following: Imagine we have 2GB of free memory. ...
0
votes
1answer
237 views

Varnish caching layer vs load balancer

We have around 10-15 different websites which at the moment are hosted on two Rackspace cloud servers with 4GB RAM. These two servers are totally independent of each other, we randomly choose a ...
0
votes
1answer
515 views

How do I get sticky session to work on varnish?

Here is my current config file. Some time it works sometime it doesn't. Note that my website doesn't have a session so I can't use that. backend gw001 { .host = "127.0.0.1"; .port = "9001"; ...