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

Reply via email to