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

learn more… | top users | synonyms

0
votes
1answer
24 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
15 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
21 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, ...
2
votes
0answers
11 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
47 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
32 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
51 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
47 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
25 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
36 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
46 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
20 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
25 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
33 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
21 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
208 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
24 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
76 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
109 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
47 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
127 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
184 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
54 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
116 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
65 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
147 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
802 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
103 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
367 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
320 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
31 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
126 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
83 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
108 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
85 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
33 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
49 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
138 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
157 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
70 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
54 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 ...