2
votes
1answer
32 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 ...
2
votes
1answer
157 views

Varnish as Reverse Proxy Server for Rubygems

I want to setup a cache server for Rubygems, as I'm currently based in Vietnam and the international internet connections are pretty slow. I have been trying to get this done via Varnish, but after ...
2
votes
1answer
1k 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 ...
1
vote
1answer
91 views

Using an existing varnish service for another server

In this case, having a server that runs a couple of websites with a varnish service configured as well. Now, on another server I run 2 wp multisites in a LAMP environment + W3TC Cache + APC, and now ...
0
votes
1answer
357 views

Varnish: Exclude section of page

Is there any way to exclude some webpage parts from cache? For example, I have Recent Additions block on my homepage which gets refreshed after every 15mins. I know there is something like ESI ...
1
vote
1answer
478 views

does varnish config include statement support wildcards?

After googling and briefly browsing varnish docs, I could not find a reference to this. Can I do for example the following in varnish vcl? include sites-enabled/*.vcl
1
vote
1answer
107 views

varnish3.0.2 rewrite the url howto

I have lots directories which have the same image "_a.png",like these: /data/images/{a,b,c,d} Because this, the varnish cache multiple copies. Now I want to rewrite the urls to one,like this: if ...
0
votes
2answers
525 views

reverse proxy that caches post requests

I understand that varnish caches "GET" and "HEAD" requests by default. My backend servers fail when I do a get request that is too long, so I made them respond to POST instead of GET. This works ...
3
votes
1answer
50 views

varnish delete least requested files

I see that varnish can be configured to set -smalloc or -sfile with a certain size. I want to set a file cache of 1G such that least requested files are deleted first when cache is full. Is this ...
1
vote
0answers
307 views

Varnish cached 'MISS status' object?

My site uses nginx, varnish, jboss. And some url will be cached by varnish, it depends a response header from jboss. The first time, jboss tells varnish doesn't cache this url. Then the second ...
3
votes
1answer
521 views

Using Varnish as load balancer

Varnish already support load balancing HTTP 1.1 and Web Socket requests, e.g. https://www.varnish-cache.org/trac/wiki/LoadBalancing Since we already using Varnish for caching purpose, are there any ...
0
votes
2answers
461 views

How to direct reverse proxy requests using wildcard vhosts

I'm interested in running a reverse proxy with 2-3 virtual machines behind it. Each internal server will run multiple virtual hosts, and rather than manually configuring each individual vhost on the ...
1
vote
3answers
1k views

Caching: Varnish vs fastcgi_cache on Nginx in a multiple websites envirnment

I have a setup of a VPS with several websites. Some of the websites are WP websites and some of them are other dynamic websites. I'm interested in adding a sort of reverse proxy/caching layer. ...
1
vote
1answer
2k 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
2answers
1k 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: ...
2
votes
1answer
141 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: ...
1
vote
1answer
629 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 ...
1
vote
1answer
2k 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
984 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 ...
4
votes
3answers
1k 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 ( ...
7
votes
5answers
3k views

Which reverse-proxies support HTTP/1.1 ETag and If-None-Match headers?

I'm developing a caching system for an ecommerce platform that will use a reverse proxy for caching. I plan to handle invalidation by using proper HTTP/1.1 headers. That is, I will set an ETag on ...
0
votes
1answer
341 views

nginx does not write to cache behind Varnish

I have nginx as a reverse proxy to a remote web server. Cache is written to file. However, when I place Varnish in front of it, nginx stops writing to cache file, which causes a performance hit and it ...
1
vote
1answer
285 views

Persistent web cache?

I'm building nginx cache on a development machine and try to copy the files to a server that has the same nginx cache settings. But nginx is not picking up my copied caches and overwrite my caches. ...
0
votes
1answer
1k views

how to make varnish listen on several ports

I have multiple virtual machines with two services on two different ports on each of them. I want to access to these service with url like http://virtual_url_1:80 and http://virtual_url1:8080 for the ...
0
votes
1answer
324 views

Using a reverse proxy to combine two sites by putting one under a URL prefix?

We have an existing web application at www.example.com. The marketing team has a hosted Drupal instance at marketing.example.com. Is there a reverse-proxy solution that would allow me to serve up the ...
1
vote
1answer
2k views

Where does Varnish usually go in a Rails web stack?

I have a production Rails application deployed on Unicorn with nginx in front for static file serving. I now need some features of Varnish and I'm wondering how to introduce it. Some people put ...
2
votes
1answer
2k views

Getting correct SERVER_PORT to php-fpm through nginx and varnish

The goal is to get PHP aware of the correct web-facing server_port. The setup is: nginx on port 443 reverse proxying to varnish on port 80 reverse proxying to nginx on port 8008 and running php-fpm ...
1
vote
1answer
607 views

Lightest IP geolocation technology for static site?

I run a site that is behind a Squid reverse proxy which delivers most of the content cached (including html, not only images, etc.). I need to show a different content for our users located in the US. ...
0
votes
1answer
545 views

varnish+nginx+php-fpm good combo? [closed]

does having varnish as a reverse proxy/cacher with nginx backend for dynamic content a good idea? im looking for a way to really speed content up when dealing with a ddos or get flood.
1
vote
1answer
1k views

I keep getting Varnish Guru Mediation 503 errors despite setting timeouts

I have the following backend setup: backend seanesopenko { .host = "seanesopenko.ca"; .port = "8080"; .connect_timeout = 60s; .first_byte_timeout = 300s; .between_bytes_timeout = ...
0
votes
1answer
501 views

Apache or Varnish reverse proxy to subfolder

I have a domain, site.example.com and I would like to reverse-proxy a web app in site2.example.com/subfolder. Users should access that app by using site.example.com/subfolder. Is it possible? I would ...
3
votes
1answer
983 views

How to utilize Varnish for A/B Testing and Feature Rollout?

Today we have our web layer exposed to the world. We would like to add Varnish in front of our web layer to accelerate the site and reduce calls to the backend. However, we have some concerns and i ...
0
votes
2answers
637 views

Has anyone seen an HTTP 500 error when HTTPS traffic going through Pound Proxy forwards to an HTTP page?

We have Varnish as our load balancer and reverse proxy cache for normal HTTP traffic. For HTTPS traffic, we use Pound proxy to unwrap the SSL and forward to Varnish, which then forwards to the ...
0
votes
1answer
570 views

Varnish's backend weight

Is there a way to specify a weight for a backend in Varnish? I need to be able to serve different page if my main backend is unaccessable.
3
votes
2answers
2k views

Varnish/Nginx/Apache

I am exploring the potential scenario for Varnish/Nginx/Apache implementations and have a few questions about this setup. I am looking to use all three in conjunction, not to replace Apache by Nginx. ...
1
vote
1answer
2k views

Can Varnish handle hundreds of thousands of requests per second? If not, can I cluster it?

I'm planning to have an architecture similar to: nginx - nginx - nginx - nginx \ \ / / varnish / | \ app server - app server - app server ...
0
votes
2answers
2k views

Varnish configuration, NamevirtualHosts, and IP Forwarding

I currently have a bunch of NameVirtualHost based websites, load balanced between 3 apache2 servers using ldirectord. I would like to insert varnish as a reverse-web-proxy between ldirectord and ...
3
votes
2answers
2k views

Varnish does not start properly (crashes after startup) with no error messages

I am running Varnish (2.0.4 from the Ubuntu unstable apt repository, though I have also used the standard repository) in a test environment (Virtual Machines) on Ubuntu 9.10, soon to be 10.04. When ...
2
votes
3answers
983 views

How do you cache web pages with a personalized header using caching reverse proxy such as Squid, Varnish, or Nginx

Pretty much every page of my website is dynamically generated. However they don't change that frequently (kinda similar to a forum page). So I'd like to cache them using a caching reverse proxy such ...
2
votes
1answer
4k views

Varnish VCL Reload Fails After Adding Second Backend

I have been running Varnish on my production server successfully for several weeks now. Now I'm trying to configure Varnish to use a second backend for certain requests. My original working VCL ...
1
vote
3answers
2k views

Getting live traffic/visitor analytics when using a reverse proxy

I'm in process of implementing Varnish as a reverse proxy for a Ruby on Rails app and I'm using Google Analytics (JS/client side script to record visitor data) but it's several hours delayed so its ...
3
votes
5answers
4k views

Nginx, Varnish, ESI - Will that work?

I've serveral backends (one is nginx+passenger) to combine via ESI. Since I don't want to go without gzip/deflate and SSL varnish can't do the job out of the box. So I thought about the following ...
3
votes
5answers
9k views

How many reverse proxies (nginx, haproxy) is too many?

I'm setting up a HA (high availability) cluster using nginx, haproxy & apache. I've been reading great things about nginx and haproxy. People tend to choose one or the other but I like both. ...
2
votes
1answer
2k views

Nginx running behind Varnish and x-forwarded-for, how do I fool nginx?

I have a setup where I'm looking at running nginx behind a varnish cache. I currently use apache instead of varnish and use x-forwarded-for to have apache tricked into thinking the remoteip is the ...
3
votes
6answers
1k views

Fail-over caching reverse proxy

Is there a way to configure varnish or any other caching reverse proxy, to serve pages from its cache when the back-end fails? At the moment, if the back-end goes down a 503 Service Unavailable error ...
5
votes
2answers
8k views

Varnish configuration to only cache for non-logged in users

I have a Ruby on Rails application fronted by varnish+nginx. As most of the sites content is static unless you are a logged in user, I want to cache the site heavily with varnish when a user is logged ...
1
vote
2answers
3k views

How does Varnish cache handle different domains?

I just started reading about Varnish and am considering using it as a frontend to my webservers. I have multiple domains on my webserver that fetch the same content when the same query strings are ...
103
votes
12answers
102k views

How to set up Nginx as a caching reverse proxy?

I heard recently that Nginx has added caching to its reverse proxy feature. I looked around but couldn't find much info about it. I want to set up Nginx as a caching reverse proxy in front of ...
1
vote
3answers
3k views

Logging behind a reverse proxy?

I am currently running Varnish as a reverse proxy in front of our development website, testing before deployment into production. One of the things I've had to come to grips with is logging: in a ...
13
votes
2answers
4k views

Varnish versus other reverse proxies

I'm working with an organisation that has deployed Varnish as a caching reverse proxy for all of their web traffic. Their traffic make up is a lot of customer-generated dynamic websites, with the ...