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 ...
1
vote
1answer
21 views
reverse proxy and caching for a website
I come from Europe and in my country there are really expensive webservers, so i have my VPS server in the USA. Now i need on one hand a website with local IP and on other hand fast webserver. So i am ...
0
votes
1answer
37 views
Varnish proxy redirects from domain.com to domain.com:8080
I got Varnish on port 80 before lighttpd on port 8080 as a cache. Sometimes when I go to page http://domain.com/ I'm being redirected to http://domain.com:8080. How to prevent this ?
0
votes
1answer
23 views
set expires header varnish, like apache directive
Does anyone know a way to add expires header to a response in Varnish, like Apache does? Using Apache directives you can set expire headers and set how much time from now they will expire i.e. 1 month ...
0
votes
1answer
34 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 ...
0
votes
1answer
39 views
Putting varnish in front of a mod_jk balanced Glassfish cluster
I am just trying to get varnish in front of Glassfish instances, which are load balanced with the mod_jk connector in Apache. But I don't really know how to combine them. The AJP_Ports for instances ...
1
vote
1answer
55 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
2answers
60 views
Weird varnish log output before crashing
Every once in a while, our varnish daemon stops responding and has to be restarted. Before I restart it, I dump the contents of the shared memory segment to disk using this command:
varnishlog -w ...
0
votes
1answer
85 views
Optimize php-fpm and varnish for a powerfull server
My setup is:
Intel® Core™ i7-2600 and RAM 16 GB DDR3 RAM
varnish+nginx+php-fpm+apc for a not very heavy WordPress blog with W3 Total Cache and CDN
My problem is that after 55 hits per second ...
0
votes
2answers
71 views
Run apache in default port
I have ubuntu 11.04 and my apache was running on localhost but I tried to install varnish and have a ride on varnish . So I followed this tutorial and made changes. But after install I saw apache is ...
0
votes
1answer
58 views
Adding Hostname as a Custom Varnish Header
I've several varnish cache servers (v2.1), and I'm looking to add the hostname in the headers in the response from varnish -- so I know which server is (or not) serving cached pages. Upon googling, I ...
4
votes
1answer
108 views
ratelimit POST requests
Im running a large wordpress multiuser site. I have a varnish cache infront of the wordpress application server. As it make no sense to cache POST requests, i am vulnerable to DOS using lots of POST´s ...
0
votes
1answer
40 views
nginx (http + https) on the front with varnish behind
I have have a nginx server serving http and https and I have varnish behind to cache the apache requests
nginx (80+443) -> varnish (6081) -> apache (8081)
when I serve pages using 443, pages are ...
0
votes
0answers
20 views
How do I match lines in varnishlog that are from the same request?
In the log below, how do I match the ReqEnd line with the relevant RxURL line?
14 ReqEnd - 1484517237 1326934145.873870611 1326934145.873947620 0.000064373 0.000023365 0.000053644
14 RxURL ...
0
votes
0answers
10 views
Increase varnish timeout for a specific path
I have a set of scripts on the /admin path that can take a while to execute, and cause Varnish to hit the timeout limit. Is there a way to increase the timeouts for a particular path rather than for ...
5
votes
1answer
192 views
The strange case of Mr. Time To First Byte
I've got a webserver on a Linode 1024 VPS based on
Ubuntu 11.10
Nginx 1.0.5
PHP 5.3.6 (with PHP-FPM, APC)
Varnish 3.0.2
And a couple of blogs there based on WordPress 3.3.1. One of them is a ...
0
votes
0answers
18 views
Infinite loop or Database connection error in Varnish
I have 3 Varnish servers in front and 9 backend webservers. one Varnish server is running 3.0.1 while other Varnish servers are 3.0.
The issue coming is some of the sites are not working when checked ...
0
votes
1answer
52 views
how to check the value of a cookie in varnish
I have a cookie for language. I want to check if this cookie is set and to check its value to redirect the user to specific page.
the cookie name is Lang and its value might be En,Fr,or Ar
if ...
0
votes
0answers
32 views
Unable to login through varnish cache
I am setting up Active Collab Site in my new server. The setup is like below
Internet> ---> varnish ----> apache
But i am not able to login to the site through varnish cache.. But i can login to ...
1
vote
2answers
93 views
Purpose of putting haproxy / varinish behind nginx?
In some setup, I saw someone put haproxy / varinish behind nginx, and forward the requests to backend (e.g. Passenger)
e.g.
Nginx <---> HaProxy / Varinish <----> Passenger / Apache
I never ...
0
votes
1answer
28 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 ...
1
vote
1answer
62 views
List of hosts in Varnish
I'm running a VPS with multiple different websites, and Varnish in front for caching.
However, some websites should not be cached.
Instead of making individual rules for each website, I would like ...
0
votes
2answers
212 views
Why cache static files with Varnish, why not pass
I have a system runnning nginx / php-fpm / varnish / wordpress and amazon s3.
Now I have looked at a lot of configuration files while setting up the system, and in all of them I found something like ...
2
votes
2answers
243 views
Is Varnish with nginx better than just using nginx? [closed]
I see a lot of talk about using nginx with Varnish and I do not understand why. Isn't nginx enough?
Nginx has SSI, has reverse proxy cache, is lightweight, has SSL, can work with cgi, fpm, etc.
...
0
votes
1answer
113 views
Varnish and nginx (Multiple site VCL configuration)
I have one VPS serving 2 Wordpress installations. Using Varnish > Nginx > PHP-FPM
Right now I have this in the conf.d folder of nginx:
domain1.com.conf
domain2.com.conf
A configuration example for ...
0
votes
1answer
143 views
varnish forward client IP-address to backend
I have set up varnish as a proxy to redirect HTTP-request to backend-servers running apache.
I would like to have the clients IP-addresses in my apache logs instead of the varnish server IP-address. ...
0
votes
1answer
170 views
NGinx vs Varnish as a reverse proxy in front of Apache w/php
I am using apache with mod_php to serve content. Mostly the content is fetched form memcache over the network. All of my images, css and js are already on a cdn
What are the pros and cons of putting ...
0
votes
1answer
42 views
Apache redirects to a different port for every directory
I have configured Apache virtual host to run at port 8000 and in front of Apache I have Varnish on port 80. The problem is if I paste this in my browser:
example.com/a_directory
I am redirected to ...
1
vote
1answer
76 views
Varnish as reverse proxy of Apache2 server, port redirection issue
I've been looking and there are a lot of people with the same problem, but there aren't a clear solution (or at least I hadn't find it).
I am using Varnish-Cache (3.0) as reverse proxy listening in ...
0
votes
1answer
202 views
Varnish + Plesk : vhost broken
I have an e-commerce site with 300,000 products and 20,000 categories. It is slow and currently in production. I decided to install Varnish to speed up. The trouble is that during installation, I got ...
1
vote
2answers
159 views
How to filter Varnish logs based on XID?
I'm running into infrequent 503 errors which appear hard to pinpoint. Varnishlog is driving me mad, since I can't seem to get the information I want out of it.
I'd like to see both the client- and ...
1
vote
1answer
59 views
Varnish on Debian - libvarnish.so.1 not found
I'm trying to install Varnish on Debian 6.0.3 and am getting the following error when I try to start the server
/usr/sbin/varnishd: error while loading shared libraries: libvarnish.so.1: cannot open ...
0
votes
1answer
68 views
how to get request body in varnish
I am currently working on a project based on varnish..
we write vcl and vmod. But the project need check the request body.
Buddies, How can I get request body in VCL or vmod with a C function?
Help ...
0
votes
1answer
96 views
Unable to compile latest Varnish on Debian 6
I just cloned the latest varnish git-repository to try and apply an enhancement (from git://github.com/varnish/Varnish-Cache.git)
All the dependencies listed on the website have been installed.
I ...
0
votes
2answers
125 views
Running Varnish on Windows 7
We are planning on using Varnish Cache 3.0.2 (latest version) for our production environment, however, for development we would like to run Varnish on our local computers, some of us have Win7.
The ...
7
votes
1answer
285 views
Poor load balancer performance on rackspace and centos
I am load testing different options for load balancing, and am getting poor results from Nginx, haproxy, and varnish. I have one 4GB load balancer at Rackspace, hitting 4x1GB app servers.
I'm ...
2
votes
1answer
400 views
Bypass cache for mobile user agents, VARNISH+NGINX+W3CACHE
Right now I'm running Wordpress w/ W3 Cache on nginx with varnish front end. I'm trying to use the WP Touch Pro plugin for wordpress to display mobile sites, but it is not working. Shows the desktop ...
0
votes
3answers
300 views
Is using both Nginx and Varnish at the same time redudant?
Disclaimer: I'm not an expert on either Linux, Nginx, Varnish or anything related to servers but I've managed to get a Linode VPS up and running, serving two blogs with Wordpress on them to different ...
0
votes
1answer
156 views
unknown load balancer performance with varnish
We're currently using Varnish because it does a good job caching, and I'm trying to get it to perform well on cache misses. My benchmarks are giving me results I don't understand.
I have 3 boxes ...
0
votes
1answer
44 views
Varnish purge on page request
I have zero experience with varnish. I want to setup varnish to do something very basic: I have two pages
http://mysite.com/
http://mysite.com/additem
I want to cache http://mysite.com/additem for ...
2
votes
1answer
108 views
Caching 404s - NGINX or Varnished?
I'm looking for a solution to cache 404s in long term (a few days/weeks) on the webserver. My current setup is NGINX with memcached_pass proxy and PHP-FPM to deliver uncached pages (PHP also writes ...
1
vote
1answer
51 views
Varnish debug lurker
I have varnish 3, with apache worker/php-fpm, and drupal 7.
Varnish is using high IO and I suspect this has to do with multiple repeated messages like
0 Debug - "lurker: 0xb7505470 1800 ...
1
vote
2answers
440 views
Configure php5-fpm for many concurrent users
EDIT: Added some configs and a clarification on how many is "many", as requested by anthonysomerset.
EDIT 2: Added fastcgi_cache to nginx config, as suggested by SleighBoy.
I run a server for a ...
2
votes
2answers
143 views
Caching huge files with varnish. Is it viable?
I have one server that provides access to some hundreds of files. All of them are really big (some have more than 10GB). These files won't change and are read only, but I'll need to provide access to ...
1
vote
1answer
80 views
Connection between nginx and Varnish
I am using nginx as reverse proxy with varnish in the background. I have LAMP fueling varnish. The problem I am seeing on Varnish server is that the connection from nginx is getting established ...
2
votes
2answers
159 views
httpd vhosts config (with Varnish) - 1 server /w multiple domains
I've been reading multiple questions about this topic but I can't seem to get it working...
I have a server running CentOS with HTTPD running 1 website under the default httpd root:
Listen 8080
...
0
votes
1answer
157 views
Fixing error 403 with Varnish cache
I've been running varnish (3.0.1) in front of Apache and during a spike in traffic two days ago all visitors to the site started to receive a 403 error. From Googling about I've found one thread which ...
0
votes
3answers
104 views
how to set php SERVER_PORT var to 80, behind varnish?
how to force php to read SERVER_PORT as 80, when apache listens on 8080 and varnish listens on 80 ??
if my apache vhost is set to 8080, SERVER_PORT will always be 8080, this is troubling me a little ...
2
votes
2answers
109 views
Varnish as a static file server for django
I want to use varnish to server static files directly from django, just for benchmarking purposes.
Does varnish support serving static files directly from filesystem?
I'm actually looking for nginx's ...
2
votes
1answer
164 views
Confused about caching solution: MemCache, Varnished, mod_cache, else?
I have a very heavy site in my server. The load of the server is always about 30-50 and sometimes it become even 150 and server work really hard. I'm looking for a caching solution that can increase ...
0
votes
1answer
77 views
Is there a good resource file for heartbeat/pacemaker to control Varnish?
We use the Varnish HTTP accelerator, and heartbeat. It would be good to have heartbeat aware of varnish so it can handle moving IPs and starting up varnish as one service and ensure that the route ...