Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Delta Between Two Patch Sets: modules/filterserver/files/site.conf

Issue 29408755: Redirect for more granular control of lists (Closed)
Left Patch Set: Created April 10, 2017, 5:16 p.m.
Right Patch Set: Adding documentation for the redirections Created April 10, 2017, 5:25 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 root /var/www/easylist; 1 root /var/www/easylist;
2 keepalive_timeout 0; 2 keepalive_timeout 0;
3 charset utf-8; 3 charset utf-8;
4 gzip_static on; 4 gzip_static on;
5 default_type text/plain; 5 default_type text/plain;
6 6
7
8 ### http://hub.eyeo.com/issues/444 for ZTE redirects
9 ### http://hub.eyeo.com/issues/496 for bento.de redirects
7 set $use_alternative_resource_flags 0; 10 set $use_alternative_resource_flags 0;
mathias 2017/04/10 17:20:00 We should link to the Hub tickets where appropriat
8 11
9 if ($arg_addonName ~ ^([Mm]axthon)$) 12 if ($arg_addonName ~ ^([Mm]axthon)$)
10 { 13 {
11 set $use_alternative_resource_flags "BROWSER"; 14 set $use_alternative_resource_flags "BROWSER";
12 } 15 }
13 16
14 if ($arg_addonName ~ ^(adblockplusie)$) 17 if ($arg_addonName ~ ^(adblockplusie)$)
15 { 18 {
16 set $use_alternative_resource_flags "IE"; 19 set $use_alternative_resource_flags "IE";
17 } 20 }
(...skipping 25 matching lines...) Expand all
43 rewrite ^/easylist\.(.+) /easylist_noelemhide.$1 break; 46 rewrite ^/easylist\.(.+) /easylist_noelemhide.$1 break;
44 rewrite ^/easylistgermany\+easylist\.(.+) /easylistgermany_noelemhide+easylist _noelemhide.$1 break; 47 rewrite ^/easylistgermany\+easylist\.(.+) /easylistgermany_noelemhide+easylist _noelemhide.$1 break;
45 rewrite ^/easylistgermany\.(.+) /easylistgermany_noelemhide.$1 break; 48 rewrite ^/easylistgermany\.(.+) /easylistgermany_noelemhide.$1 break;
46 } 49 }
47 50
48 if ($use_alternative_resource_flags = "ZTE") 51 if ($use_alternative_resource_flags = "ZTE")
49 { 52 {
50 rewrite ^/exceptionrules\.(.+) /exceptionrules-minimal.$1 break; 53 rewrite ^/exceptionrules\.(.+) /exceptionrules-minimal.$1 break;
51 } 54 }
52 55
LEFTRIGHT
« no previous file | no next file » | Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Toggle Comments ('s')

Powered by Google App Engine
This is Rietveld