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

learn more… | top users | synonyms

3
votes
3answers
120 views

Is HAProxy still necessary when Varnish can act as a load balancer?

I would like to load-balance my application servers, as well as cache the responses from them. I've read an article dating back to 2012 on HAProxy's website, that was supposed to clear the confusion ...
0
votes
0answers
36 views

nginx proxy_cache store callback - store cache keys in mysql

I have multiple servers with nginx installed on them. We would like to cache large static content (> 1gb) on our nginx servers which is fetched from a remote storage server. We are trying to set up a ...
0
votes
2answers
200 views

How to configure HTTPS Nginx + Pagespeed + Varnish + Apache?

I currently have the following set-up: Nginx (https) => ssl offloaded => Varnish (http) => Apache (http) I want to add mod_pagespeed or nginx pagespeed in the mix. Any ideas where to add it? Should ...
0
votes
1answer
35 views

Varnish Capacity Planning and Hardware Sizing

we want to run a new varnish node to cache video segments "average object size 3MB" and wondering if there is a way to measure the hardware specs "CPU/Memory/Disk" required based on the user's ...
2
votes
0answers
185 views

Nginx in front of Varnish sometimes produces “upstream prematurely closed connection while reading response header from upstream” error

I have Nginx(1.9.9) on front of Varnish(4.1.0) on the same server. //nginx upstream varnish { server 127.0.0.1:8391; keepalive 16; } location ~ \.php$ { proxy_pass http://varnish; ...
1
vote
2answers
114 views

How to make two domains to access a server and use two different homepage?

I have a Digitalocean server with ubuntu linux, nginx 1.4.6 (running on port 80), varnish 3.0.5 (running on port 8080, together) I have two domains, say siteA.com and siteB.com. In default.conf of ...
0
votes
0answers
17 views

i have install and configure varnish but not works

if (req.restarts == 0) { if (req.url ~ "\.(jpg|png|css|js|gif|gz|tgz|bz2|tbz|mp3|ogg)$") { # No point in compressing these remove req.http.Accept-Encoding; } elsif (req....
0
votes
0answers
171 views

Apache with Varnish, SSL termination and additional proxy - redirect not working

I've got a problem with the SSL termiantion for my varnish. This is the request path I want to achieve: user -> Varnish(80) -> Apache(8080) -> Apache(8181) -> Apache(443) when termination is made. ...
0
votes
0answers
28 views

PHP5-FPM is not working behind Varnish

I've got the following Setup: A Nginx Server which listens on Port 443 with the following Config: server { listen 443 ssl http2; [SSL Part etc.) location / { proxy_pass http://127....
0
votes
0answers
98 views

varnish-cache throws vcc error on installation

I'm getting this strange error everytime I try to install varnish on my server. I'm not quite sure what the issue is despite spending hours on Google trying to find a solution. It would appear that ...
0
votes
1answer
58 views

test haproxy, varnish and apache configuration

I'm installing Varnish cache 4 behind a HAproxy which is behind an Apache instance. I've got several questions that could seem trivial to you (sorry then): How can i know if the HaProxy calls ...
0
votes
1answer
481 views

Varnish 503 Backend Fetch Failed when varnish 4.1 is started as service on Debian 8

I am new to varnish. Whenever I am trying to acess our backend via varnish I am getting the below error:- <!DOCTYPE html> <html> <head> <title>503 Backend fetch failed&...
0
votes
1answer
305 views

NginX->Varnish->PHP-FPM Blank pages

I want to put nginx in front of Varnish, which at the same time will go back to nginx to serve some PHP (Drupal). But I am only getting blank pages (from Varnish) with 200 response, but length 0. ...
0
votes
0answers
45 views

mod_rewrite index.php behind varnish server

I have on my pfSense router a Varnish server currently with 4 backends. 3 of the backends go to the same server on my network and the 4th goes to my development server I'm using to get some webapps ...
1
vote
2answers
71 views

Running LEMP on Ubuntu (15.10), trying to add varnish, having problems

I seem to be having an issue with varnish. It's nothing major but I'm struggling to find where I may be going wrong. Basically, varnish is set to run on port 6081 which it does; however. I've tried ...
1
vote
1answer
76 views

Error setting up haproxy and varnish

I have been following a tutorial from haproxy blog on how to install varnish with haproxy. (Link) There is a problem with the haproxy config settings around this part: frontend ft_web_static bind ...
0
votes
0answers
56 views

Varnish's VARNISH_STORAGE_SIZE

I'm running Varnish Cache on following system: # cat /etc/redhat-release Red Hat Enterprise Linux Server release 6.7 (Santiago) # uname -a Linux X 2.6.32-573.7.1.el6.x86_64 #1 SMP Thu Sep 10 13:42:...
0
votes
0answers
62 views

Varnish 4.x Unable to Pass Client IP

I'm currently using varnish to reduce the load on my server, however, because I want to be able to know what IP is being used regardless of my php $_SERVER request method for a visitors IP, I decided ...
2
votes
1answer
118 views

Varnish 4.1 segfault in Docker

I'm trying to use Varnish 4.1 with Docker (1.9.1). I've built a docker image in Alpine Linux 3.2 with its musl-libc to reduce the image size. Dockerfile: FROM alpine:3.2 ​ RUN echo 'http://dl-4....
0
votes
1answer
36 views

Varnish Error Log Files

I upgraded to version 4.1 from 4.0 and everything was working fine until I restarted the service and it shows Starting or Started, but when I check the status or go to a website the services shows ...
0
votes
2answers
253 views

Varnish 4.1 Stopped After Restart and Won't Stay Started

I upgraded from Varnish 4.0 to 4.1, had one minor issue at the beginning and fixed that and was up and running. I needed to clear the cache and when I restarted Varnish it said "Starting", but when ...
0
votes
1answer
437 views

Nginx SSL + Varnish + Nginx HTTP server, .css and .js files URL's are getting rewritten to http

I am using Nginx as an SSL terminator that serves requests to Varnish, and then Varnish passes the cached data to Another Nginx Vhost. Everything works well so far, but for some reason, only .css and ....
0
votes
0answers
99 views

Nginx Cache alterntive where two requests can populate large cache files simultaneously?

I am using Nginx as a caching reverse proxy for large files. It is important to me that the origin server does not have to output more bandwidth than necessary. So if the download of the file gets ...
-1
votes
1answer
77 views

What's the best way to cache a website on nginx server with SSL?

I have a wordpress blog which runs using nginx (SSL) + PHP-FPM + MySQL. I wondered what was the best way to cache this kind of site. I heard that Pound and Varnish do that well, but I haven't found ...
1
vote
0answers
30 views

Varnish ESI Streaming Response - Is it possible NOT to stream the response

We use Varnish (4) in front of an application which contains a few ESI blocks. What we are seeing (as expected) is that varnish streams the response from the server as soon as our backend responds to ...
-1
votes
1answer
88 views

Varnish 3.0.7 suddenly stopped working

Changed one line in default.vcl and after that I couldn't restart. It didn't give me any error or anything. I tried to set it back to the former config but that didn't help. So I decided to reboot. ...
0
votes
0answers
50 views

Nginx (SSL) -> Varnish -> Apache upstream load balancing/ failsafe

I want to setup the following infratructure: Nginx as ssl terminator/ load balancer in front of a Varnish cache which itself uses Apache backends. Now I want to load balance the traffic in the ...
1
vote
1answer
121 views

Caching large files transparently over HTTP

I have a rather peculiar server set up to work with: I have files stored on an HTTP accessible server (Windows Azure Storage - about 800gb of content) but must serve them to people from a different ...
1
vote
0answers
87 views

Varnish - behind, in front of, or instead of load balancer(HAProxy/nginx)

I intend to run a few tiny ARM "physical cloud" servers behind a load balancer(either HAProxy or nginx itself), but i can't decide where to put Varnish in the whole mess. I can either have it on each ...
1
vote
0answers
63 views

varnishlog accessing POST body (varnish 4.x)

running varnishd (varnish-4.1.0 revision 3041728), and logging using varnishlog -q "BerespStatus >= 500" I would like to know, if is possible to print POST content. There is XML-RPC service ...
0
votes
0answers
62 views

Dynamically modifying weight of a backend on Varnish

I have Varnish configured as a load balancer with 3 app backends using the hash director: director app hash { { .backend = instance1; .weight= 1; } { .backend = instance2; .weight= 1; } { ...
0
votes
1answer
117 views

Starting Varnish in a Docker Container fails for Unknown Reason

I'm trying to get Varnish to run in a container, and I'm running into a weird issue. Things work fine if I log in, and then execute from a command line, but when I try to run it, using the same ...
0
votes
0answers
26 views

Varnishncsa truncated referer

I have a question concerning varnish and varnishncsa. In fact I've set up varnishncsa to log requests with this log format : LOG_FORMAT="%{X-Forwarded-For}i %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{...
1
vote
1answer
169 views

Configuring Varnish 4 VCL to Cache Only a Specific Page for Anonymous Users (with Django)

I'm using Django with Varnish 4. I'm trying to achieve that: If the request is not for the home page, pass (I'm trying to only cache the home page at the moment to test it, etc.) If the cookie '...
0
votes
0answers
66 views

Redirecting non-www to WWW varnish 3

Hello I'm trying to force all connections to use a single URL for all non resources (Js, css etc) I'm using Pound (:443) -> Varnish 3 (:80) -> Windows Web Server and have configured the redirect to ...
0
votes
1answer
11 views

Varnish3 - how many clients causes 1 backend fetch? (antidogpile)

When varnish cache is empty and I got X client requests for the same asset - Varnish gathers the clients and issues 1 backend fetch. Do you know if there's possibility to control how many requests ...
0
votes
0answers
15 views

What is the meaning of a 'completed' ban in Varnish?

In Varnish (4.1), what does it mean when a ban is marked 'completed' versus when it is marked 'deleted'?
0
votes
1answer
59 views

Pound, HTTPs and Varnish

I'm configuring a proxy, and trying to workout how to use a SSL Cert for Pound. Or whether its even needed? At this stage the proxy simply points to the web server - we are likely to need more web ...
0
votes
0answers
17 views

Apache + varnish freezes

So the problem is that whenever I run a long running script if it goes over 60 seconds apache virtualhost freezes. Other virtualhosts runs fine, varnish is serving content too, but when I'm under ...
1
vote
1answer
111 views

Varnish removes $HTTP_HOST

I have an issue with varnish, wich removes HTTP_HOST variable. My setup is nginx ->(1 from 5 server with:) varnish -> local nginx -> php5-fpm. I'm running several sites, but without Host it just ...
1
vote
0answers
48 views

Varnish - how to parse StatSess lines from varnishlog

I'm trying to analyze the output of varnishlog, but I'm having trouble finding a good reference on what data is presented by the individual tags - in particular, I'm insteresed in the StatSess tag, as ...
0
votes
1answer
43 views

In Varnish 4.0, is there any way to tell if a Purge request Hits or Misses?

Looking at the logs, I don't see any difference between a Purge HIT and a Purge MISS. Neither are there any longer any apparent hooks for this in the VCL. Is there a way to tell if Varnish 4 Purges ...
0
votes
0answers
10 views

For a purge request, is 'host' required?

Using purge in Varnish 4. The documentation and examples that I've seen all include 'host: XXX' as content of the request. Is that a required parameter?
0
votes
0answers
161 views

Magento and Varnish 4

I have varnish setup behind Nginx (SSL offloading) going to a backend server running Apache and Magento (turpentine module). I can see from Varnishstat that there are requests going to the varnish ...
2
votes
1answer
281 views

Backend fetch failed - varnish wont fetch drupal backend

I run a drupal 7 application(3backends) and i have 3 varnish servers continuously denying to fetch backend. I have read many similar error here but still cant solve my problem, throwing 503 varnish ...
-1
votes
1answer
79 views

apache processes taking 100% of CPU

i have a 4 GB virtual server that i'm hosting a rugby website and since it's a rugby world cup season my site is receiving a good amount of traf fic , not too much that it exceeds my server limit ...
0
votes
0answers
35 views

Overriding Expires Header, Using Varnish

Im using a web host (No admin access), and a Varnish proxy (Admin Access) to speed up the slow responses from the hosted server. Is working well, but have run into some issues with WordPress sites. ...
0
votes
0answers
88 views

Varnish CSRF protection token doesn't work

I have a symfony2 based site with a form and captcha in it. When I access the site directly the contact token remains the same. When I access it through varnish it gets updated every time I hit F5. ...
-1
votes
2answers
120 views

Varnish/Traffic-Server https caching support

I know that Varnish does not cache's https connections. Does apache traffic server caches https? If no, is there a way to configure apache + Varnish + wordpress to cache https?
3
votes
0answers
235 views

Varnish cache objects expiring while in stale-while-revalidate grace period

I have added Varnish 4.0 to a CentOS 6 server running cPanel to cache a website I have developed. I am trying to implement stale-while-revalidate to ensure that all users are served a cached version ...