Caching (!) Proxy? Possible?


using Website Proxy with Virtualmin, I reckon, that if the Proxy-To-URL fails e.g. because the “real” server is down, also my proxy site will fail, as it won’t be able to pull any data from the original source. Therefore I was wondering:

Is it possible to set up a caching proxy w. Virtualmin, one that actually stores all the pages of the original site on the local proxy w. Virtualmin? Like a mirror, that keeps running, even if the original source is unavailable?

Thanks! :slight_smile:

Sure there are different ways of accomplishing this, one might be by using Varnish.

Varnish has a feature which enables you to use a “grace” period.

Varnish sits between the users browser and the server backend. You can create a setup using grace where if the backend is unavailable Varnish serves the content itself. Might be worth checking it out.

thanks you for that! Looks promising. Will try it out to see if it goes w. the virtualmin hosts.

Would be cool to have this functionality as some option within virtualmin to do what varnish does, just with a click in admin (admins = lazy :wink:

Cheers! :slight_smile: