Is it possible that the proxy server acts as web server when the real web server is down temporally

View: New views
2 Messages — Rating Filter:   Alert me  

Is it possible that the proxy server acts as web server when the real web server is down temporally

by higeon :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,
I built a squid proxy server to accelerate my web server because  the
web server has a very poor slow network(9600bps).
Is it possible that the proxy server still continually responses to
the web requests from the cache even if the real web server is down or
unavailable temporally ?
Thank you!

Re: Is it possible that the proxy server acts as web server when the real web server is down temporally

by Amos Jeffries-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

higeon wrote:
> Hello,
> I built a squid proxy server to accelerate my web server because  the
> web server has a very poor slow network(9600bps).
> Is it possible that the proxy server still continually responses to
> the web requests from the cache even if the real web server is down or
> unavailable temporally ?
> Thank you!

Yes possible.

If any of several things are true:
  1) objects requested are cached AND not expired
or
  2) web server sets Cache-Control: stale-if-error

You will also want collapsed forwarding.

These last two are available in Squid-2.7.
But not ported to Squid-3.x yet.

Amos
--
Please be using
   Current Stable Squid 2.7.STABLE7 or 3.0.STABLE20
   Current Beta Squid 3.1.0.14