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

learn more… | top users | synonyms

0
votes
0answers
36 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
88 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
50 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
164 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
106 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
415 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
294 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
284 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
149 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
394 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
175 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
108 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
185 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
55 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
33 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
41 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
75 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
45 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
51 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
76 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
81 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
46 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
258 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
125 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
102 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
223 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
414 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
143 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
132 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
68 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
338 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
17 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
114 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
179 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
395 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
231 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
295 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
478 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.
0
votes
1answer
476 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
143 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
86 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
65 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
270 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
61 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
274 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
124 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
114 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
558 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 ...