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

learn more… | top users | synonyms

0
votes
0answers
11 views

HAProxy, Varnish and Multiple websites with SSL

I can't seem to find any documentation on setting this kind of configuration up with Apache. I have 1 load balancer and 2 slaves running MySQL replication and unison syncing both machines and website ...
0
votes
1answer
30 views

Apache returns error 403 from varnish

Varnish is installed properly and seems to work fine on the same machine with apache. It passes content from backend but caching doesnt work. Header looks like below: HTTP/1.1 403 Forbidden => ...
0
votes
1answer
49 views

Nginx php5-fpm varnish taking high CPU. Load average is over 32

I'm on a server with the following config: 32 GB RAM 12 core processor and it's running single wordpress on nginx, varnish, php5-fpm, fastcgi. Everything was running fine, but suddenly after ...
0
votes
0answers
9 views

Varnish cache configuration not detect language country

I have a website written in java, content is returned to users based on the national language eg: default is English site aaa.vn default, as in Vietnam, the aaa.vn/vn When do I use varnish proxy cache ...
0
votes
1answer
29 views

Varnish not caching certain files when accessed with incorrect capitalisation

We have Varnish 3.0.6 sitting in front of a bunch of IIS servers. The IIS servers don't care about case-sensitivity of the requests coming in, and despite my constant reminders to the devs, they of ...
0
votes
1answer
43 views

Mysql DB can't establish connection

I run a viral news site, it's running on a 30 dollar digitalocean vps currently, with wordpress and apache. The other day my post went viral and i was getting 250 pageviews per minute. After a ...
0
votes
1answer
26 views

Varnish with separate auth check or auth check followed by Varnish?

I'm not quite sure if there's a term for the architecture I'm looking to set up, but I'll try to explain. I have an API and clients calling it with a session ID. The session ID is associated with ...
0
votes
1answer
20 views

Use a different path for Varnish Backend

I'm using Varnish 2.1 (on Fastly if that matters), and I want to do something kind of weird: I want to take a request to example.com/123456, and have fastly fetch the content from A_Backend, but on ...
0
votes
0answers
19 views

Varnish ignoring a backend

I have varnish setup with 2 backend servers with a round-robin director. The 2 backends are showing up in varnishstat and varnishadm as healthy. varnishadm output: Backend name ...
0
votes
0answers
30 views

Varnish won't start on reboot

I have varnish 4.1.2 installed, it starts fine from the command line but won't start when rebooting the server. The syslog shows that the address is already in use (port 8080). There's nothing else ...
1
vote
2answers
59 views

Django mobile template detection with nginx and varnish

I'm trying to get django-mobile (uses different template namespace depending on device type) when behind varnish and nginx. I thought I had it figured out, but with my current set up, it seems that ...
1
vote
1answer
17 views

Fail2ban logging correct ip on Varnish but still not locked out

I am trying to configurefail2ban to ban bad WordPress login attempts, but I'm not having much success. I am using WP fail2ban 3.0.0, which correctly logs bad login attempts on /var/log/secure, as far ...
2
votes
1answer
24 views

How to drop varnishncsa log if req.url matches

I've got a few load balancers that all perform health checks on a number of varnish instances. The health check on the varnish side consists of matching the request method and URL to return a 200 ...
1
vote
0answers
42 views

Varnish multiple vcl wordpress and magento

I would like to configure my varnish server to have different .vcl configurations according to the hostname. I have wordpress and magento in the same server apache+varnish 4.1.2 This is the ...
0
votes
0answers
47 views

Varnish cache server configuration HLS HTTP stream with failover

We are trying to setup Varchish caching server to cache HLS stream and deliver it to clients. Now we have received some sort of working VCL configuration to start from but from the graphs seems it ...
1
vote
0answers
47 views

How to show list of installed/loaded varnish vmod's names in command line?

I installed varnish 4.1 and compiled some vmods in a linux (ubuntu14 and centos7). Now I want to check list of installed vmod or loaded vmod to check if they are properly installed, recognized ...
0
votes
0answers
48 views

SSL Apache Virtual Host not work with Pound and Varnish

I have a problem with SSL and Apache2, all work great, port 80 work but with 443 VirtualHost are not recognized, the website goes direct to default config I use pound, varnish and apache Pound listen ...
0
votes
1answer
33 views

NameVirtualHost address is not supported, proceeding with undefined results

Apache Details Server version: Apache/2.2.15 (Unix) Server built: Aug 28 2015 22:18:57 Varnish varnishd (varnish-3.0.7 revision f544cd8) Copyright (c) 2006 Verdens Gang AS Copyright (c) 2006-2014 ...
0
votes
0answers
47 views

Un-chunking chunked response for varnish

I have a database query tool that returns data with Transfer-encoding: chunked. I'd like to use existing varnish infrastructure to cache responses from this tool, but varnish refuses to cache chunked ...
0
votes
1answer
93 views

Error 503 Service Unavailable Varnish/Nginx/SSL

I have a setup where Nginx and Varnish are just working fine. Multiple website running on one VPS. Nginx runs on port 8080. I added a SSL certificate to one of the websites to run it in https but ...
1
vote
1answer
32 views

Wordpress, Varnish, Nginx + php5-fpm - php5-fpm firing every hit.

I am hosting a wordpress site on a 512Mb digitalocean VPS. All is good, varnish is getting a perfect hit rate. Logged in users bypass. The only thing i am noticing is php5-fpm is firing every visit. ...
0
votes
1answer
67 views

Varnish 4.1: Is this the proper VCL code to use default localhost unless it's unhealthy, then fallback to director?

I just wanted to make sure this is the most ideal way to accomplish this. Here's the setup: Basically we have 3 servers "balanced" by DNS Round Robin. Varnish is configured on each server with a ...
0
votes
1answer
52 views

Varnish 404 error every few hours

I wonder if someone can point me in the right direction with this. Something changed on my VPS at my hosting provider and loads of things have been going wrong ever since. One of those things is ...
0
votes
2answers
33 views

varnish cache working good but creates new cache for every visitor

I have installed varnish cache in my server Caching and its TTL working good But the system create new cache object and age for every visitor How can I config the system to create one cache object ...
4
votes
1answer
125 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
1answer
36 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
2answers
32 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
27 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 ...
1
vote
1answer
29 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
3answers
73 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
28 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
121 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
29 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
129 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
92 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
14 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
129 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
27 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
83 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
50 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
243 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
240 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
35 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
60 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
56 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
42 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
43 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
93 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
34 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
173 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 ...