OLD | NEW |
1 access_log /var/log/nginx/access_log_easylist_downloads main; | 1 access_log /var/log/nginx/access_log_easylist_downloads main; |
2 keepalive_timeout 0; | 2 keepalive_timeout 0; |
| 3 root /var/www/easylist; |
3 | 4 |
4 location / { | 5 location / { |
5 rewrite .* https://easylist.adblockplus.org/ redirect; | 6 rewrite .* https://easylist.adblockplus.org/ redirect; |
6 root /var/www/easylist; | |
7 } | 7 } |
8 | 8 |
9 location /COPYING { | 9 location /COPYING { |
10 charset utf-8; | 10 charset utf-8; |
11 gzip_static on; | 11 gzip_static on; |
12 default_type text/plain; | 12 default_type text/plain; |
13 } | 13 } |
14 | 14 |
| 15 location ~ \.(txt|tpl)$ { |
| 16 charset utf-8; |
| 17 gzip_static on; |
| 18 default_type text/plain; |
| 19 } |
| 20 |
15 # redirect server error pages to the static page /50x.html | 21 # redirect server error pages to the static page /50x.html |
16 # | 22 # |
17 error_page 500 502 503 504 /50x.html; | 23 error_page 500 502 503 504 /50x.html; |
18 location = /50x.html { | 24 location = /50x.html { |
19 root html; | 25 root html; |
20 } | 26 } |
OLD | NEW |