-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserver-error-page.conf
45 lines (45 loc) · 1.92 KB
/
server-error-page.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
location ~* "^/[0-9]{3}.html$" {
root /etc/nginx/error-pages;
sub_filter_once off;
sub_filter '%{host}' $host;
sub_filter '%{http_host}' $http_host;
sub_filter '%{time_iso8601}' $time_iso8601;
sub_filter '%{scheme}' $scheme;
sub_filter '%{support_email}' $support_email;
sub_filter '%{support_tel}' $support_tel;
sub_filter '%{support_url}' $support_url;
sub_filter '%{request_id}' $request_id;
sub_filter '%{remote_addr}' $remote_addr;
sub_filter '%{request_method}' $request_method;
sub_filter '%{request_uri}' $request_uri;
sub_filter '%{request_length}' $request_length;
sub_filter '%{client_uid}' $client_uid;
sub_filter '%{username}' $username;
sub_filter '%{http_user_agent}' $http_user_agent;
sub_filter '%{agent_name}' $agent_name;
sub_filter '%{agent_version}' $agent_version;
sub_filter '%{agent_os}' $agent_os;
sub_filter '%{agent_os_version}' $agent_os_version;
sub_filter '%{agent_category}' $agent_category;
sub_filter '%{agent_vendor}' $agent_vendor;
sub_filter '%{agent_is_modern}' $agent_is_modern;
sub_filter '%{user_agent_hash}' $user_agent_hash;
sub_filter '%{geo_country_name}' $geo_country_name;
sub_filter '%{geo_country_code}' $geo_country_code;
sub_filter '%{geo_country_flag}' $geo_country_flag;
sub_filter '%{geo_city}' $geo_city;
sub_filter '%{geo_continent_name}' $geo_continent_name;
sub_filter '%{geo_continent_code}' $geo_continent_code;
sub_filter '%{geo_timezone}' $geo_timezone;
sub_filter '%{geo_latitude}' $geo_latitude;
sub_filter '%{geo_longitude}' $geo_longitude;
sub_filter '%{geo_accuracy_radius}' $geo_accuracy_radius;
sub_filter '%{geo_isp}' $geo_isp;
sub_filter '%{geo_isp_number}' $geo_isp_number;
sub_filter '%{organization_title}' $organization_title;
sub_filter '%{organization_brand_icon}' $organization_brand_icon;
sub_filter '%{waf_mode}' $waf_mode;
sub_filter '%{protection_mode}' $protection_mode;
allow all;
internal;
}