[squid-users] Serve JSON object on access denial?

From: Dimitry Golubovsky <golubovsky@dont-contact.us>
Date: Tue, 4 Mar 2008 12:34:56 -0500

Hi,

Is there any way to make Squid serve a JSON object when access to some
proxied resource is denied?

I use Squid as a reverse proxy to control access to CouchDB database
(which by itself does not have any access control yet). In the case of
error, CouchDB serves a specifically-formatted JSON object. I would
like to be able to serve a similar JSON object (with content-type
"application/json") if the proxy denies access, instead of a HTML
page.

Thanks.

-- 
Dimitry Golubovsky
Anywhere on the Web
Received on Tue Mar 04 2008 - 10:35:06 MST

This archive was generated by hypermail pre-2.1.9 : Tue Apr 01 2008 - 13:00:04 MDT