Merge pull request #893 from aledbf/custom-errors-example

NGINX Ingress controller - Add example of custom error pages in nginx ingress controller
This commit is contained in:
Prashanth B 2016-05-08 14:35:34 -07:00
commit dba1b6005a
4 changed files with 158 additions and 1 deletions

View file

@ -216,7 +216,7 @@ In case of an error in a request the body of the response is obtained from the `
- `X-Code` indicates the HTTP code
- `X-Format` the value of the `Accept` header
Using this two headers is possible to use a custom backend service like [this one](https://github.com/aledbf/contrib/tree/nginx-debug-server/Ingress/images/nginx-error-server) that inspect each request and returns a custom error page with the format expected by the client. This images handles `html` and `json` responses.
Using this two headers is possible to use a custom backend service like [this one](https://github.com/aledbf/contrib/tree/nginx-debug-server/Ingress/images/nginx-error-server) that inspect each request and returns a custom error page with the format expected by the client. Please check the example [custom-errors](examples/custom-errors/README.md)
## Troubleshooting