Skip to content

Commit cc65594

Browse files
committed
Restored NGINX Configuration from 0331dac
1 parent 22e1278 commit cc65594

File tree

2 files changed

+21
-11
lines changed

2 files changed

+21
-11
lines changed

CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.4.1 ##
2+
* Bugfix: Restored NGINX Configuration from 0331dac487caa0b3ddb5897b5d35afc2c01dfbd5
3+
* Added: Semantic Versioning
4+
15
## 0.4 ##
26
* Added: **ANT** based build file
37
* Added: Configuration file `config.ini`

README.md

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -62,20 +62,26 @@ ErrorDocument 502 /ErrorPages/HTTP502.html
6262
ErrorDocument 503 /ErrorPages/HTTP503.html
6363
```
6464

65-
### NGINX ###
66-
[NGINX](http://nginx.org/) supports custom error-pages using multiple [error_page](http://nginx.org/en/docs/http/ngx_http_core_module.html#error_page) directives.
67-
68-
File: `httpd.conf` or `.htaccess`
65+
File: `default.conf`
6966

7067
Example - assumes HttpErrorPages are located into `/var/www/ErrorPages/`.
7168

72-
```ApacheConf
73-
error_page 400 401 402 403 404 /error/HTTP40x.html;
74-
error_page 500 501 502 503 /error/HTTP50x.html;
75-
76-
location ^~ /error/ {
77-
internal;
78-
root /var/www/ErrorPages;
69+
```nginx
70+
# add one directive for each http status code
71+
error_page 400 /ErrorPages/HTTP400.html;
72+
error_page 401 /ErrorPages/HTTP401.html;
73+
error_page 402 /ErrorPages/HTTP402.html;
74+
error_page 403 /ErrorPages/HTTP403.html;
75+
error_page 404 /ErrorPages/HTTP404.html;
76+
error_page 500 /ErrorPages/HTTP500.html;
77+
error_page 501 /ErrorPages/HTTP501.html;
78+
error_page 502 /ErrorPages/HTTP502.html;
79+
error_page 503 /ErrorPages/HTTP503.html;
80+
81+
# redirect the virtual ErrorPages path the real path
82+
location /ErrorPages/ {
83+
alias /var/www/ErrorPages/;
84+
internal;
7985
}
8086
```
8187

0 commit comments

Comments
 (0)