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

learn more… | top users | synonyms

2
votes
0answers
4 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
43 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
26 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
46 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
41 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
21 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
23 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
32 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 ...
0
votes
0answers
39 views

Is setting a Content Security Policy incompatible with Joomla's admin page?

I'd like to set a content security policy header for a Joomla website running on Apache 2.4 and served by Varnish. Using this configuration from h5bp and setting Header set Content-Security-Policy ...
1
vote
1answer
18 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
24 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
31 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
19 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
24 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
198 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
23 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
87 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
74 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
107 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
41 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
35 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
115 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
40 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
181 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
52 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
39 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
109 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
63 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
141 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
780 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
100 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
351 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
302 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
30 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
120 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
82 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
101 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
79 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 ...
0
votes
0answers
100 views

Varnish request throw HTTP 302 instead of 200

When making a request directly to my apache server, I can download the PDF file requested, apache returning a HTTP 200. When the same request is done through Varnish, I am forwarded back to a login ...
1
vote
0answers
32 views

NVA: rewrite before or after Varnish?

I'm planning an NVA server system (Nginx-Varnish-Apache), where request are routed through in that order. Apache would be serving WordPress CMS or similar. I'm wondering where to apply additional ...
1
vote
0answers
48 views

Varnish Redirect Subfolder Homepage to :8080 in Apache

I am using Apache and Varnish installed. I have a problem when accessing my subfolder homepage without trailing slash at the end of URL, it redirect to :8080. That will redirect to ...
0
votes
1answer
133 views

Configure Server to Initiate Http Keep-Alive

I have a set of clients that aren't including an http keep-alive header in their requests to my server. If I use something like Varnish to filter the incoming requests and add the keep-alive header ...
1
vote
1answer
154 views

varnish is caching logged in users pages and serving those pages

I set logged_in cookie when user login. If logged_in cookie exists then varnish will not cache the request. This is my vcl_recv sub vcl_recv { if (req.backend.healthy) { set req.grace = ...
0
votes
0answers
69 views

can't access magento admin with varnish

I installed Varnish 4.0 and Nginx on Ubuntu. I have a Wordpress installation and everything is OK with it. I have another domain for Magento but I cannot access the Magento administration. If I try ...
0
votes
1answer
52 views

Varnish backend slow-start

The situation: I'm using Varnish in front of some heavy loaded mod-php apache servers. When a cold (empty xcache, cold template cache) apache gets started, the server may overload because of too many ...
1
vote
2answers
107 views

Log API requests via Varnish cache

I have Varnish in front of a standard REST API. Requests must be authenticated with an X-Access-Token header. I now need to keep track of the requests for each resource against the access token that ...
1
vote
1answer
117 views

Errors while compiling Varnish 3 on ubuntu 14.10

I am new to linux and ubuntu and it is my first time to compile anything on linux. I am trying to compile varnish on ubuntu 14.10, but i got the following errors: Traceback (most recent call ...
0
votes
1answer
317 views

nginx loop redirect on varnish ssl implementation

I am trying to implement varnish on my ssl enalbled website. But i am getting loop redirect. This is how i am going varnish is listening on port 80; DAEMON_OPTS="-a :80 \ -T localhost:6082 ...
1
vote
1answer
404 views

Iptables PREROUTING to redirect port 80 through varnish not working

I try to use iptables to keep Varnish on port 8080 and Apache on port 80 and just preroute everything coming in at port 80 to port 8080. It isn't working. When I call the site on port 8080 everything ...