| OLD | NEW |
| 1 server { | 1 root /var/www/easylist; |
| 2 <% if is_default %> | 2 keepalive_timeout 0; |
| 3 listen 80 default_server; | 3 charset utf-8; |
| 4 listen [::]:80 default_server; | 4 gzip_static on; |
| 5 listen 443 ssl default_server; | 5 default_type text/plain; |
| 6 listen [::]:443 ssl default_server; | |
| 7 <% else %> | |
| 8 listen 80; | |
| 9 listen [::]:80; | |
| 10 listen 443 ssl; | |
| 11 listen [::]:443 ssl; | |
| 12 <% end %> | |
| 13 | 6 |
| 14 server_name easylist-downloads.adblockplus.org easylist-msie.adblockplus.org; | 7 error_page 403 404 https://easylist.adblockplus.org/; |
| 15 access_log /var/log/nginx/access_log_easylist_downloads main; | |
| 16 root /var/www/easylist; | |
| 17 keepalive_timeout 0; | |
| 18 charset utf-8; | |
| 19 gzip_static on; | |
| 20 default_type text/plain; | |
| 21 | 8 |
| 22 ssl_certificate sites-available/easylist-downloads.adblockplus.org_sslcert.pem
; | 9 # redirect server error pages to the static page /50x.html |
| 23 ssl_certificate_key sites-available/easylist-downloads.adblockplus.org_sslcert
.key; | 10 # |
| 24 | 11 error_page 500 502 503 504 /50x.html; |
| 25 set $id "$scheme:$http_host"; | 12 location = /50x.html { |
| 26 if ($id = "http:easylist-downloads.adblockplus.org") { | 13 root html; |
| 27 rewrite (.*) https://$http_host$1 permanent; | |
| 28 } | |
| 29 | |
| 30 error_page 403 404 https://easylist.adblockplus.org/; | |
| 31 | |
| 32 # redirect server error pages to the static page /50x.html | |
| 33 # | |
| 34 error_page 500 502 503 504 /50x.html; | |
| 35 location = /50x.html { | |
| 36 root html; | |
| 37 } | |
| 38 } | 14 } |
| OLD | NEW |