Search squid archive

Serve JSON object on access denial?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux