-2
votes
2answers
27 views

Will Varnish recreate cache?

I want to cache pages on my nginx site for fast retrieval. Let's say every 5 hours I want to expire all the cache and have it recreated. Will Varnish make calls to the web-server and recreate cache on ...
0
votes
2answers
94 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 ...
1
vote
3answers
76 views

Varnish Cache: How does Varnish play with other caching systems?

I'm considering installing Varnish cache in front of my forum platform to speed it up even further. It already runs Percona MySQL DB, PHP 5.5.8 (which has Opcode caching built in, and running) and ...
1
vote
1answer
258 views

Varnish stops listening on port 80 after few hours

I have configured varnish to listen on port 80 and nginx to listen on 8080. After around 24 hours of uptime, my site has been down for 22 hours. I checked in and found varnish isn't listening on port ...
1
vote
1answer
878 views

How to configure Varnish not to cache a particular folder?

I would like to set up Varnish as reverse proxy cache for Apache. How can I setup Varnish so that it does not cache content from a particular folder (and its subfolders), let's say ...
0
votes
2answers
778 views

How can I set up Varnish to cache only static content?

I would like to set up Varnish as reverse proxy cache for Apache. How can setup Varnish so that Varnish should serve all static data (jpeg, jpg, png, gif, ico, js, css, txt, pdf, gz, zip, lzma, bz2, ...
0
votes
1answer
154 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"; } # ...
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 ...
1
vote
1answer
61 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 */ ...
2
votes
1answer
2k 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
90 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
1answer
319 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 ...
2
votes
2answers
180 views

Varnish - Cookie

I have the following situation: On my site, javascript sets a cookie that contains relevant information for generating the markup. I therefore want Varnish to cache each page separately for each ...
0
votes
1answer
1k views

Caching similar to Varnish on Windows Server [closed]

I'm looking for a caching for IIS similar to the Varnish.. But as Varnish is not recommended on Windows, I would like to have suggestions as what are the other alternatives that can be used for ...
2
votes
2answers
823 views

Varnish going sick

I'm having trouble with Varnish, it works for a couple of views and then just goes sick... The weird thing is that it does work for about 20 or 30 requests. If I call apache directly it works fine. ...
2
votes
1answer
357 views

Using Varnish (only) for DDoS mitigation [duplicate]

My VPS is suffering from a (D)DoS doing a SYN flood with spoofed IPs. I'm right now searching from ways how to be able to defend (at least a bit) against it. It's running a DirectAdmin apache2 ...
2
votes
2answers
300 views

Varnish micro-caching

Micro-caching and Nginx can really speed up the app. Would it be possible to use micro-caching (or something similar) with Varnish?
1
vote
1answer
415 views

Configuring varnish and django (apache/modwsgi)

I am trying to work out why my application keeps hitting the database while I have setup varnish infront of apache. I think I am missing some vital configuration, any tips are welcome This is my curl ...
2
votes
2answers
437 views

Using nginx / varnish for SSL and Non-SSL pages

Disclaimer: I have posted this on Stackoverflow as well as I thought it may have fit better there. The link to the question is below if someone would like to answer there. -- I have the following: ...
1
vote
2answers
268 views

Varnish: Sending “If-None-Match”-Header to Backends?

I'd like to use etag caching directly in my application / verify the eTag in my Application. How is it possible to route the "If-None-Match" header to the backends? It seems that Varnish is cutting ...
5
votes
2answers
2k views

Main differences between SSI (Server Side Include) and ESI (Edge Side include)

I need to include dynamic content into static pages at web server level. The 2 options I have found so far are Server Side Include (SSI) and Edge Side Include (ESI). While the origins of SSI seem ...
8
votes
2answers
7k 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 ...
4
votes
1answer
328 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
2answers
463 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 ...
1
vote
3answers
850 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 ...
2
votes
1answer
469 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 ...
3
votes
1answer
125 views

Caching + webserver on the same machine?

I'm preparing the move of a live website from a shared server to a seperate server running just that one site. Right now we're getting lots of traffic and Apache is having a hard time keeping up. One ...
0
votes
2answers
178 views

Varnish and Browser Exceptions

I currently run a website behind a Varnish server, It contains a few browser conditions for Internet Explorer 6. Unfortunately Varnish is caching the first version it serves without taking into ...
0
votes
1answer
482 views

Varnish multi proxy via DNS config and regular expression

I would like to set up a proxy "Varnish" as a bridge between public and private addresses. I thought I could use varnish and DNS servers to map private to public. For example: http://service.domain ...
0
votes
1answer
428 views

caching server in front of apache tomcat

We have a website and it's current architecture is as follows: There's squid in the front which caches images. Then there is apache httpd with mod_rewrite enabled. httpd then talks to apache ...
1
vote
1answer
5k views

Can someone share their Varnish VCL to set expires in the future?

It seems that a dozen pages exist that tell you how to set your "expires" headers for files, but none that are actually correct. Right now, my VCL is: if (req.url ~ "^/media/") { set beresp.ttl ...
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 ...
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 ...
4
votes
7answers
2k views

Scaling large file downloads?

We currently deliver large (1GB+) files via a single Apache server, but our Apache server is extremely disk-IO-bound and we need to scale. My first idea was to simply duplicate this Apache server, ...