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

learn more… | top users | synonyms

0
votes
0answers
5 views

How to hash based on host + path in Varnish?

I want to use the hash director in Varnish to redirect all requests for a same URL without query parameters to the same server: For example, http://example.com/foo/bar?a=1 ...
0
votes
0answers
4 views

Change backend_hint during retry in Varnish 4

I'd like to be able to change the backend on a retry in Varnish 4. We've got this working on a different (older) application using Varnish 3, but I haven't been able to figure it out for v4, nor find ...
0
votes
0answers
10 views

Varnish configuration advise

I am having a few issues with my VPS. Something happened on it which my hosts are unsure of and so I am having to go through an ordeal to try and reconfigure a few things. One of those things are ...
2
votes
1answer
20 views

Apache 2 no authentication from ips

I have a deployment with apache 2.2.22 server behind varnish. What I would like to accomplish is that password protect a directory with htpasswd but make this accessible for certain users coming from ...
0
votes
0answers
18 views

Cannot Upload Files Over A Specific Size to Wordpress

When uploading larger files to any WordPress site running on a local server it fails. If I try outside of the network it works fine, if I switch to the other LAN network running and connect to the ...
0
votes
0answers
15 views

Blocking IP's behind varnish

I'm using varnish to speed up my website, but I've noticed because it is technically a reverse proxy, all IP's show as 127.0.0.1 - I've fixed this by using HTTP_X_FORWARDED_FOR, but that's only ...
3
votes
2answers
46 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
10 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
34 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
0answers
16 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 ...
0
votes
0answers
48 views

Nginx on front of Varnish

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; ...
0
votes
0answers
25 views

Pound and Varnish Multiple sites SSL

I'm trying to setup Pound for more than one website but when the enter the below code in /etc/pound.cfg file, it applies only the first certificate in the line for all the websites and it results in ...
1
vote
2answers
73 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
13 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 ...
0
votes
0answers
51 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
21 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 ...
0
votes
0answers
39 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
41 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
61 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 ...
0
votes
1answer
100 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
19 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
31 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
32 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
13 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 ...
0
votes
0answers
21 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 ...
1
vote
1answer
61 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 ...
0
votes
1answer
24 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
81 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
107 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
45 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
48 views

What's the best way to cache a website on ngix 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 ...
0
votes
0answers
11 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
73 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
28 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
41 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
53 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
24 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
36 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
70 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
21 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
77 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
40 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
10 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
13 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
53 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
15 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
54 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
36 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
25 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
9 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?