Skip to content

Commit 5220b23

Browse files
committed
update SSI
- signed-off-by: trimstray <trimstray@gmail.com>
1 parent 49ca425 commit 5220b23

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

doc/HELPERS.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6144,7 +6144,7 @@ For support GeoIP2 we have [ngx_http_geoip2_module](https://github.com/leev/ngx_
61446144
61456145
Example 1:
61466146
6147-
1. Create error page template in `/var/www/error_pages/error.html`:
6147+
1. Create error page template in `/var/www/error_pages/errors.html`:
61486148
61496149
```html
61506150
<!-- Based on: https://blog.adriaan.io/one-nginx-error-page-to-rule-them-all.html -->
@@ -6169,6 +6169,19 @@ Example 1:
61696169
</html>
61706170
```
61716171
6172+
or
6173+
6174+
```html
6175+
<html>
6176+
<head>
6177+
<title><!--# echo var="status" default="" --> <!--# echo var="status_text" default="Something goes wrong..." --></title>
6178+
</head>
6179+
<body>
6180+
<center><h1><!--# echo var="status" default="" --> <!--# echo var="status_text" default="Something goes wrong..." --></h1></center>
6181+
</body>
6182+
</html>
6183+
```
6184+
61726185
2. Define error codes map in the http context or include it from a file:
61736186
61746187
```nginx
@@ -6226,9 +6239,9 @@ server {
62266239
62276240
...
62286241
6229-
error_page 400 401 403 404 405 500 501 502 503 /error.html;
6242+
error_page 400 401 403 404 405 500 501 502 503 /errors.html;
62306243
6231-
location = /error.html {
6244+
location = /errors.html {
62326245
62336246
ssi on;
62346247
internal;

0 commit comments

Comments
 (0)