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