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

learn more… | top users | synonyms

0
votes
0answers
14 views

Varnish, Apache + Wordpress High CPU Usage

I have a problem with Varnish. While it's working, CPU usage is increasing to 100% but RAM usage is completely fine. I've tried many different Default.vcl configurations but result is same. My ...
0
votes
0answers
9 views

Is there an S3 storage backend for varnish cache?

I want to run varnish cache in a docker container on AWS ECS. If the container dies and a new one takes its place the new one should have easy immediate access to the the cached data so it can ...
0
votes
0answers
6 views

Varnishstat backend fields

I am attempting to use zabbix auto discovery to list stats for varnish backends but I am having trouble running the varnish stat command for a specific backend. varnishstat -1 -f VBE this command ...
0
votes
0answers
24 views

Apache + Varnish = High CPU Usage

I've installed Varnish to our server a few hours ago and edited both default.vcl and varnish files as follows. The website is much faster now. However when i use the TOP commmand i noticed a seriously ...
0
votes
1answer
9 views

Varnishncsa for Varnish 4 split log by Vhost

In the varnish 3, varnishncsa can support -m option (-m tag:regex only list records where tag matches regex. Multiple -m options are AND-ed together. ). After upgraded to varnish 4, I cannot find the -...
10
votes
3answers
65 views

Best practice for proxying package repositories

I have a collection of CentOS servers in my corporate network. For security reasons, most servers do not have general outbound internet access unless it is a core functional requirement for the server....
0
votes
0answers
18 views

Varnish: Ignore cookies

I currently run a site running WordPress (in the document root) and a forum script (in site.com/forums/), and I'm using Varnish to cache WordPress. I don't, however, want to use Varnish to cache the ...
0
votes
1answer
33 views

Varnish Port Settings

I'm stuck at some point in the installation of Varnish. This is how it looked like before the Varnish: Nginx Reverse Proxy + Apache + Centos 6 64 Bit I installed the Varnish and set the ports as ...
0
votes
0answers
8 views

AWS Elastic Beanstalk with Varnish configuration

I'm a bit stuck with how to setup AWS EB with Varnish. I have a testing App environment (EB single instance) with Varnish working. In .ebextensions directory of my app I'm using this config to ...
-1
votes
1answer
29 views

Possibility of rewriting response bodies in different webservers (nginx, apache, iis, etc.)

I'm doing a personal research on the differences between commonly used web servers. I'm struggling to find clear answers when it comes to particular features and most importantly for me: ability to ...
0
votes
1answer
17 views

varnish vhost specific config?

(varnish-4.1.1 revision 66bb824) Many relatedposts exist on this so my apologies. what is the best practice if you need to use varnish with two sites with different requirements? Ive seen ...
1
vote
1answer
45 views

Varnish not working with last-modified

I'm new to Varnish and to reverse proxies in general. I'm testing Varnish in an application that works like a blog where I have a page with an "updated_at" that changes once the page is updated. As a ...
1
vote
1answer
12 views

Is it possible to return a JSON response by varnish if backend is down?

A JSON response something like as shown below should be returned if the underlying backend is down or something. { "msg" :{ "status": 2 } } Is this possible with varnish ?
1
vote
1answer
36 views

How to config mutiple domains with Varnish and nginx

I read this article but I can't make my case work http://stackoverflow.com/questions/3334023/configure-multiple-sites-with-varnish This is my problem I have 2 domain : mysite1.com and mysite2.com ...
0
votes
1answer
14 views

Configure Varnish on Ubuntu LAMP for multiple websites on single web server instance

I am hosting multiple websites in a single server instance. Now, I want to configure Varnish Cache on LAMP (Ubuntu server). Is it possible to configure Varnish Cache for each and every website within ...
1
vote
1answer
21 views

Varnish 4 BAN on PUT or POST

I need to purge or ban cache that has been modified by an unsafe request. I found a solution that appears to work for varnish 3.0; however I am on varnish 4. It seems this is no longer the correct ...
1
vote
1answer
10 views

Varnish disabled, but still add a custom header (hostname)

Why in Varnish 4.0 can't I see my custom header set on the response ? sub vcl_recv { // disable varnish for now return (pass); } sub vcl_backend_response { set beresp.http.X-Backend = "...
0
votes
1answer
25 views

Integrating Web Application Firewall into this architecture

I need some help figuring out how to implement a Web Application Firewall (WAF) in my existing architecture. Currently I have 2 HAproxy servers clustered using keepalived which are responsible for ...
0
votes
0answers
20 views

Magento Varnish cache warming with https (i.e. ssl)

I'm running Magento 1.9 on Ubuntu 14.04.4 x64, with a NGINX -> Varnish -> Apache setup and am using SSL everywhere. Everything works fine except when I try to warm the cache. I'm using the ...
0
votes
0answers
191 views

Magento2 Varnish + Nginx (SSL not caching)

I move the question on serverfault instead of Magento (https://magento.stackexchange.com/questions/117075/m2-varnish-nginx-ssl-not-caching) since I consider this topic more on server side ...
1
vote
1answer
31 views

Varnish Purge - Hard Refresh on Browser

We're using varnish to proxy/cache content on 2 web servers running drupal. With that said, everything seems to be up and in order, pages are being cached, drupal is able to make the purge request and ...
0
votes
0answers
26 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
54 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
86 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
17 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
36 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
49 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
33 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
29 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
41 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
50 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
65 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
34 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
27 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
63 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 default....
0
votes
0answers
92 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
58 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
76 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
38 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
78 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
148 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
88 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
110 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
34 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
164 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 http://example.com/foo/bar?...
0
votes
1answer
39 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
34 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
28 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
31 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 ...