OLD | NEW |
1 # notification.adblockplus.org | 1 # redirect server error pages to the static page /50x.html |
2 server { | 2 # |
3 <% if is_default %> | 3 error_page 500 502 503 504 /50x.html; |
4 listen 80 default_server; | 4 location = /50x.html { |
5 listen [::]:80 default_server; | 5 root html; |
6 <% else %> | 6 } |
7 listen 80; | |
8 listen [::]:80; | |
9 <% end %> | |
10 | 7 |
11 server_name notification.adblockplus.org; | 8 location /.hg { |
12 location / { | 9 internal; |
13 rewrite (.*) https://notification.adblockplus.org$1 permanent; | |
14 } | |
15 } | 10 } |
16 server { | |
17 <% if is_default %> | |
18 listen 443 ssl default_server; | |
19 listen [::]:443 ssl default_server; | |
20 <% else %> | |
21 listen 443 ssl; | |
22 listen [::]:443 ssl; | |
23 <% end %> | |
24 | 11 |
25 server_name notification.adblockplus.org; | 12 keepalive_timeout 0; |
26 ssl_certificate sites-available/adblockplus.org_sslcert.pem; | 13 root /var/www/notification; |
27 ssl_certificate_key sites-available/adblockplus.org_sslcert.key; | |
28 | |
29 # redirect server error pages to the static page /50x.html | |
30 # | |
31 error_page 500 502 503 504 /50x.html; | |
32 location = /50x.html { | |
33 root html; | |
34 } | |
35 | |
36 location /.hg { | |
37 internal; | |
38 } | |
39 | |
40 access_log /var/log/nginx/access_log_notification main; | |
41 keepalive_timeout 0; | |
42 root /var/www/notification; | |
43 } | |
OLD | NEW |