...
regex_map http://(.*\.)?flickr\.com/ http://real.flickr.com/ @plugin=custom_error.so @pparam=flickr
...
name flickr
500 /usr/local/error_conf/500.txt
501 http://xyz.com/501.txt
503-546 ./546.txt
Content-Language kr
Content-Charset iso-2022-kr
...
If a request for an external HTML object fails, an ATS default error body will be returned to the client. Additionally, an error will be logged with enough detail to help diagnose the issue (e.g. “Error 502 while requesting http://flickr.com/badpanda.jpg as configured on line y of config file z.”).
...