Update docs
This commit is contained in:
@@ -191,6 +191,7 @@ You can customise the responses that IPP sends for invalid requests. For example
|
|||||||
- Drop the connection entirely (no response).
|
- Drop the connection entirely (no response).
|
||||||
- Redirect to a new website.
|
- Redirect to a new website.
|
||||||
- Send a different status code.
|
- Send a different status code.
|
||||||
|
- Send a custom 404 page.
|
||||||
- And so on...
|
- And so on...
|
||||||
|
|
||||||
See [Custom responses](docs/custom-responses.md) for more details.
|
See [Custom responses](docs/custom-responses.md) for more details.
|
||||||
|
|||||||
@@ -19,6 +19,8 @@ Possible options are:
|
|||||||
| `null` | `null` | `null` | Drops the connection without responding. |
|
| `null` | `null` | `null` | Drops the connection without responding. |
|
||||||
| `false` | `boolean` | `false` | Responds with the default status code. |
|
| `false` | `boolean` | `false` | Responds with the default status code. |
|
||||||
|
|
||||||
|
If you want to send a custom 404 page, you would do that with either of the below options - using a [custom function](#custom-function), or through your [reverse proxy](#customising-the-response-using-your-reverse-proxy).
|
||||||
|
|
||||||
## Custom function
|
## Custom function
|
||||||
|
|
||||||
If you want to go even further, you can write your own custom function. Do this by taking a copy of the `app/dist/invalidRequestHandler.js` file,
|
If you want to go even further, you can write your own custom function. Do this by taking a copy of the `app/dist/invalidRequestHandler.js` file,
|
||||||
@@ -53,6 +55,8 @@ If you wanted to drop the connection completely without responding at all, you c
|
|||||||
|
|
||||||
### Apache
|
### Apache
|
||||||
|
|
||||||
|
Show a custom 404 page:
|
||||||
|
|
||||||
```
|
```
|
||||||
<VirtualHost *:80>
|
<VirtualHost *:80>
|
||||||
ProxyErrorOverride On 404
|
ProxyErrorOverride On 404
|
||||||
|
|||||||
Reference in New Issue
Block a user