Forum

ReverseProxy cache

Martijn
17 June 2013, 14:06
I am considering to use Hiawatha for a CDN setup.
At the moment the webroot of the sites are on the same disk so Hiawatha and Apache share the same webroot.

However in the future Apache will not be on the same server.
I would like to have the option Nginx also has:

proxy_cache and/or proxy_store.

When a file which is served via reverse proxy you have the ability to save it in the nginx cache or store it forever with proxy_store.

This would be ideal for me to make origin pull cdn.

Hiawatha version: 9.1
Operating System: Debian 6.0 32 bit
Martijn
17 June 2013, 14:39
Maybe I'll try it first with a setup like this:

http://www.saotn.org/origin-pull-cdn-with-php/

And instead of htaccess toolkit and a cgi handler (php or python).
Martijn
18 June 2013, 13:40
Stil though a request.

Is it assumable that Hiawatha will get disk cache instead of memory cache, for the reverse proxy part, in the future?
Hugo Leisink
18 June 2013, 14:32
No, not very likely. Why?
Martijn
18 June 2013, 14:41
It would make an excellent reverse proxy cache.

If you want to build your own origin pull cdn it is very handy.
I know Hiawatha can cache files with reverse proxy but is limited to 100MB memory and 1 minute lifetime.
That is not suitable if you run multiple sites for cdn.

http://blog.unixy.net/2010/07/how-to-build-your-own-cdn-using-bind-geoip-nginx-and-varnish/
This topic has been closed.