This repository was archived by the owner on Jan 8, 2023. It is now read-only.
File tree 30 files changed +34
-38
lines changed
30 files changed +34
-38
lines changed Original file line number Diff line number Diff line change 2
2
< html >
3
3
< head >
4
4
< link rel ="stylesheet " type ="text/css " href ="/_errors/main.css "/>
5
- < title > Error 400 - sv1 </ title >
5
+ < title > Error 400 - %{HOSTNAME} </ title >
6
6
< style >
7
7
html {
8
8
background-color : # e74c3c ;
Original file line number Diff line number Diff line change 2
2
< html >
3
3
< head >
4
4
< link rel ="stylesheet " type ="text/css " href ="/_errors/main.css "/>
5
- < title > Error 401 - sv1 </ title >
5
+ < title > Error 401 - %{HOSTNAME} </ title >
6
6
< style >
7
7
html {
8
8
background-color : # e74c3c ;
Original file line number Diff line number Diff line change 2
2
< html >
3
3
< head >
4
4
< link rel ="stylesheet " type ="text/css " href ="/_errors/main.css "/>
5
- < title > Error 402 - sv1 </ title >
5
+ < title > Error 402 - %{HOSTNAME} </ title >
6
6
< style >
7
7
html {
8
8
background-color : # e74c3c ;
Original file line number Diff line number Diff line change 2
2
< html >
3
3
< head >
4
4
< link rel ="stylesheet " type ="text/css " href ="/_errors/main.css "/>
5
- < title > Error 403 - sv1 </ title >
5
+ < title > Error 403 - %{HOSTNAME} </ title >
6
6
< style >
7
7
html {
8
8
background-color : # e74c3c ;
Original file line number Diff line number Diff line change 2
2
< html >
3
3
< head >
4
4
< link rel ="stylesheet " type ="text/css " href ="/_errors/main.css "/>
5
- < title > Error 404 - sv1 </ title >
5
+ < title > Error 404 - %{HOSTNAME} </ title >
6
6
< style >
7
7
html {
8
8
background-color : # e74c3c ;
Original file line number Diff line number Diff line change 2
2
< html >
3
3
< head >
4
4
< link rel ="stylesheet " type ="text/css " href ="/_errors/main.css "/>
5
- < title > Error 405 - sv1 </ title >
5
+ < title > Error 405 - %{HOSTNAME} </ title >
6
6
< style >
7
7
html {
8
8
background-color : # e74c3c ;
Original file line number Diff line number Diff line change 2
2
< html >
3
3
< head >
4
4
< link rel ="stylesheet " type ="text/css " href ="/_errors/main.css "/>
5
- < title > Error 406 - sv1 </ title >
5
+ < title > Error 406 - %{HOSTNAME} </ title >
6
6
< style >
7
7
html {
8
8
background-color : # e74c3c ;
Original file line number Diff line number Diff line change 2
2
< html >
3
3
< head >
4
4
< link rel ="stylesheet " type ="text/css " href ="/_errors/main.css "/>
5
- < title > Error 407 - sv1 </ title >
5
+ < title > Error 407 - %{HOSTNAME} </ title >
6
6
< style >
7
7
html {
8
8
background-color : # e74c3c ;
Original file line number Diff line number Diff line change 2
2
< html >
3
3
< head >
4
4
< link rel ="stylesheet " type ="text/css " href ="/_errors/main.css "/>
5
- < title > Error 408 - sv1 </ title >
5
+ < title > Error 408 - %{HOSTNAME} </ title >
6
6
< style >
7
7
html {
8
8
background-color : # e74c3c ;
Original file line number Diff line number Diff line change 2
2
< html >
3
3
< head >
4
4
< link rel ="stylesheet " type ="text/css " href ="/_errors/main.css "/>
5
- < title > Error 409 - sv1 </ title >
5
+ < title > Error 409 - %{HOSTNAME} </ title >
6
6
< style >
7
7
html {
8
8
background-color : # e74c3c ;
Original file line number Diff line number Diff line change 2
2
< html >
3
3
< head >
4
4
< link rel ="stylesheet " type ="text/css " href ="/_errors/main.css "/>
5
- < title > Error 410 - sv1 </ title >
5
+ < title > Error 410 - %{HOSTNAME} </ title >
6
6
< style >
7
7
html {
8
8
background-color : # e74c3c ;
Original file line number Diff line number Diff line change 2
2
< html >
3
3
< head >
4
4
< link rel ="stylesheet " type ="text/css " href ="/_errors/main.css "/>
5
- < title > Error 414 - sv1 </ title >
5
+ < title > Error 414 - %{HOSTNAME} </ title >
6
6
< style >
7
7
html {
8
8
background-color : # e74c3c ;
Original file line number Diff line number Diff line change 2
2
< html >
3
3
< head >
4
4
< link rel ="stylesheet " type ="text/css " href ="/_errors/main.css "/>
5
- < title > Error 416 - sv1 </ title >
5
+ < title > Error 416 - %{HOSTNAME} </ title >
6
6
< style >
7
7
html {
8
8
background-color : # e74c3c ;
Original file line number Diff line number Diff line change 2
2
< html >
3
3
< head >
4
4
< link rel ="stylesheet " type ="text/css " href ="/_errors/main.css "/>
5
- < title > Error 418 - sv1 </ title >
5
+ < title > Error 418 - %{HOSTNAME} </ title >
6
6
< style >
7
7
html {
8
8
background-image : url ('/_errors/images/teapot.jpg' );
Original file line number Diff line number Diff line change 2
2
< html >
3
3
< head >
4
4
< link rel ="stylesheet " type ="text/css " href ="/_errors/main.css "/>
5
- < title > Error 426 - sv1 </ title >
5
+ < title > Error 426 - %{HOSTNAME} </ title >
6
6
< style >
7
7
html {
8
8
background-color : # e74c3c ;
Original file line number Diff line number Diff line change 2
2
< html >
3
3
< head >
4
4
< link rel ="stylesheet " type ="text/css " href ="/_errors/main.css "/>
5
- < title > Error 451 - sv1 </ title >
5
+ < title > Error 451 - %{HOSTNAME} </ title >
6
6
< style >
7
7
html {
8
8
background-color : # e74c3c ;
Original file line number Diff line number Diff line change 2
2
< html >
3
3
< head >
4
4
< link rel ="stylesheet " type ="text/css " href ="/_errors/main.css "/>
5
- < title > Error 500 - sv1 </ title >
5
+ < title > Error 500 - %{HOSTNAME} </ title >
6
6
< style >
7
7
html {
8
8
background-color : # f1c40f ;
Original file line number Diff line number Diff line change 2
2
< html >
3
3
< head >
4
4
< link rel ="stylesheet " type ="text/css " href ="/_errors/main.css "/>
5
- < title > Error 501 - sv1 </ title >
5
+ < title > Error 501 - %{HOSTNAME} </ title >
6
6
< style >
7
7
html {
8
8
background-color : # f1c40f ;
Original file line number Diff line number Diff line change 2
2
< html >
3
3
< head >
4
4
< link rel ="stylesheet " type ="text/css " href ="/_errors/main.css "/>
5
- < title > Error 502 - sv1 </ title >
5
+ < title > Error 502 - %{HOSTNAME} </ title >
6
6
< style >
7
7
html {
8
8
background-color : # f1c40f ;
Original file line number Diff line number Diff line change 2
2
< html >
3
3
< head >
4
4
< link rel ="stylesheet " type ="text/css " href ="/_errors/main.css "/>
5
- < title > Error 503 - sv1 </ title >
5
+ < title > Error 503 - %{HOSTNAME} </ title >
6
6
< style >
7
7
html {
8
8
background-color : # f1c40f ;
Original file line number Diff line number Diff line change 2
2
< html >
3
3
< head >
4
4
< link rel ="stylesheet " type ="text/css " href ="/_errors/main.css "/>
5
- < title > Error 504 - sv1 </ title >
5
+ < title > Error 504 - %{HOSTNAME} </ title >
6
6
< style >
7
7
html {
8
8
background-color : # f1c40f ;
Original file line number Diff line number Diff line change 2
2
< html >
3
3
< head >
4
4
< link rel ="stylesheet " type ="text/css " href ="/_errors/main.css "/>
5
- < title > Error 505 - sv1 </ title >
5
+ < title > Error 505 - %{HOSTNAME} </ title >
6
6
< style >
7
7
html {
8
8
background-color : # f1c40f ;
Original file line number Diff line number Diff line change 2
2
< html >
3
3
< head >
4
4
< link rel ="stylesheet " type ="text/css " href ="/_errors/main.css "/>
5
- < title > Error 506 - sv1 </ title >
5
+ < title > Error 506 - %{HOSTNAME} </ title >
6
6
< style >
7
7
html {
8
8
background-color : # f1c40f ;
Original file line number Diff line number Diff line change 2
2
< html >
3
3
< head >
4
4
< link rel ="stylesheet " type ="text/css " href ="/_errors/main.css "/>
5
- < title > Error 507 - sv1 </ title >
5
+ < title > Error 507 - %{HOSTNAME} </ title >
6
6
< style >
7
7
html {
8
8
background-color : # f1c40f ;
Original file line number Diff line number Diff line change 2
2
< html >
3
3
< head >
4
4
< link rel ="stylesheet " type ="text/css " href ="/_errors/main.css "/>
5
- < title > Error 508 - sv1 </ title >
5
+ < title > Error 508 - %{HOSTNAME} </ title >
6
6
< style >
7
7
html {
8
8
background-color : # f1c40f ;
Original file line number Diff line number Diff line change 2
2
< html >
3
3
< head >
4
4
< link rel ="stylesheet " type ="text/css " href ="/_errors/main.css "/>
5
- < title > sv1 </ title >
5
+ < title > %{HOSTNAME} </ title >
6
6
< style >
7
7
html {
8
8
background-color : # f1c40f ;
Original file line number Diff line number Diff line change 2
2
< html >
3
3
< head >
4
4
< link rel ="stylesheet " type ="text/css " href ="/_errors/main.css "/>
5
- < title > Error 510 - sv1 </ title >
5
+ < title > Error 510 - %{HOSTNAME} </ title >
6
6
< style >
7
7
html {
8
8
background-color : # f1c40f ;
Original file line number Diff line number Diff line change 2
2
< html >
3
3
< head >
4
4
< link rel ="stylesheet " type ="text/css " href ="/_errors/main.css "/>
5
- < title > Error 511 - sv1 </ title >
5
+ < title > Error 511 - %{HOSTNAME} </ title >
6
6
< style >
7
7
html {
8
8
background-color : # f1c40f ;
Original file line number Diff line number Diff line change 2
2
< html >
3
3
< head >
4
4
< link rel ="stylesheet " type ="text/css " href ="main.css "/>
5
- < title > sv1 </ title >
5
+ < title > %{HOSTNAME} </ title >
6
6
</ head >
7
7
8
8
< body >
9
- < h1 > sv1 </ h1 >
9
+ < h1 > %{HOSTNAME} </ h1 >
10
10
</ body >
11
11
</ html >
Original file line number Diff line number Diff line change @@ -30,15 +30,11 @@ location ^~ /_errors/ {
30
30
root /srv/http/default;
31
31
allow all;
32
32
}
33
-
34
- location ~ /4[0125][0-9].html {
35
- root /srv/http/default;
36
- allow all;
37
- internal;
38
- }
39
-
40
- location ~ /50[0-9].html {
33
+ location ~ /(4[0125][0-9]|50[0-9])\.html {
41
34
root /srv/http/default;
35
+ sub_filter '%{HOSTNAME}' $host;
36
+ sub_filter_once off;
37
+ sub_filter_types text/html;
42
38
allow all;
43
39
internal;
44
40
}
You can’t perform that action at this time.
0 commit comments