diff options
author | Thomas Lange <code@nerdmind.de> | 2017-08-28 08:49:16 +0200 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2017-08-28 08:49:16 +0200 |
commit | b0fcf5c5a40e6b16e5a71adc93c081c2afce7eea (patch) | |
tree | a8b9623ad9ed1622179686f172173a8acfeb39c1 /readme.md | |
download | nginx-errorpage-b0fcf5c5a40e6b16e5a71adc93c081c2afce7eea.tar.gz nginx-errorpage-b0fcf5c5a40e6b16e5a71adc93c081c2afce7eea.tar.xz nginx-errorpage-b0fcf5c5a40e6b16e5a71adc93c081c2afce7eea.zip |
Initial commit.
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 |