File tree Expand file tree Collapse file tree 2 files changed +21
-11
lines changed
Expand file tree Collapse file tree 2 files changed +21
-11
lines changed Original file line number Diff line number Diff line change 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 `
Original file line number Diff line number Diff line change @@ -62,20 +62,26 @@ ErrorDocument 502 /ErrorPages/HTTP502.html
6262ErrorDocument 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
7067Example - 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
You can’t perform that action at this time.
0 commit comments