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

learn more… | top users | synonyms

2
votes
0answers
10 views

Varnish: redirecting a percentage of traffic

I'm trying to measure separate statistics for two different versions of a web page. So I need to redirect a certain percentage of my web traffic to a different page than the one requested (i.e. 20% of ...
-2
votes
0answers
17 views

How to Purge Whole Domain Cache Via Curl Command? [on hold]

I am using Varnish Cache on Nginx. I want to create a php file that can purge whole domain's cache if I run it. How can I achieve that ? Thank you.
0
votes
2answers
21 views

Varnish: Cache all content until a certain date?

Is there a way I can configure Varnish to store everything under a certain path until a date that I set? My site updates once a month, so I'd simply like to serve cached content until then.
0
votes
0answers
24 views

Caching cookies with Varnish 4

I want to be able to cache pages that have a cookie. Let's say I have a cookie called "testcookie". If testcookie = 1 I want a page (cached), if testcookie = 2 it will have a different page ( i want ...
0
votes
4answers
34 views

Varnish 4 not caching

I am new at working with varnish. I installed it, I think i configured it correctly. In order to test this is what i did: I created a test page that only has the string "test". I went to the page ...
0
votes
1answer
46 views

Moving a web application to use HAProxy, Varnish, and nginx

I currently have 4 web application servers (running on application) on Rackspace that sit behind a Load Balancer (on Rackspace). In front of the Load Balancer. The application itself makes moderate ...
2
votes
2answers
79 views

Varnish with MediaWiki not caching

I'm trying to use varnish cache to cache a mediawiki page for logged in users. I use ubuntu 14.04, varnish 4.0.3 (port 80) and nginx as a webserver (port 8080). As a vcl I copied the configuration ...
1
vote
1answer
22 views

Varnish, setup to use 80% of the my disk space

I just want to validate my setup of using Varnish. I have dedicated machine with 500 GB, disk space and my objects that I am going to cache are going to be huge (~ 500 MB) in size each. I am going ...
0
votes
2answers
44 views

basic varnish 4.0 setup doesn't seem to work

[Apparently I was running varnishd as root] Now, I get this: [gideon@mywebsite ~]$ sudo varnishd -f /etc/varnish/default.vcl -s malloc,128m -T 127.0.0.1:2000 -a 0.0.0.0:8000 -d [sudo] password for ...
1
vote
0answers
56 views

Varnish keeps getting MISS when Nginx is backend server

I am experiencing a really weird situation where Varnish works fine with hitting directly to application server (Play server), but not working with Nginx as web sever. Working: Varnish:6081 => ...
0
votes
0answers
4 views

varnish - little delay after 5 seconds

I installed varnish on a hello world application, along with nginx, hhvm and mongodb. The only things that bugges me is that the first time when I access the url I get around 125 ms response time and ...
0
votes
0answers
55 views

Nginx Varnish 4.0 SSL Wordpress configuration redirects mydomain.tld to https://127.0.0.1

I have the following stack: (redirect http to https =>) https nginx -> varnish -> nginx http -> php5-fpm When I open my.url.com I get instantly redirected to https://127.0.0.1 Without varnish, ...
3
votes
0answers
23 views

Adding varnish causes IIS to slow down with less traffic?

We are trying to put varnish in front of our IIS 7.5 farm. Said farm handles 3 websites (SiteA, B and C) - varnish is going in front of A only. When we add varnish, we get a 75-90% hit ratio but our ...
2
votes
1answer
71 views

Varnish not caching website which have session

I tried curl -I domainname and here is the response. HTTP/1.1 200 OK Date: Tue, 21 Apr 2015 14:49:09 GMT Server: Apache/2.2.15 (CentOS) X-Powered-By: PHP/5.3.3 Set-Cookie: ...
0
votes
1answer
60 views

nginx or haproxy or varnish Multiple IP addresses, reverse proxy AND manual failover

Ok, so here is all that I'm trying to accomplish. Back Ground I have multiple IIS web servers, each running multiple web sites each with their own IP address. Each IIS "Web Site" through programming ...
0
votes
1answer
87 views

Cannot install Varnish 3.x on CentOs 7

I have a freshly installed Centos7 and I wish to install Varnish 3.0; according with https://www.varnish-cache.org/installation/redhat I have installed the repo varnish-3.0.el6.rpm but ... ...
0
votes
0answers
78 views

RedHat 6.6, Apache 2.2.15 and Varnish 4.0.3: Status Code 403 Forbidden on HTTPS/SSL configuration

I'm trying to configure Varnish to work with my SSL Apache configuration. Here's an extract of my httpd.conf file: Listen 8080 ExtendedStatus On NameVirtualHost 192.168.xxx.123:8080 Then I have ...
1
vote
0answers
24 views

Set default TTL in Varnish 4.0?

I am new to Varnish, and I am running v4.0 on Debian Wheezy. I would like to set a default TTL across my cache of 4 weeks (very static content). From reading the docs I think the answer is to set ...
0
votes
0answers
33 views

Varnish thrown 400 Bad Request nginx

Have two version of site e.g one is for india region i.e www.abc.com and another one is for US region i.e us.abc.com. From india if we try to access www.abc.com through OperaMini user agent site will ...
1
vote
0answers
49 views

Nginx proxy_cache / Varnish - parallel requests trigger multiple requests to backend?

I am looking for a HTTP reverse proxy that will handle HTTP live streaming use cases in a performant manner. Assume file/fragment sizes up to 4MB with a constant load of client requests for the same ...
1
vote
1answer
22 views

Short-circuit Varnish methods without skipping built-in methods

While configuring Varnish 4, I'm interested in short-circuiting inside vcl_recv, but I don't want to skip the builtin.vcl (née default.vcl) VCL logic. For example, given this VCL pseudocode: sub ...
0
votes
0answers
30 views

Varnish not probing backend for 302 correctly

I have a Varnish 3.0.6 server here that I'm using to cache some backend IIS servers. In order to monitor our application, I'm using a url that logs into our product, which gives a good indication that ...
0
votes
1answer
40 views

Varnish, some url's redirecting to :8080 in phpbb?

I'm using a LEMP server with Varnish so nginx is on :8080 and varnish is cached on :80. The mail site works brilliant, no redirects etc but in a sub folder I have a phpBB forum installed, some of the ...
0
votes
0answers
27 views

How to delete redirect ip to domain in varnish

Sorry for my English, I don't speak English very well. So, my problem is that when I put my IP address in a web browser, varnish will redirect it automatically into my domain name. But if I do the ...
1
vote
1answer
28 views

Can a Varnish director be queried for the number of healthy backends it contains?

Specifically in Varnish 3, is there a way to check if a director has any healthy backends? My use case is that I have a load balancer that is distributing traffic to 2 varnish boxes, which in turn ...
3
votes
2answers
255 views

nginx > varnish > hhvm

I have nginx on the front end interpreting ssl and redirecting all non https traffic to https: server { listen 80; server_name example.com www.example.com; return 301 ...
0
votes
1answer
26 views

Enable OPTIONS command in Varnish 4

Does anybody know the specific configuration directives for Varnish 4 which can enable this? If I do: curl -v 'http://SERVER/nps.json' -X OPTIONS Right now for my varnish I get back ...
0
votes
1answer
92 views

NGINX, PHP5-FPM, Varnish. WP-Admin becomes unresponsive after a while

wp-admin becomes unresponsive after like 10 hours of not being logged in. In order to get it working i need to restart php5-fpm. I'm using NGINX with PHP5-FPM and Varnish. This is my settings: ...
1
vote
2answers
106 views

Varnish vcl_fetch does not work

I'm new to configuring varnish. I am trying to replicate a varnish setup I made on AWS onto another server. Here's the scenario: I have 2 servers serving web content (Web1 and Web2), which is a ...
0
votes
2answers
125 views

OPcache breaks phpBB registration

I don't know what happended, but whenever a user tries to register himself on one of my phpBB forums nginx throws 502 Bad gateway, but if I disable OPcache everything works fine. This is the error ...
0
votes
1answer
91 views

Varnish doesn't work with session on PHP

I have got varnish installed on my server. I have a page on my site which i would like to get cached via Varnish. With fresh varnish installation, I created a PHP page with some content in it. loaded ...
0
votes
1answer
46 views

Use Varnish cache for one domain and not other domain on same server

I got varnish installed on my server and made following changes for varnish cache to work. Changes in httpd.conf : Listen changed from 80 => 8080 NameVirtualHost from *80 => *8080 The content of ...
1
vote
1answer
195 views

Change varnish 4 503 error

How can i change varnish 503 error? How can i customize it ? i'm using varnish v 4 it's now work sub vcl_synth { set resp.http.Content-Type = "text/html; charset=utf-8"; set ...
0
votes
0answers
54 views

Apache's mod_dir keeps redirecting to wrong Port

I have a setup with a HAProxy in front of a Varnish cache who requests an Apache2 server. The Apache is listening on an internal IP on Port 12345 and is configured with UseCanonicalPhysicalPort Off ...
7
votes
3answers
201 views

Getting 503 error from Varnish but varnishlog doesn't tell much

Running Varnish 4 and I'm occasionally getting 503 errors which I can't put my finger in. I've tried curling the backend directly and it's returning a response everytime so it doesn't look like the ...
0
votes
1answer
58 views

Varnish Issues - Not listening on 127.0.0.1 and certain pages returning 404

Have varnish running but it will only work if I use the IP address of the server in default.vcl instead of 127.0.0.1. backend default { .host = "xxx.xxx.xxx.xxx"; .port = "82"; } Certain ...
0
votes
0answers
13 views

Setup Server for Optimization [duplicate]

I've got my first Dedicated server and I would like some help with the Optimization of it. I am thinking of going a bit different than the regular setup and I'd like your feedback. Before we start, ...
2
votes
0answers
42 views

Incremental Subdomain Brute forcing?

Currently looking after a small varnish/nginx webserver group sitting behind an AWS ELB. Monitoring of the primary domain recently picked up a huge number of hits to non-existent sub-domain ...
0
votes
1answer
145 views

Varnish as a cache proxy on openshift-online : openshift limits number of requests from same IP?

I've created the following 2 openshift gear : varnish cartridge https://github.com/devop-mmcgrath/openshift-cartridge-varnish php 5.4 / mysql (symfony 2 app) I've configured a quite complex ...
0
votes
0answers
74 views

Varnishstat vs varnishhist hit ratio

I'm looking into our varnish logging and overall health and am getting conflicting information in regards to hit ratios from these tools. For about 5 minutes the hitrate in varnishstat is around 55% ...
0
votes
1answer
154 views

Should Varnish Hits Touch PHP?

I have a reasonably large Drupal site sitting being Varnish on a box with 4GB of memory. I had thought (hoped? assumed?) that standing Varnish up in front of Nginx/PHP-FPM would take the load off of ...
3
votes
1answer
907 views

Cannot install Varnish on CentOS 7

I am trying to install Varnish 4 on CentOS 7. I first added these rpm: sudo rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/jemalloc-3.6.0-1.el6.x86_64.rpm sudo rpm -iUvh ...
0
votes
0answers
116 views

error with configuration of Varnish

i got this error when i try to restart Varnish via SSH " service varnish restart" this the error : [root@mydomin sysconfig]# service varnish restart : command not foundnish/etc/sysconfig/varnish: ...
2
votes
0answers
483 views

Multiple Domains Name on one server with Nginx

I'm struggling to configure two different domains name on my dedicated server... I've already one DN configured like this in the vhost DOMAIN_1.net.conf : server { listen 127.0.0.1:8080; ...
2
votes
1answer
406 views

How to Enforce SSL in Varnish 4

I am aiming to redirect clients to a SSL-version of a site using Varnish. In Varnish 3 this could be done by the following in the VCL: sub vcl_recv { if ( (req.http.host ~ "^(?i)somesite.org" || ...
0
votes
1answer
36 views

Varnish round robin with different req.http.host for different servers

I have a varnish4 setup with 2 backend www servers. I would like to load balance between them in rr fashion but setting the proper virtual host for the proper server. sub vcl_init { new vdir ...
0
votes
1answer
148 views

Configuring varnish to write an apache error log with IP addresses

I am in the process of installing fail2ban on a webserver which runs Varnish. Many on the 'jails' require access to the apache/php error logs. One of the problems I have is that all of the refernces ...
4
votes
1answer
87 views

Puppet: How to skip restart during package upgrade until config is replaced?

I'm trying to get Puppet to upgrade our Varnish 3 servers to Varnish 4, a major update which requires an updated config file or it won't start. This is on Ubuntu 12.04. The Varnish module is ...
-1
votes
1answer
132 views

how to use varnish cache with set-cookie named mp3list and phpsessionid

I am new to php and i am interested to use varnish to improve site performance. I installed the latest version of varnish: 4.0.2 varnish HTTP/1.1 200 OK Date: Sat, 06 Dec 2014 07:24:47 GMT Server: ...
1
vote
1answer
104 views

What are the commands to get top MISSES and HITS from Varnish 4?

For work I am using Varnish 3 on CentOS, but at home I am using Varnish 4 on Ubuntu 14.04. At work I use these commands: Top hits: varnishtop -i rxurl Top Misses: varnishtop -i txurl But for some ...