Thanks for the replies and sorry about the delay in responding. This is what
we ended up using:
error_page 404 = @four_o_four;
location @four_o_four {
internal;
more_set_headers "X-Host: web4.ourdomain.com";
more_set_headers "Content-Type: application/json";
return 404 '{"status":"Not Found"}';
}
Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,250033,250095#msg-250095
_______________________________________________
nginx mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx