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

learn more… | top users | synonyms

1
vote
1answer
257 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
105 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
93 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
37 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.
0
votes
0answers
39 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
33 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
611 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)
0
votes
3answers
2k views

Varnish doesn't seems to be doing anything

I would highly appreciate an input on whats going wrong here: Running Magento on Ubuntu 14.04 x64 + Nginx + Mysql + Php5-FPM Please double check my steps so maybe you could help me point what's ...
0
votes
1answer
398 views

Purge varnish(4) cache

How purge all cached pages on a v4 varnish server ? I found this in documentation but how apply the vcl_recv command ?
1
vote
1answer
115 views

Varnish how to clear cached data for removed apache virtualhost?

I have Varnish setup for a server that serves multiple webservices. Now I wanted to remove one of these webservices, so I removed the files for this webservice from the server, removed the Apache ...
0
votes
0answers
56 views

Missing objects in 50x error page in varnish

I use this code to costum 503 error page in Varnish. if ( obj.status >= 500 && obj.status <= 505) { set obj.http.Content-Type = "text/html; charset=utf-8"; synthetic ...
0
votes
0answers
50 views

Varnish “it works” page on all domains

I installed Varnish on my virtual server(Debian 7.0 x64) Digital Ocean and I followed their tutorial here. The problem is that on all my domains and subdomains, I get the it works message. I tried ...
0
votes
0answers
33 views

How to do a redirect in Varnish 4.0

The method at wiki used to work but it's outdated now for Varnish 4.0 I wonder how would i do a redirect in varnish 4.0 now that obj is readonly.
0
votes
3answers
3k views

Varnish won't start as service but works fine from command line?

We're trying to setup a varnish on a Cent OS 6.5 64 but can't get it working as a service. What could be the reason for the following error? [root@server]# service varnish start Starting Varnish ...
0
votes
1answer
160 views

varnish wordpress comments

On my server I have installed Varnish in front of nginx, to serve static files faster. When using my site I have found following bug: Every comment on my wordpress blog is coming from localhost ...
0
votes
0answers
27 views

Get a specific answer as a result from helthcheck varnish

I want to make a condition. The backend is healthy only if i get as a result "alive", else even it get a result, it would be not healthy. backend test { .host = "192.168.1.100"; ...
0
votes
0answers
36 views

SoftPurge doesn't work correctly in varnish

I am trying to use Softpurge mentioned here: http://www.smashingmagazine.com/2014/04/23/cache-invalidation-strategies-with-varnish-cache/ I run in terminal the following command: curl -X PURGE ...
2
votes
1answer
76 views

Varnish config to fallback to another port

I am playing around the different config setups. Currently I have Varnish-cache in port 80, Apache2 in port 70 and Nginx in port 90 in the same machine. The Varnish is configured in such way that it ...
0
votes
1answer
1k views

“service varnish stop” doesn't actually stop Varnish

I'm running Amazon Linux. I originally installed Varnish 3 on this box, but have now installed Varnish 4. sudo varnishd -a 0.0.0.0:80 -f /etc/varnish/default.vcl ...works just fine to start ...
1
vote
1answer
157 views

Varnish: How to cache for failure, always ask backend if healthy?

I want to configure varnish (still on version 3) in the following way: If the backend is available, every request should go to the backend, so no cached results should be used. If the backend is ...
0
votes
0answers
33 views

Can not analyze output from Squid and varnish

I'm using one Squid server between tow cache server. I get from headers following information: X-Cache MISS, HIT from cache-zz X-Cache-Age 515 X-Cache-Control public, max-age=3600 X-Cache-Lookup HIT ...
0
votes
1answer
476 views

Real IP addresses from Varnish + Cloudflare

I'm trying to edit the default.vcl file to get the real client IP addresses to show up in my Wordpress. I found this online and I read a lot of pages on this but have failed to make this work. I'm ...
1
vote
0answers
51 views

Odd behaviour with varnishlog and stream redirecting

I wrote a helper to debug varnish installation and have used it on both production and development server. The odd thing is, I encountered different behaviour even though the setup is nearly identical ...
0
votes
1answer
428 views

Random 502 errors with Varnish

I have a varnish 4 in front of an Apache web server. All is good, except i have some random 502 errors. What is strange is that there is nothing in the varnishlog file for this error ! (all others ...
1
vote
0answers
74 views

Cant access varnish without www

Yesterday i installed varnish and memcached on my CentOS 6 32-bit VPS server for my magento store, when i go to www.my-website.com or http://my-website.com it works, but when i type in firefox ...
1
vote
2answers
4k views

Getting “The page you are looking for is temporarily unavailable. Please try again later”

I have a vps running Ubuntu+LEMP+Varnish. Everything was fine untill I updated the server software. Now I am getting "The page you are looking for is temporarily unavailable. Please try again later" ...
0
votes
1answer
238 views

round-robin director ALWAYS directs request to the same backend

I've set up one server with Varnish as a load balancer and two servers running nginx/unicorn/sinatra for demo purpose. All three servers are accessible! My varnish vcl file: backend web2 { .host = ...
0
votes
1answer
565 views

Varnish installer cannot find PCRE when it is already installed

I am trying to install Varnish-Cache 4 on my Mac OS X 10.9.3. But I get this error: checking for PCRE... no configure: error: Package requirements (libpcre) were not met: No package 'libpcre' found ...
0
votes
0answers
545 views

apache + varnish + cloudflare Log IP's

trying to log the real ip of the visitors to a site, with a server running apache, varnish and cloudflare. im currently logging the cloudflare server IP's from visitors, after altering the ...
0
votes
0answers
139 views

Varnish stopped working after changing ip address of backend

A month ago I installed Varnish and Drupal on separate machines and could see that varnish was serving pages. A few days back I changed the ip address of the backend in my default.vcl to point to ...
0
votes
1answer
320 views

DreamPress WordPress site Varnish Cache Error

Every now and then, often when I write a post on my Dreamhost DreamPress WordPress blog I get this Varnish related error: Error 503 Service Unavailable Service Unavailable Guru Meditation: XID: ...
1
vote
0answers
77 views

varnishncsa not logging custom headers

I'm using Varnish 3.0.2 on a Debian Wheezy system. I'd like to be able to set custom headers and have their contents appear in the request logs. However, although I know the headers are being set ...
1
vote
2answers
2k views

Varnish + Nginx + multiple IP addresses

This is my first shot at making Varnish work on my dedicated server which hosts 2 domains with 2 separate IP-addresses. My simplified setup is as follows: Nginx conf server { listen ...
0
votes
0answers
284 views

Horizontal Versus Verticale Scaling for Large Scale RoR Application (High CPU and Memory Usage)

We are launching a high demand (several hundred simultaneous users) Ruby on Rails application and we are trying to determine the best way to scale. Currently, we have a setup that follows this ...
1
vote
2answers
780 views

Varnish as a web server

I'm looking for a way to configure Varnish to handle HTTP request within Varnish. More specifically, for specific paths(say under /foo/* ), I want Varnish to respond with 200 HTTP status code and ...
1
vote
1answer
47 views

Varnish to Vsites on Apache servers

Can anyone advise of a VCL conf that redirects (inside LAN & LAN DNS) to get to multiple named hosts? i.e. http://x.ourdomain.com = IP of Varnish Server = redirects to LAN host (i.e. 10.0.5.1) ...
0
votes
2answers
365 views

Varnish ACLs Behind Load Balancer Based on Client's IP

In the following setup: Client -> LB -> Varnish I would like to configure Varnish acls to take certain action based on the Client's IP. The LB sends the client's IP in a variable called ...
2
votes
1answer
427 views

Varnish + Pound on Apache 503 Errors

I'm getting a lot of seemingly random 503 Service Unavailable errors on my Varnish + Pound setup on Apache. I have no idea where to start or what the problem is. I've searched the web a ton and all ...
2
votes
1answer
275 views

Varnish SMS allocation request generate HTTP 503

Sometimes my application return a HTTP 503 error to a client. The only clue I have is that when it happen, Cacti reports a peak of Varnish SMS Allocation requests. After some research I may have ...
1
vote
0answers
172 views

varnish - multiple catch-all domain names

In order to avoid setting up one backed per subdomain, I am specifying a catch-all regex string per domain name, as follows: backend domain1 { .host = "10.10.10.5"; .port = "80"; } ...
1
vote
1answer
47 views

Server Log Format

I'm trying to understand this server log line from cache_access.log. What does each field represent, specifically why are there three IPs listed and what does each represent? [HIT - - - -] ...
0
votes
1answer
260 views

Ignore utm_* values with varnish?

Can I 'ignore' query string variables before pulling matching objects from the cache, but not actually remove them from the URL to the end-user? For example, all the marketing utm_source, ...
1
vote
1answer
223 views

Does varnish count a restart if all backends in a director are sick?

My varnish setup looks like this (obviously I've simplified): director default round-robin { { .backend = me! } } director peers random { { .backend = peer1 } { .backend = peer2 } { ...
0
votes
1answer
126 views

Block specific URI with Query String in Varnish

Can someone help to block an URL which has querystrings as part of it in Varnish ? For eg: /abcd.php? Blocking /abcd.php works good yet with ? I'm able to access the page Thanks, Raj
0
votes
0answers
297 views

Nginx with wordpress refused varnish static content requests

I just added another wordpress site to my ubuntu server. 2 wordpress sites, not multisite. They use 2 different fpm pool with same config. Their Nginx config files are basically identical except the ...
0
votes
1answer
311 views

SSL Certificate implementation for a stack that has varnish and multiple NGINX webservers

My current stack has Varnish -> NGINX (2 servers) running Drupal -> MySql. All static content is cached and served by Varnish over HTTP. However when a user signs-up and wants to purchase a plan the ...
-1
votes
2answers
1k views

Where will load fall using Nginx, Varnish, and HAProxy? [duplicate]

We are looking into scaling our servers and I am not sure where load will fall as visitor count increases. I have one HAProzy load balancer, that proxies to two Varnish Nginx static content servers. ...
1
vote
1answer
932 views

Varnish 3 to 4 upgrade config changes

Can anyone who actually understands what the upgrade document states do a how to or a straight modification of a popular vcl, so people who don't have as much experience and pretty much just use these ...
2
votes
0answers
820 views

Varnish 3.0.5 round robin director not balancing

I have an architecture with two varnish servers sitting in front of 5 webheads. Each varnish server is configured with a round robin backend director, but at times of moderate to high load varnish ...
0
votes
1answer
329 views

Redirect logged-in users to https, anonymous to http using Varnish+Apache

I've got a server with Varnish in front of Apache in front of Drupal. What I'd like to do is redirect my login form to https (easy enough), then redirect all logged-in (authenticated) users to https ...