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

learn more… | top users | synonyms

0
votes
1answer
446 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 ...
1
vote
0answers
45 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
369 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
65 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
vote
2answers
3k 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
199 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
35 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
471 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
515 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
121 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
273 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: ...
1
vote
0answers
72 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 ...
1
vote
2answers
2k 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
34 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
262 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
647 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
43 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
313 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
107 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
386 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
240 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
162 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
45 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
208 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
188 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
1answer
109 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
275 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
261 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
981 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
1answer
742 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
731 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
295 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
56 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 != ...
2
votes
3answers
1k 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
294 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
372 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
655 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
145 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
215 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
2answers
173 views

“Server too busy” after moving to fcgid

I was previously using mod_fastcgi and had issues as described here with configurations getting ignored. After moving to mod_fcgid, I've seen a whole new issue which is causing issues for all sites ...
0
votes
1answer
107 views

Varnish Hangs Every 1-3 Days After Websocket Implementation

After implementing a varnish -> nginx -> nodejs websocket pipeline (previously we had been using iptables to port forward), we started experiencing a freeze in varnish every 1-3 days. Checking some of ...
1
vote
3answers
87 views

Varnish Cache: How does Varnish play with other caching systems?

I'm considering installing Varnish cache in front of my forum platform to speed it up even further. It already runs Percona MySQL DB, PHP 5.5.8 (which has Opcode caching built in, and running) and ...
1
vote
1answer
876 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
236 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 ...
2
votes
1answer
497 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
2k 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
327 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
3answers
288 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
189 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 ...
1
vote
0answers
885 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 ...