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

learn more… | top users | synonyms

0
votes
1answer
10 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
27 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
25 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
0answers
27 views

Varnish breaks Wordpress visual editor TinyMCE

I am currently running multiple Wordpress 4 installs with a Varnish 3 + Apache 2.22 + PHP 5.4 stack, Varnish seems to break Wordpress WYSIWYG, TinyMCE. Therefore I can only use the "Text" editor. I ...
-1
votes
1answer
16 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: ...
0
votes
0answers
10 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
38 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
9 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
17 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
19 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
95 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
27 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
19 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
59 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
50 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
129 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
80 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 ...
-1
votes
1answer
50 views

Varnish with PHP FastCGI / Change FastCGI server port

I want to run Magento with Varnish Cache. So far my PHP runs as FastCGI. I am now trying to set up Varnish. And have a probably pretty stupid question. So as I understand Varnish will listen on port ...
1
vote
2answers
220 views

Varnish 4 Working Config (optimized) for Wordpress (default.vcl)

I have successfully set up varnish 4 on my nginx 1.6.2 it is working but as per the test on http://www.isvarnishworking.com/ it shows Varnish appears to be responding at that url, but the ...
0
votes
0answers
46 views

Varnish + Nginx and Wordpress, POST redirect not working?

I am having trouble with Varnish not redirecting to the right URL's of Wordpress backend. When I POST the username and password on the login page, it doesn't gets properly redirected, so I GET the ...
0
votes
0answers
23 views

Can't login users on Varnish 4

I am testing this wordpress varnish 4 config https://github.com/nicolargo/varnish-nginx-wordpress/blob/master/varnish/varnish4-wordpress The site is being cached and served, but seems that the ...
0
votes
1answer
49 views

Varnish not caching because of language cookie, how to correct behaviour?

I am using Varnish 4 + Pagespeed on Nginx successfully, but varnish is not hitting the cache because the site always pushes a language cookie, disregarding if user is authenticated or not. That ...
0
votes
1answer
252 views

How to make varnish 4.0 work with nginx and pagespeed

I am trying to setup Varnish 4 + Nginx with mod_pagespeed. I am using the following config for Varnish 4 as per this document : ...
0
votes
2answers
97 views

Are there any performace gains to using Varnish along php-fpm and nginx? [closed]

PHP-FPM 5.6 and Nginx 1.6.2 would no doubt give maximum performance, at-least speed wise. So, I would like to know if there are any pros/cons to adding varnish cache to gain probably few more speed. I ...
0
votes
0answers
104 views

Wordpress Nginx Php-FPM Varnish Setup Fix

Master Slave Database We are running a wordpress site on Nginx, Php-Fpm, Varnish, at the moment we cant access wp-admin wordpress backend or pages but posts are running fine. Also when there is ...
0
votes
1answer
19 views

Varnish 3 ignore the req.backend directive

Varnish3 is ignoring the req.backend directive. As explained on the documentation (here), I've set two backends, and the regex for redirecting the request to the correct one. By the way, seems liks ...
0
votes
1answer
41 views

varnish 4.0.1, Unknown command: “vcl”, but command is needed on header?

I am on Debian Jessie, Varnish 4.0.1 From the varnish 4 Wiki : "Starting with Varnish 4.0, each VCL file must start by declaring its version with a special "vcl 4.0;" marker at the top of the file." ...
0
votes
1answer
100 views

Varnish cache with NGINX files not updating WordPress

It seems that Varnish is missing or not validating cache properly. When I try and purge my cache, I get 200 OK Cache successfully cleared, but my page does not update. I am simply making HTML changes ...
1
vote
1answer
53 views

Varnish does not purge my requests sent by Plone

I have varnish 3.0.5 up and running, connecting to a Plone 4 backend. My requests are cached, but not purged reliably, actually only after expiration of the ttl. plone.app.caching is the addon, which ...
0
votes
1answer
315 views

Implement HTTPS in with pfSense, Varnish and Tomcat

Situation I have an ESXi Server hosting multiple VMs, including one for each pfSense, Varnish and Tomcat. They are configured like the following: pfSenseVM (Firewall, IP=10.0.0.1) NAT Rules from ...
0
votes
1answer
117 views

Varnish 4 service won't start because of selinux

I've installed varnish 4 on my new centos 6.5 box. I've activated EPEL repo to install varnish from http://repo.varnish-cache.org/redhat/varnish-4.0/ After installing and configuring my default.vcl I ...
0
votes
1answer
172 views

How can I setup varnish for testing purposes?

The Varnish docs state that Varnish is configured by default on port 6081, which is "great for testing purposes." https://www.varnish-cache.org/docs/trunk/tutorial/putting_varnish_on_port_80.html I ...
0
votes
0answers
21 views

Varnish does not work on other port

I installed varnish on port 82 , but it's not working , the browser show me "The connection has timed out" but i can telnet my server with 82 port , varnish listened on 82 and apache listened on 82 , ...
0
votes
1answer
30 views

Varnish Does not work

I installed varnish as well on my server , but the performance did not change , The http://www.webpagetest.org/ says caching system does not enable on your server , i'm using default configuration of ...
0
votes
1answer
57 views

Varnish : no different performance

I installed varnish on my centos server, but i did not get any more performance, my website loaded in 7 sec before installation it , and after installation it's still 7 sec, what is the problem? ...
1
vote
2answers
201 views

nginx + varnish, optimize caching urls for ssl and not

I have a working varnish cache for my websites, with the undesired side effect that requests for a domain with http are cached with a certain url, and requests for https with another url. That way I ...
0
votes
1answer
66 views

Varnish error: /etc/init.d/varnish: 50: /etc/default/varnish: -p: not found

I've installed Varnish on Ubuntu 12.04 x64 and want to use it with my Magento shop. Information: Magento 1.9.0.1 Varnish Cache 3.0.5 Magento Turpentine 0.6.0 I've followed the installation ...
0
votes
1answer
54 views

Mass 301 redirects with Varnish

I'm working on migrating a site to another platform. We have a Python script to handle the import and we're considering using Varnish for speed. I want to make sure all existing URLs remain functional ...
1
vote
1answer
167 views

How to optimize Varnish on top of Odoo?

I'd like to optimize an Odoo-installation with Varnish 4. Odoo uses Python / Werkzeug to deliver HTML. Odoo 8.0rc1 and Varnish 4.0.1-2~trusty on Ubuntu 14.04. Both Odoo/Varnish are installed on the ...
0
votes
1answer
237 views

Why is Varnish 4 getting slow after some time?

We've migrated Varnish from Version 3 to Version 4.0.1 (via Debian packages). Nearly the same configuration and memory setup runs flawlessly on varnish 3. However, with Varnish 4 there are large ...
-2
votes
2answers
40 views

Will Varnish recreate cache?

I want to cache pages on my nginx site for fast retrieval. Let's say every 5 hours I want to expire all the cache and have it recreated. Will Varnish make calls to the web-server and recreate cache on ...
1
vote
1answer
89 views

Elastic Load Balancer and Varnish on Each Node

We want to install Varnish on our nodes that are handled by an Auto-Scaling Group and ELB. These servers currently grow and contract based on load from 2-10 nodes. We do not want to have another ...
1
vote
1answer
158 views

Varnish Cache: Rewrite ESI include url if session is active

I'm looking to rewrite an ESI include url in Varnish. In my template, I have: <esi:include src="/esi/user.html" /> which just includes static content i.e. "Welcome Guest". If they login I ...
2
votes
1answer
70 views

NginX/Varnish and Auto Caching

Let's say we have a wordpress site example.com On our site, there are multiple products. Urls look like this: example.com/products/product-1/ example.com/products/product-2/ ...
1
vote
2answers
45 views

Varnish Disrupting Logins with Invision Power Board

I recently transferred one of my primary sites over to a WordPress installation, but unfortunately, this resulted in extremely high server loads. Originally, I was running a basic LAMP server with ...
0
votes
0answers
26 views

How to set varnish cache purge time

I want to set the varnish cache purge time to 1 hour. I was not able to find in .vcl files. Is it set via some system variables or needs to set somewhere else.
-1
votes
1answer
69 views

phpMyAdmin not working with Apache/Varnish

I'm trying to install phpMyAdmin on a dedicated machine with Apache 2 and Varnish (in front). But when I try to access /phpmyadmin, it redirects me to myserverip:8080 so access fails. I've already ...
0
votes
0answers
29 views

varnish4.0.1 storage not effect

l have a problem in varnish4.0.1.I choose file storage. my storage is not full, but varnishstat display that SMF.s0.g_bytes is full, and my n_object reached at a limit nums, why is that? here is the ...
1
vote
1answer
20 views

varnish and apache on separate servers

I would like to know if it is possible to install and configure apache on one server and varnish on another server so that we can alleviate the load on the apache server. If it is possible can someone ...
3
votes
4answers
572 views

Varnish on 80, nginx on 8080, on which port to put jenkins?

On my staging server, I have Varnish + Nginx. They are on port 80 and 8080. Given that I have to install jenkins, on which port I have to bind it ? (which is usually 8080 but it's already taken)