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

learn more… | top users | synonyms

0
votes
1answer
22 views

varnish wordpress comments

On my server I have installed Varnish in front of nginx, to serve static files faster. When using my site I have found following bug: Every comment on my wordpress blog is coming from localhost ...
0
votes
0answers
12 views

Get a specific answer as a result from helthcheck varnish

I want to make a condition. The backend is healthy only if i get as a result "alive", else even it get a result, it would be not healthy. backend test { .host = "192.168.1.100"; ...
0
votes
0answers
6 views

SoftPurge doesn't work correctly in varnish

I am trying to use Softpurge mentioned here: http://www.smashingmagazine.com/2014/04/23/cache-invalidation-strategies-with-varnish-cache/ I run in terminal the following command: curl -X PURGE ...
1
vote
0answers
16 views

Varnish config to fallback to another port

I am playing around the different config setups. Currently I have Varnish-cache in port 80, Apache2 in port 70 and Nginx in port 90 in the same machine. The Varnish is configured in such way that it ...
0
votes
1answer
21 views

“service varnish stop” doesn't actually stop Varnish

I'm running Amazon Linux. I originally installed Varnish 3 on this box, but have now installed Varnish 4. sudo varnishd -a 0.0.0.0:80 -f /etc/varnish/default.vcl ...works just fine to start ...
-1
votes
0answers
18 views

Varnish Fail to start after Setting sub vcl_fetch, sub vcl_deliver from Varnish site Recommendation

Trying to set varnish cache running. I'm also very new to Varnish. I have already set-up Varnish Correctly on my Server and configure it with Apache (Installation i use ...
1
vote
0answers
15 views

Varnish: How to cache for failure, always ask backend if healthy?

I want to configure varnish (still on version 3) in the following way: If the backend is available, every request should go to the backend, so no cached results should be used. If the backend is ...
0
votes
0answers
13 views

Can not analyze output from Squid and varnish

I'm using one Squid server between tow cache server. I get from headers following information: X-Cache MISS, HIT from cache-zz X-Cache-Age 515 X-Cache-Control public, max-age=3600 X-Cache-Lookup HIT ...
0
votes
1answer
40 views

Real IP addresses from Varnish + Cloudflare

I'm trying to edit the default.vcl file to get the real client IP addresses to show up in my Wordpress. I found this online and I read a lot of pages on this but have failed to make this work. I'm ...
0
votes
0answers
20 views

Odd behaviour with varnishlog and stream redirecting

I wrote a helper to debug varnish installation and have used it on both production and development server. The odd thing is, I encountered different behaviour even though the setup is nearly identical ...
0
votes
1answer
39 views

Random 502 errors with Varnish

I have a varnish 4 in front of an Apache web server. All is good, except i have some random 502 errors. What is strange is that there is nothing in the varnishlog file for this error ! (all others ...
1
vote
0answers
21 views

Cant access varnish without www

Yesterday i installed varnish and memcached on my CentOS 6 32-bit VPS server for my magento store, when i go to www.my-website.com or http://my-website.com it works, but when i type in firefox ...
-1
votes
1answer
136 views

Getting “The page you are looking for is temporarily unavailable. Please try again later”

I have a vps running Ubuntu+LEMP+Varnish. Everything was fine untill I updated the server software. Now I am getting "The page you are looking for is temporarily unavailable. Please try again later" ...
0
votes
1answer
49 views

round-robin director ALWAYS directs request to the same backend

I've set up one server with Varnish as a load balancer and two servers running nginx/unicorn/sinatra for demo purpose. All three servers are accessible! My varnish vcl file: backend web2 { .host = ...
0
votes
0answers
17 views

Varnish Backend Back To Live After “Service Scan” by Domain Dossier

My Varnish Cache works fine except there is annoying issue that every few hours, the backend probe will report sick for 3 of my 4 backends. So site can't open, report 503 obviously. The strange thing ...
0
votes
1answer
31 views

Varnish installer cannot find PCRE when it is already installed

I am trying to install Varnish-Cache 4 on my Mac OS X 10.9.3. But I get this error: checking for PCRE... no configure: error: Package requirements (libpcre) were not met: No package 'libpcre' found ...
0
votes
0answers
42 views

apache + varnish + cloudflare Log IP's

trying to log the real ip of the visitors to a site, with a server running apache, varnish and cloudflare. im currently logging the cloudflare server IP's from visitors, after altering the ...
0
votes
0answers
29 views

Varnish stopped working after changing ip address of backend

A month ago I installed Varnish and Drupal on separate machines and could see that varnish was serving pages. A few days back I changed the ip address of the backend in my default.vcl to point to ...
0
votes
1answer
34 views

DreamPress WordPress site Varnish Cache Error

Every now and then, often when I write a post on my Dreamhost DreamPress WordPress blog I get this Varnish related error: Error 503 Service Unavailable Service Unavailable Guru Meditation: XID: ...
0
votes
0answers
18 views

varnishncsa not logging custom headers

I'm using Varnish 3.0.2 on a Debian Wheezy system. I'd like to be able to set custom headers and have their contents appear in the request logs. However, although I know the headers are being set ...
0
votes
2answers
141 views

Varnish + Nginx + multiple IP addresses

This is my first shot at making Varnish work on my dedicated server which hosts 2 domains with 2 separate IP-addresses. My simplified setup is as follows: Nginx conf server { listen ...
0
votes
0answers
14 views

OpenX Requests Multiple Logins on Every Request

We're experiencing an issue with OpenX 2.X and Varnish 3.x. Whenever an OpenX Admin tries to navigate through the backend interface by clicking on any link, OpenX shows the login page. For example, ...
0
votes
0answers
78 views

Horizontal Versus Verticale Scaling for Large Scale RoR Application (High CPU and Memory Usage)

We are launching a high demand (several hundred simultaneous users) Ruby on Rails application and we are trying to determine the best way to scale. Currently, we have a setup that follows this ...
1
vote
2answers
124 views

Varnish as a web server

I'm looking for a way to configure Varnish to handle HTTP request within Varnish. More specifically, for specific paths(say under /foo/* ), I want Varnish to respond with 200 HTTP status code and ...
1
vote
1answer
24 views

Varnish to Vsites on Apache servers

Can anyone advise of a VCL conf that redirects (inside LAN & LAN DNS) to get to multiple named hosts? i.e. http://x.ourdomain.com = IP of Varnish Server = redirects to LAN host (i.e. 10.0.5.1) ...
0
votes
2answers
50 views

Varnish ACLs Behind Load Balancer Based on Client's IP

In the following setup: Client -> LB -> Varnish I would like to configure Varnish acls to take certain action based on the Client's IP. The LB sends the client's IP in a variable called ...
0
votes
0answers
53 views

Varnish bans page that should not be banned

Our Varnish 3.x is standing before HAproxy, which in its turn load balances to Nginx/Drupal Our goal is to allow caching for anonymous users and no caching for logged in user. I just found out that ...
2
votes
1answer
73 views

Varnish + Pound on Apache 503 Errors

I'm getting a lot of seemingly random 503 Service Unavailable errors on my Varnish + Pound setup on Apache. I have no idea where to start or what the problem is. I've searched the web a ton and all ...
2
votes
1answer
58 views

Varnish SMS allocation request generate HTTP 503

Sometimes my application return a HTTP 503 error to a client. The only clue I have is that when it happen, Cacti reports a peak of Varnish SMS Allocation requests. After some research I may have ...
1
vote
0answers
44 views

varnish - multiple catch-all domain names

In order to avoid setting up one backed per subdomain, I am specifying a catch-all regex string per domain name, as follows: backend domain1 { .host = "10.10.10.5"; .port = "80"; } ...
1
vote
1answer
36 views

Server Log Format

I'm trying to understand this server log line from cache_access.log. What does each field represent, specifically why are there three IPs listed and what does each represent? [HIT - - - -] ...
0
votes
1answer
57 views

Ignore utm_* values with varnish?

Can I 'ignore' query string variables before pulling matching objects from the cache, but not actually remove them from the URL to the end-user? For example, all the marketing utm_source, ...
1
vote
1answer
42 views

Does varnish count a restart if all backends in a director are sick?

My varnish setup looks like this (obviously I've simplified): director default round-robin { { .backend = me! } } director peers random { { .backend = peer1 } { .backend = peer2 } { ...
0
votes
0answers
25 views

Varnish single probe host header as variable?

I want to clean a bit my config with many servers as backends. I'd like to use one probe (currently it's declarated per server) and I wonder if I can make requests with variable Host header. e.g. for ...
0
votes
0answers
71 views

Ubuntu with apache2 virtual hosts -> Tomcat (JkMount worker1) -> Varnish

I am a newbie with a Ubuntu server serving a couple of test-sites. My setup is: 1) apache2 hosting a couple of wordpress-sites configured using virtual hosts 2) tomcat hosting a second site, ...
0
votes
1answer
39 views

Block specific URI with Query String in Varnish

Can someone help to block an URL which has querystrings as part of it in Varnish ? For eg: /abcd.php? Blocking /abcd.php works good yet with ? I'm able to access the page Thanks, Raj
0
votes
0answers
134 views

Nginx with wordpress refused varnish static content requests

I just added another wordpress site to my ubuntu server. 2 wordpress sites, not multisite. They use 2 different fpm pool with same config. Their Nginx config files are basically identical except the ...
0
votes
1answer
87 views

SSL Certificate implementation for a stack that has varnish and multiple NGINX webservers

My current stack has Varnish -> NGINX (2 servers) running Drupal -> MySql. All static content is cached and served by Varnish over HTTP. However when a user signs-up and wants to purchase a plan the ...
-1
votes
2answers
260 views

Where will load fall using Nginx, Varnish, and HAProxy? [duplicate]

We are looking into scaling our servers and I am not sure where load will fall as visitor count increases. I have one HAProzy load balancer, that proxies to two Varnish Nginx static content servers. ...
1
vote
0answers
190 views

Varnish 3 to 4 upgrade config changes

Can anyone who actually understands what the upgrade document states do a how to or a straight modification of a popular vcl, so people who don't have as much experience and pretty much just use these ...
2
votes
0answers
230 views

Varnish 3.0.5 round robin director not balancing

I have an architecture with two varnish servers sitting in front of 5 webheads. Each varnish server is configured with a round robin backend director, but at times of moderate to high load varnish ...
0
votes
1answer
111 views

Redirect logged-in users to https, anonymous to http using Varnish+Apache

I've got a server with Varnish in front of Apache in front of Drupal. What I'd like to do is redirect my login form to https (easy enough), then redirect all logged-in (authenticated) users to https ...
1
vote
1answer
38 views

Can somebody explain this piece of VCL sub_recv on Varnish 3.x?

I've been looking into some examples of VCL files for Varnish 3.x and I stumbled upon this piece already some times, and it's been making me scratch my head: sub vcl_recv { ... if (req.request != ...
1
vote
2answers
239 views

How can I synchronize 2 web server files with load balance?

I need to setup a website with load balance to accommodate more visitors, I've seen on forums that varnish(balance)->apache(web1&2)->mysql(dbserver) is the way to go. I know how to setup ...
1
vote
1answer
115 views

Varnish + Nginx + Wordpress: using Varnish get's redirect loop

I have two websites using Wordpress and Nginx and was trying to put Varnish at front, but when changing the listen port of Nginx to 8080 all the websites enter in an redirect loop. In the sites ...
0
votes
1answer
87 views

Varnish 502 Errors on large files

Whenever I am serving large files with Varnish, is there some way to make Varnish just pipe files that are larger than a certain size? Varnish is giving me some 502 errors on large files (For example, ...
0
votes
1answer
139 views

Varnish doesn't cache anything: varnishstat always with 0 ratio

I've set up apache and Varnish, no particular configuration involved (apache on 8080, varnish serving pages at port 80). I also dropped cookies in Varnish to ensure maximum caching of Wordpress sites. ...
2
votes
1answer
43 views

Varnish - Allow specific cookies for the backend?

I am trying figure out how to allow the backend to see tracking cookies on specific registration pages but ignore them on others. Currently, I'm trying to use a custom header sent from the backend to ...
0
votes
1answer
24 views

How can I check the reason why varnish did not cache a response?

I am seeing that the hit-rate in varnishstat is constantly being 0. Is there any way I can check why a specific request is not being served from cache or the reason why a specific response was not ...
0
votes
0answers
34 views

varnishncsa is not producing any output

If I run varnishlog I see output for each request; however, when I run varnishncsa I get nothing. (running varnish-3.0.2 on Ubuntu 12.04) I've tried running varnishncsa from the command line: with ...