Deploy GitHub Pages
This commit is contained in:
parent
f48a1935ce
commit
89c9353364
2 changed files with 4 additions and 4 deletions
|
|
@ -1025,8 +1025,8 @@ Each request to the default backend includes two headers:</p>
|
|||
<li><code class="codehilite">X-Code</code> indicates the HTTP code to be returned to the client.</li>
|
||||
<li><code class="codehilite">X-Format</code> the value of the <code class="codehilite">Accept</code> header.</li>
|
||||
</ul>
|
||||
<p><strong>Important:</strong> the custom backend must return the correct HTTP status code to be returned. NGINX do not changes the response from the custom default backend.</p>
|
||||
<p>Using this two headers is possible to use a custom backend service like <a href="https://github.com/kubernetes/ingress-nginx/tree/master/images/custom-error-pages">this one</a> that inspect each request and returns a custom error page with the format expected by the client. Please check the example <a href="https://github.com/kubernetes/ingress-nginx/tree/master/docs/examples/customization/custom-errors">custom-errors</a></p>
|
||||
<p><strong>Important:</strong> The custom backend must return the correct HTTP status code to be returned. NGINX does not change the response from the custom default backend.</p>
|
||||
<p>Using these two headers it's possible to use a custom backend service like <a href="https://github.com/kubernetes/ingress-nginx/tree/master/images/custom-error-pages">this one</a> that inspects each request and returns a custom error page with the format expected by the client. Please check the example <a href="https://github.com/kubernetes/ingress-nginx/tree/master/docs/examples/customization/custom-errors">custom-errors</a>.</p>
|
||||
<p>NGINX sends additional headers that can be used to build custom response:</p>
|
||||
<ul>
|
||||
<li>X-Original-URI</li>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue