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

learn more… | top users | synonyms

0
votes
0answers
92 views

Varnish bandwidth accounting per domain - How to do it?

Does anyone know is there way to do bandwidth account per domain on Varnish. Or is there a way to use some other system to monitor how many bandwidth consumed per domain? Thanks
0
votes
1answer
89 views

Varnish Working with Custom http response Headers

I am trying to read http response header that holds an "cacheable". For Example: if (req.http.X-Type ~ "cacheable") { unset req.http.Cookie; return(lookup); } I've Tried a lot of things ...
0
votes
0answers
80 views

How to set caching with cookie value in Varnish 3.0.3

I am trying to convert a part of code from the older 2.1.5 to version 3.0.3 Having trouble with vcl_hash where syntax has changed. Syntax from 2.1.5 sub identify_cookie { if (req.http.cookie ~ ...
2
votes
3answers
221 views

Caching PHP pages, Varnish, nginx, other?

I have a web application running on a low end box (1gb RAM), serving a mixture of static and dynamic (php) pages. These PHP pages are querying a MYSQL database which does not change often at all - ...
3
votes
1answer
804 views

How to improve Varnish performance?

We're experiencing a strange problem with our current Varnish configuration. 4x Web Servers (IIS 6.5 on Windows 2003 Server, each installed on a Intel(R) Xeon(R) CPU E5450 @ 3.00GHz Quad Core, 4GB ...
0
votes
1answer
82 views

Replacing Apache2 for Varnish as a reverse proxy

I'm having some troubles replacing a Apache2 reverse proxy rule for a Varnish ACL. The apache rule is: <Location /MySite> ProxyPass http://192.168.0.123/OtherSite </Location> ...
0
votes
1answer
153 views

php5-cgi gives 502 with varnish but is ok without

problem summary: php5-fastcgi works with nginx but doesn't work with nginx+varnish (502 Bad Gateway) does anyone have a suggestion of what I could change to get varnish working ? problem details: ...
0
votes
1answer
137 views

“Syntax error at 'input'” when restarting Varnish; something wrong with default.vcl

Here's the default.vcl, varnish configuration file, that I've built after lots of reading and referring: backend default { .host = "127.0.0.1"; .port = "8080"; } acl purge { "localhost"; } # ...
0
votes
2answers
153 views

I am having difficulties with apache after varnish installation

I am running since few years directadmin on centos, now I need a better server environment for our sites. I installed last centos version on a rackspace instance, installation of directamin with all ...
1
vote
2answers
47 views

Varnish keeps caching subdomains I ask it not to

I'm trying to configure varnish not to cache any domain that begins with "staging" using the pass method like so: if( req.url ~ "^(staging.)" ) I suspect I'm using VCL selectors wrong but after ...
0
votes
1answer
114 views

Calculating count and percentage for specific URL from Varnishlog

I was curious on how I would go about calculating a running percentage for specific URLs... For example, when varnishlog is executed you get a realtime output for information of incoming http ...
0
votes
4answers
784 views

Nginx - Wordpress Redirect Loop

I'm using nginx as a frontend for apache2. Apache2 will handle all dynamic content. This is my main file with nginx being a frontend for apache and having all dynamic pages forwarded to apache2: ...
0
votes
2answers
282 views

Varnish ESI not working

I have a configuration like this: - nginx port 80 - varnish (3.0.4) port 6081 - apache port 8080 Nginx takes the request and passes it to Varnish which then check the cache and then either returns ...
0
votes
1answer
393 views

Nginx, apache2, Varnish with PHPMyAdmin

I have an install of Nginx, apache2 and Varnish. I have setup the following code in my default.vcl so when I browse to my /phpmyadmin it doesn't redirect to 8080. sub vcl_fetch { if (req.url ~ ...
0
votes
1answer
38 views

Domain Not Being Served by Nginx

I have a 13.04 Ubuntu server with two associated ip addresses. Let's say for example the IPs are 123.456.789.111 and 123.456.789.222 and the server has two domains let's say example1.com and ...
1
vote
0answers
149 views

Rapid increase in n_lru_nuked objects in varnish cache with enough malloc to spare

We are using varnish 3.0.3-3.5 on amzn ec2 and it is allocated around 3G of malloc. It starts with normal caching of object but when it hits a certain no of object+objecthead(around 14k), n_lru_nuked ...
0
votes
3answers
225 views

Varnish Server : How to put in-between Top Loadbalancer and Below EC2 Web Servers?

I'm still kinda novice but now i'm on AWS/EC2 Redhat Machines. I have: 1x Load Balancer (Above) 2x EC2 Apache Web Servers (Below) Something like: LB | ------- | | Web Web Then ...
0
votes
0answers
190 views

varnishstat hitrate ratio is “0 0 0” and never increases

I've just set up a new Debian VM running varnish and it seems to work fine: when I use my hosts file to point www.mydomain.com to the varnish server's IP address, I can access my site and see the ...
0
votes
0answers
479 views

How to Configure Varnish on top of Apache using ISPConfig 3?

I'm using this tutorial and install varnish on top of apache. Varnish use port 80 and apache port 8080. In /etc/apache2/sites-available/ispconfig.conf I already set NameVirtualHost to: ...
0
votes
1answer
182 views

Varnish sending bad “Host” header to Apache

I'm in the early stages of testing Varnish 3.0.4 as a new front end for a web service. I have varnish configured to listen on port 88. For its backend it's using an existing apache server running on ...
1
vote
1answer
53 views

detect return code (mode) in varnish hook

In vcl_recv I decide whether to pass or lookup based on the existence of a cookie: sub vcl_recv { if (req.http.Cookie ~ "(JSESSIONID=)" ) { /* do not cache logged in users */ ...
1
vote
1answer
230 views

how to disable varnish X Forwarded For header

i am using nginx <=> varnish <=> apache i am passing client IP to varnish via nginx proxy_set_header X-Forwarded-For $remote_addr; but varnish also adding X-Forwarded-For as 127.0.0.1 so ...
2
votes
1answer
1k views

Purge varnish cache for a single url using varnishadm

Varnish is being used in a Wordpress website. I would like to purge Varnish for a single URL instead of a whole domain. With this command I can restart Varnish for the whole domain: varnishadm -T ...
0
votes
2answers
82 views

Web caching with SSL connection and dynamic contents

I have some questions about web-caching systems. If I use systems like Squid, Varnish as reverse-proxy in front of my architetture: Is possible to have SSL connection from user to my proxy and SSL ...
0
votes
4answers
844 views

connections on port 80 suddenly refused / server not responding

my dedicated server stopped responding to requests on port 80 today out of sudden, i havent touched anything in more than a month. its ubuntu 10, varnish + nginx + php-fpm, only 1 website. load is ...
-1
votes
1answer
122 views

Varnish memory management

I have a rather 'dumb' question regarding Varnish. I've been reading info on Varnish cache storage types and yet don't understand what would happen in following: Imagine we have 2GB of free memory. ...
0
votes
1answer
193 views

Varnish caching layer vs load balancer

We have around 10-15 different websites which at the moment are hosted on two Rackspace cloud servers with 4GB RAM. These two servers are totally independent of each other, we randomly choose a ...
0
votes
1answer
430 views

How do I get sticky session to work on varnish?

Here is my current config file. Some time it works sometime it doesn't. Note that my website doesn't have a session so I can't use that. backend gw001 { .host = "127.0.0.1"; .port = "9001"; ...
4
votes
3answers
809 views

Let varnish send old data from cache while it's fetching a new one?

I'm caching dynamically generated pages (PHP-FPM, NGINX) and have varnish in front of them, this works very well. However, once the cache timeout is reached, I see this: new client requests page ...
0
votes
1answer
60 views

Varnish Inconsistently Evicting Pages from Cache

In our varnish config we have a vcl_fetch function defined as follows: if (beresp.ttl > 0s) { /* Remove Expires from backend, it's not long enough */ unset beresp.http.expires; /* Set ...
0
votes
2answers
423 views

varnish error 503 service unavailable guru meditation

here is part of my varnish's configuration: backend(s) & director(s): # cat backend-app02b.vcl backend app02b { .host = "192.168.52.153"; .port = "80"; .connect_timeout = 1s; # ...
0
votes
1answer
67 views

Unable to get varnish to start

I cannot get nginx to start after changing my config file I'm very grateful for any assistance you can provide thank you :) #This is a basic VCL configuration file for varnish. See the vcl(7) # man ...
0
votes
1answer
179 views

apache proxypass to varnish instance returns localhost

I've got a third party hosted blog that I'm using varnish to cache. The rest of my site is hosted and served directly via apache, so I've d proxy pass…since the httpd proxypass points to the ...
0
votes
1answer
123 views

Can I use Varnish Cache with my cookies

I'd love to harness the power of varnish to cache my php intensive application which serves around 400k people per day. The application pulls in search data by firing off multiple threads which curl ...
0
votes
1answer
242 views

How to get Apache 301 redirects working with Varnish?

I'm trying to add a number of redirects from old domains to new domains which I have done before using simple 301 redirects in my vhost files like: <VirtualHost *:8080> ServerName ...
2
votes
1answer
151 views

varnishncsa does not show any output

I have varnsih setup on my RHEL6.x. While the varnish, varnishlog and varnishstats show proper data varnisncsa does not log any data even when run without any options defined. I have lsofed all the ...
4
votes
1answer
514 views

How do I set a varnish response TTL dynamically?

my php script is sending a header X_Cache_ttl: 1h and in my varnish config file I have sub vcl_fetch { if(beresp.http.X-Cache-ttl){ set beresp.ttl = beresp.http.X-Cache-ttl; } } ...
8
votes
1answer
708 views

How does Varnish deal with running out of storage?

I am using Varnish 3.0.3 (the latest as of this writing) with more or less the default install, using the following for storage: # # Cache file location ...
0
votes
1answer
60 views

How do I configure varnish for my vhosts

I have a centos 5.x server running Apache+Drupal with 13 vhosts. These vhosts are all Top Level Domains. Munin reports heavy swapping for a few days in a month and I discovered that these are mostly ...
2
votes
2answers
430 views

Ram issues with NGINX, PHP-FPM+APC and Varnish

I'm running a 512MB and i have lot of ram issues. I think is due to my configuration. root@s1:~# free -m total used free shared buffers cached Mem: 1024 ...
0
votes
0answers
61 views

Cache layer for Heroku-hosted mobile-server app

I am developing a mobile app, backed by a server hosted on Heroku. There will be a continual polling of the server by the client, to check for changes in state. To avoid hammering my Heroku servers I ...
0
votes
1answer
133 views

How to enable varnish daemon in Cygwin?

I've installed the varnish packages (3.0.2-1 or 2.1.5-1) in cygwin (for local testing of VCL on Win7 64bit) and want to start varnish listening on port 80 but the varnishd isn't available: $ varnishd ...
0
votes
2answers
133 views

301 re-direct www to non-www on NGINX with Varnish enabled

I'm really hoping someone can help me with this. After a lot of searching I haven't been able to find the solution. I am running my website on NGINX and have Varnish enabled however, when I try to ...
1
vote
1answer
270 views

Normalising vhost name from varnish for statsd

The setup I am collecting statistics from Varnish with Logstash, which is configured to increment statsd counters based on the vhost in the server logs and the result code. I also have carbon ...
1
vote
0answers
200 views

trouble with github behind Varnish caching servers

We are a development team in Europe (Berlin to be precise) that heavily depends on the availability of raw.github.com. Our CI server way to often (sometime in 50% of all cases) reports failed builds ...
1
vote
1answer
96 views

How to log a request to apache access log if it's cached by Varnish

I have a service based on parsing apache access logs, so I need to log there even when Vanish is turned on. No I just simply tell Varnish to do not cache specific urls: if (req.url ~ "(foo|bar)") ...
1
vote
2answers
74 views

Impact on various Linux commands on a Varnish server

I know Varnish use memory mapped technique for caching data in memory, what if I execute the following commands on a machine, are there any penalty on the overall Varnish's performance? e.g. Total ...
1
vote
2answers
193 views

Memory adjustments for magento with php5-fpm , Nginx, APC, Mysql

I am using magento with php5-fpm , Nginx, APC, and Varnish. When there is varnish hit, the load time is very good. But on varnish miss, the site takes toomuch time to load. I have seen through htop ...
0
votes
1answer
293 views

Varnish Cache and IPB (Invision Power Board) - admin accounts do not stay logged in

I have a cPanel Server running Varnish Cache - I use the plugin from unixy.net. I have a website on there that uses IPB and when Varnish is installed admin users will not stay logged in. The first ...
1
vote
1answer
299 views

Ignore certain URLs on Varnish Cache

I'd like that Varnish completely ignored certain URLs on my websites. I.e., www.site1.com/fileuploader and www.site2.com/fileuploader I have 4 websites on the same VCL, and all those websites are ...