| OLD | NEW |
| 1 # notification.adblockplus.org | 1 location /.hg |
| 2 server { | 2 { |
| 3 <% if is_default %> | 3 internal; |
| 4 listen 80 default_server; | 4 } |
| 5 listen [::]:80 default_server; | |
| 6 <% else %> | |
| 7 listen 80; | |
| 8 listen [::]:80; | |
| 9 <% end %> | |
| 10 | 5 |
| 11 server_name notification.adblockplus.org; | 6 keepalive_timeout 0; |
| 12 location / { | 7 root /var/www/notification; |
| 13 rewrite (.*) https://notification.adblockplus.org$1 permanent; | |
| 14 } | |
| 15 } | |
| 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 | |
| 25 server_name notification.adblockplus.org; | |
| 26 ssl_certificate sites-available/adblockplus.org_sslcert.pem; | |
| 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 |