Tagged Questions

Varnish is primarily a caching reverse proxy, but also exhibits load-balancing and backend checking mechanisms and is very widely used on high traffic websites. Varnish was designed from the ground to be a high performance reverse caching proxy and to not compete with the operating system on ...

learn more… | top users | synonyms

0
votes
1answer
26 views

Is it possible to add html/js to pages cached by varnish?

I have a lot of websites and want to get analytics from Google about all pages served by the cache. Is it possible to add javascript or html to the bottom of each page served by the cache? For ...
0
votes
1answer
41 views

Varnish hijacking user sessions

Client contacted us with problem with login system on one of pages we coded. Sometimes it happens that users log in as someone else. As much as we tried, we couldn't replicate it. I suspect Varnish is ...
2
votes
1answer
40 views

Varnish client.ip says 127.0.0.1

So I have a setup like Nginx -> varnish -> apache2 If I get a request with a static file it is sent through nginx to varnish and back to nginx again since its a lot faster than letting apache2 server ...
2
votes
0answers
20 views

Varnish: Select backend based on regex of hostname

Is it possible for Varnish to parse the hostname to determine which backend to use? I'd like to avoid having to do: if (url = 'backend1') { set req.backend = backend1; } .. for all of them. ...
0
votes
1answer
41 views

Varnish Cache - default TTL?

I have discovered that I can set the TTL in Varnish as follows in my VCL file: sub vcl_fetch { # 1 minute set obj.ttl = 1m; } But what is the default setting (assuming the backend server is ...
1
vote
2answers
71 views

Apache Bench Varnish Long Tail of results

I'm trying to configure Varnish in front of Drupal, and am just running some quick Apache Bench tests to see what sort of improvement I'm getting. The specific ab command I'm running is: ab -n 15000 ...
0
votes
0answers
76 views

Varnish Cache CLI Purge Single File?

These examples work to purge (first) a folder and the domain root varnishadm -S /etc/varnish/secret -T localhost:6082 "ban req.http.host == mysite.com && req.url ~ ^/fold/.*$" varnishadm -S ...
1
vote
1answer
39 views

503 with Varnish to HAproxy

We host multiple apps, on different app servers. What we have is HAProxy -> App Servers The App servers can be anything from PHP on Apache to Java app in glassfish. So we use haproxy to expose 1 IP ...
1
vote
2answers
162 views

Varnish and Connection Flood (DoS - DDoS)

I've been playing around with the Varnish cache server and I got my webpage up lightning fast, it gets 97 Points in Google's Pagespeed and 100 @ Pingdom's. I used Varnish (proxies to nginx), NGINX ...
0
votes
1answer
80 views

SSL with virtual hosts

I've 'inherited' a server setup which i don't quite understand. The server is an ubuntu box with a number of virtual hosts. I've checked out the config for each virtual host and there's no mention ...
2
votes
1answer
87 views

Load balance HTTP based on a percentage of traffic or requests?

I want to have v1 of my application in one pool and version v1.1 in another pool and then slowly ramp up the traffic going to pool two and reduce it to pool one. Can anyone show some concrete ...
0
votes
1answer
42 views

varnish error: child start failed

tail -f /var/log/syslog - May 1 14:45:11 server varnishd[1662]: Child start failed: could not open sockets May 1 14:45:17 server varnishd[1688]: Child start failed: could not open sockets - ...
-1
votes
0answers
23 views

is possible put proxy accelerator for external site?

I would like to speed up the pages on external sites, for example, display the page at the site www.sitea.com from www.siteb.com. I tried it with varnish and nginx but I'm not an expert and a few ...
0
votes
0answers
27 views

Varnish returning wrong backend

Having an issue with Varnish returning the wrong backend. I have several backends listening on ports 8080 through 8095 on vhosts in Apache. I configured my Varnish backends like so: acl purge { ...
0
votes
1answer
87 views

nginx proxy_cache: limit parallel requests to a backend

I am using nginx as a reverse proxy to my backend(s). Configuration is pretty basic, e.g. the core is just: upstream myservice { server 127.0.0.1:80; server 123.123.123.123:80; } location / ...
1
vote
1answer
131 views

SSL, Front-end caches, and web servers

I'm looking to add SSL to some sites. My current setup is varnish -> nginx -> python wsgi server. The varnish sits at the front and caches both static and dynamic content. The nginx server serves ...
1
vote
1answer
45 views

Pass PURGE requests to varnish via nginx

How can I configure nginx to pass a PURGE request from localhost to the Varnish backend? Currently, the script causes this line to appear in the nginx logs: 127.0.0.1 - - [23/Apr/2012:20:12:31 ...
0
votes
1answer
92 views

Varnish 3.0.2 and ISPConfig 3.0.4

I followed the tutorial The Perfect Server - Ubuntu 11.10 [ISPConfig 3] here. I'm running an Ubuntu 11.04 (Natty Narwhal) server with 1024 RAM on Rackspace. I've gone through and updated to ISPConfig ...
-1
votes
1answer
82 views

WordPress not working on Varnish + Nginx based Ubuntu VPS

I set up a Ubuntu based Linode VPS with Nginx and Varnish on it. However i am not able to access anything on the IP or site address. IP: 176.58.98.79 Site: http://www.articledexter.info When i try ...
0
votes
0answers
59 views

High varnish CPU load when combining it WordPress and nginx for multiple sites

I recently applied the following setup to install WordPress plus W3 Total Cache on an nginx server with a varnish frontend to achieve high scalability. It works great when I'm only running one virtual ...
-1
votes
1answer
71 views

Error message when trying to start varnish on centos 5.5

I just installed and configured Varnish to work on port 80, and Apache to work on port 8080. I am trying to start Varnish with the command service varnish start, but it gave me this error: ...
1
vote
1answer
35 views

Error message when trying to install varnish on centos 5.5

I am trying to install Varnish on CentOS 5.5 using command yum install varnish, but the installation procedure can't be completed because of this warning message: warning: rpmts_HdrFromFdno: ...
0
votes
1answer
149 views

Varnish reverse proxy, apache backend, forward IP is not working consistently

This is my vcl config file section related for IP forwarding: sub vcl_recv { remove req.http.X-Forwarded-For; set req.http.X-Forwarded-For = client.ip; .... (other configuration) } sub ...
1
vote
2answers
92 views

HTTP Caching Server that supports POST

I am hosting a REST service which is sending appropriate cache-control headers. I use Varnish as a caching server in front of my webserver. However, a limitation of varnish is that it doesn't support ...
0
votes
2answers
72 views

rewrite condition to target Via: Varnish 1.1

I have a Drupal site that uses Varnish. I am trying to redirect people that come to a url starting with /node when they view the site via Varnish. I have tried the following in the .htaccess file but ...
1
vote
1answer
460 views

Scaling a node.js application, nginx as a base server, but varnish or redis for caching?

I'm not close to being well versed in using nginx or varnish but this is my setup at the moment. I have a node.js server running which is serving either json, html templates, or socket.io events. ...
1
vote
1answer
126 views

Varnish 503 Guru Mediation errors with pfsense and healthy apache

We are running a pfsense firewall / load balancer with varnish as service, In front of Fedora linux webservers running apache. We are getting intermittent 503 guru mediation errors. We are a bit ...
1
vote
1answer
79 views

Varnish Running VCC-compiler failed on purge

I've been following this guide which uses this default.vcl. However, when starting Varnish I get the following error: * Starting HTTP accelerator ...
1
vote
1answer
78 views

Is it a risk to post my varnish default.vcl file publicly?

Recently, I solved a problem in my server by adjusting the default.vcl file. The problem is with wordpress... Another person also have that problem and have asked whether i can show my default vcl ...
0
votes
1answer
62 views

Can the apache2 module mod_pagespeed effectively replace an http proxy server like Varnish?

I'm testing mod_pagespeed on a varnished powered server and wondering a couple things: How can I test to see that they are playing nice with one another? Can mod_page speed effectively replace ...
0
votes
1answer
51 views

Configure varnish for invalidating cache based on url, and authorization header

I was wondering if it was possible to invalidate cached object by url. Say i have the url /api/0.1/user and the url /api/0.1/userFriends what i´d like to know, is if there is a way to make ...
0
votes
1answer
59 views

How to make Varnish not caching response if they do not have proper cache header?

Seems Varnish is caching too aggressively, e.g. I have a index.php does not send out last-modifieid, cache-control, Varnish still cache it. my default.vcl backend default { .host = "127.0.0.1"; ...
1
vote
0answers
92 views

Varnish returning 503, FetchError (could not get storage)

On the current setup we're running into a problem with Varnish, we're running a CentOS 5.7 x86_64 xenpv, with Cpanel WHM, hosted at VPS.net. Sometimes we will recieve a Guru Meditation from Varnish, ...
0
votes
1answer
135 views

Varnish purge is not working. Have some errors in syslog

In my server, I have varnish setup. I use wordpress and installed w3 total cache plugin. I have set that plugin to purge my varnish (varnish 3) cache. But its not working! In my syslog, there are some ...
0
votes
2answers
98 views

Why am I getting a low cach hit rate average in Varnish?

Any one know why we are getting a very low cache hit rate average when using Wordpress (With Varnish and Nginx)? Varnish stat shows : Hitrate ratio: 10 100 518 Hitrate avg: ...
0
votes
1answer
44 views

Varnish redirected my subfolder to :8080

I just installed varnish on my site and got this problem... If I go to my site (http://techhamlet.com/) and click on the top link for the forum, the browser takes some tme and then takes me to ...
2
votes
2answers
52 views

How much storage is varnish using?

I'm using a 1 GB file storage in my varnish instance, is there a command or anything to get the current usage of that gigabyte?
0
votes
0answers
27 views

In Varnish, is it normal for the number of freed bytes to be 60% of those allocated?

I have an installation of Varnish 3.02 on an Amazon EC2 Medium Linux instance in front of two relatively low-traffic websites. After an uptime of 2 hours, there are 3400 objects in the cache. Using ...
0
votes
2answers
83 views

How can I use varnish to generate a robots.txt file even for subdomain of the same site?

I want to generate a robots.txt file using Varnish 2.1. That means that domain.com/robots.txt is served using Varnish and also subdomain.domain.com/robots.txt is also served using Varnish. The ...
0
votes
1answer
438 views

Best way to deploy my node.js app on a Varnish/Nginx server

I am about to deploy a brand new node.js application, and I need some help setting this up. The way my setup is right now is as follows. I have Varnish running on external_ip:80 I have Nginx behind ...
2
votes
1answer
113 views

Combining Heroku with custom external services (e. g. Varnish or Postgres on EC2)

I'm planning to set up a Django site on Heroku. It will run on Heroku's Cedar stack, which allows Python apps, but doesn't include or support HTTP upstream caching with Varnish like the other stacks ...
1
vote
1answer
43 views

Is it normal to see two varnishd processes?

I'm running Varnish 3.x on a RHEL5 server. After starting varnish, ps ax |grep varnish gives: [root@ip-... ec2-user]# ps ax |grep varnish 2747 ? Ss 0:00 /usr/sbin/varnishd -P ...
0
votes
0answers
21 views

How do I filter varnishlog output to a certain backend?

We run varnish with several different backends. I am currently trying to debug some behaviour specific to one of the backends but can't see how to filter on that. Is there a commandline switch?
2
votes
2answers
272 views

Avoiding Varnish Hitting Magento Cookies - VCL

Hello to serverfault users, I would like to kindly ask someone to help me configure varnish for magento. Using command: varnishtop -i TxHeader -I Cookie , following info show: TxHeader Cookie: ...
1
vote
1answer
147 views

Varnish doesn't work with Apache Virtualhosts

I've setup Varnish as a reverse proxy on port 80 before Apache 2.2.22 + VirtualHosts on port 81. When I enter my websites from port 81 it's all ok, then when I try to enter from port 80 I got Apache2 ...
0
votes
1answer
213 views

VCL - configuration for Magento and Varnish 3.0.2

I would like to kindly ask if there's someone who can help me configure Varnish for Magento to reach far more hits. My current ratio from varnishstat is: cache_hit=271 cache_miss=926 I'm kindly ...
1
vote
1answer
193 views

sub vcl_recv | Magento + Varnish

I would like to kindly ask someone for help. I browsed a lot of pages containing Varnish tutorials and sample VCL files, but I can't find anything related to configurating Varnish for Magento (at ...
0
votes
3answers
294 views

Good single server solution for Magento?

I am setting up a single Debian server serving Magento with Mysql. High load is expected (millions of hits per day). I've been reading various people's comments and found so many different setups but ...
1
vote
1answer
776 views

nginx with Memcache Vs Varnish

I was wondering if anyone has any comments / benchmarks / suggestions on Varnish Vs Memcache when used to serve content (usually 2-5kb JS file depending on the parameters in request; thousands of diff ...
1
vote
2answers
147 views

Varnish only cache assets from single session

Currently I manage to configure varnish to cache items from 1 user, but the when the second users comes in varnish fetch another asset from Apache. How can I cache static assets behind magento ( ...

1 2 3 4 5 6