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

learn more… | top users | synonyms

0
votes
1answer
235 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
45 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
3answers
916 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
255 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
177 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
386 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
94 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
121 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
56 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 ...
0
votes
2answers
110 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
0answers
47 views

Server intrusion - MySQL row altered

I have an AWS EC2 and an RDS instance running MySQL. The web app is Magento. We're facing an issue where the attacker has changed a row in the database - this is the PayPal seller's email address. ...
0
votes
1answer
82 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
82 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 ...
0
votes
0answers
128 views

Varnish & ISPConfig under Debian give error 503

I followed the tutorial here and here to get Varnish3 on top of ISPconfig3 under Debian 7 I have in my /etc/default/varnish DAEMON_OPTS="-a :80 \ -T localhost:6082 \ -f ...
0
votes
0answers
55 views

Varnish: Pageviews Per User Drop Significantly

I am using Varnish, I noticed that the time on page increases but my pageviews dropped. I then let Apache serve requests directly again and the pageviews went up to normal levels My theory is that ...
1
vote
1answer
591 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
188 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
156 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
358 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
1k 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
264 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
205 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
144 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
662 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
25 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
197 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
361 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
615 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
315 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
755 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
730 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
33 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.
0
votes
1answer
752 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
181 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 ...
1
vote
0answers
79 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
436 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
75 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
423 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
157 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
141 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
939 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
123 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
243 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
57 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
36 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
256 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
728 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
2k 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
2k 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
1answer
78 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 ...