LEFT | RIGHT |
1 keepalive_timeout 0; | 1 keepalive_timeout 0; |
2 root /var/www/downloads; | 2 root /var/www/downloads; |
3 | 3 |
4 # redirect server error pages to the static page /50x.html | 4 location /.hg |
5 # | 5 { |
6 error_page 500 502 503 504 /50x.html; | |
7 location = /50x.html { | |
8 root html; | |
9 } | |
10 | |
11 location /.hg { | |
12 internal; | 6 internal; |
13 } | 7 } |
14 | 8 |
15 # This redirect is necessary since we accidentally set the wrong | 9 # This redirect is necessary since we accidentally set the wrong |
16 # update URL in ABP for Android 1.2. It can be removed once we're | 10 # update URL in ABP for Android 1.2. It can be removed once we're |
17 # not seeing anyone requesting this file anymore. | 11 # not seeing anyone requesting this file anymore. |
18 # Note that this intentionally promotes devbuilds to release builds. | 12 # Note that this intentionally promotes devbuilds to release builds. |
19 # Since newer versions should use the new devbuild and release | 13 # Since newer versions should use the new devbuild and release |
20 # build update URLs requested by libadblockplus, leaving this | 14 # build update URLs requested by libadblockplus, leaving this |
21 # redirect around won't really hurt. | 15 # redirect around won't really hurt. |
22 location /devbuilds/adblockplusandroid/updates.xml { | 16 location /devbuilds/adblockplusandroid/updates.xml |
| 17 { |
23 rewrite ^ https://adblockplus.org/androidupdates.xml?$query_string redirect; | 18 rewrite ^ https://adblockplus.org/androidupdates.xml?$query_string redirect; |
24 } | 19 } |
25 | 20 |
26 location /devbuilds { | 21 location /devbuilds |
| 22 { |
27 alias /var/www/devbuilds; | 23 alias /var/www/devbuilds; |
28 } | 24 } |
LEFT | RIGHT |