diff options
Diffstat (limited to 'readme.md')
-rw-r--r-- | readme.md | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..7a4328d --- /dev/null +++ b/readme.md @@ -0,0 +1,13 @@ +# Errorpage customization for nginx HTTP server +This package configures your nginx HTTP server with custom error pages. + +## SSI variables +The following variables are defined within each `xxx.shtml` file within the `customization/errorpage/` directory: + +* `ERRORPAGE_CODE`: This variable contains the HTTP status code for the current error or information page. +* `ERRORPAGE_TEXT`: This variable contains the description of the HTTP status code defined with `ERRORPAGE_CODE`. + +## Installation +All files and directories provided in this package are relative to the `/etc/nginx/` install directory (if your nginx is installed somewhere else, you have to change the paths). To activate the configuration, just include the `errorpage.conf` in each virtual host within the `server {}` or `location {}` block and reload nginx: + + include /etc/nginx/snippets/errorpage.conf;
\ No newline at end of file |