| OLD | NEW |
| 1 # downloads.adblockplus.org | 1 # downloads.adblockplus.org |
| 2 server { | 2 server { |
| 3 listen 80 default_server; | 3 listen 80 default_server; |
| 4 listen [::]:80 default_server; | 4 listen [::]:80 default_server; |
| 5 server_name downloads.adblockplus.org; | 5 server_name downloads.adblockplus.org; |
| 6 location / { | 6 location / { |
| 7 rewrite (.*) https://downloads.adblockplus.org$1 permanent; | 7 rewrite (.*) https://downloads.adblockplus.org$1 permanent; |
| 8 } | 8 } |
| 9 } | 9 } |
| 10 server { | 10 server { |
| 11 listen 443 ssl default_server; | 11 listen 443 ssl default_server; |
| 12 listen [::]:443 ssl default_server; | 12 listen [::]:443 ssl default_server; |
| 13 server_name downloads.adblockplus.org; | 13 server_name downloads.adblockplus.org; |
| 14 ssl_certificate sites-available/adblockplus.org_sslcert.pem; | 14 ssl_certificate sites-available/adblockplus.org_sslcert.pem; |
| 15 ssl_certificate_key sites-available/adblockplus.org_sslcert.key; | 15 ssl_certificate_key sites-available/adblockplus.org_sslcert.key; |
| 16 | 16 |
| 17 # redirect server error pages to the static page /50x.html | 17 # redirect server error pages to the static page /50x.html |
| 18 # | 18 # |
| 19 error_page 500 502 503 504 /50x.html; | 19 error_page 500 502 503 504 /50x.html; |
| 20 location = /50x.html { | 20 location = /50x.html { |
| 21 root html; | 21 root html; |
| 22 } | 22 } |
| 23 | 23 |
| 24 location /.hg { | 24 location /.hg { |
| 25 internal; | 25 internal; |
| 26 } | 26 } |
| 27 | 27 |
| 28 # This redirect is necessary since we accidentally set the wrong |
| 29 # update URL in ABP for Android 1.2. It can be removed once we're |
| 30 # not seeing anyone requesting this file anymore. |
| 31 # Note that this intentionally promotes devbuilds to release builds. |
| 32 location /devbuilds/adblockplusandroid/update.json { |
| 33 rewrite ^ https://adblockplus.org/androidupdates.xml?$query_string redirect; |
| 34 } |
| 35 |
| 28 access_log /var/log/nginx/access_log_downloads main; | 36 access_log /var/log/nginx/access_log_downloads main; |
| 29 keepalive_timeout 0; | 37 keepalive_timeout 0; |
| 30 root /var/www/downloads; | 38 root /var/www/downloads; |
| 31 | 39 |
| 32 location /devbuilds { | 40 location /devbuilds { |
| 33 alias /var/www/devbuilds; | 41 alias /var/www/devbuilds; |
| 34 } | 42 } |
| 35 } | 43 } |
| OLD | NEW |