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

Delta Between Two Patch Sets: puppet/modules/adblockplusorg/files/adblockplus.org

Issue 5046426828537856: Issue 1485 - Created Maxthon landing page (Infrastructure) (Closed)
Left Patch Set: Created Oct. 24, 2014, 10:18 a.m.
Right Patch Set: Added missing "/" in user agent regex Created Oct. 24, 2014, 2:41 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 | « anwiki/_override-static/global/global/img/maxthon-teaser.png ('k') | 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 server { 1 server {
2 root /var/www/adblockplus.org/httpdocs; 2 root /var/www/adblockplus.org/httpdocs;
3 3
4 location / { 4 location / {
5 index index.php index index.html; 5 index index.php index index.html;
6 6
7 if ($arg_a = "view") { 7 if ($arg_a = "view") {
8 rewrite ^(.*) $1? permanent; 8 rewrite ^(.*) $1? permanent;
9 } 9 }
10 10
(...skipping 17 matching lines...) Expand all
28 } 28 }
29 if ($http_user_agent ~ \bPresto/\d+) { 29 if ($http_user_agent ~ \bPresto/\d+) {
30 set $user_agent "opera"; 30 set $user_agent "opera";
31 } 31 }
32 if ($http_user_agent ~ \bOPR/\d+) { 32 if ($http_user_agent ~ \bOPR/\d+) {
33 set $user_agent "opera"; 33 set $user_agent "opera";
34 } 34 }
35 if ($http_user_agent ~ \bAndroid\s.*\bAppleWebKit/\d+) { 35 if ($http_user_agent ~ \bAndroid\s.*\bAppleWebKit/\d+) {
36 set $user_agent "android"; 36 set $user_agent "android";
37 } 37 }
38 if ($http_user_agent ~ \bMaxthon\d+) { 38 if ($http_user_agent ~ \bMaxthon/\d+) {
39 set $user_agent "maxthon"; 39 set $user_agent "maxthon";
40 } 40 }
41 41
42 set $platform "firefox"; 42 set $platform "firefox";
43 if ($user_agent) { 43 if ($user_agent) {
44 set $platform $user_agent; 44 set $platform $user_agent;
45 } 45 }
46 46
47 if ($arg_a ~ ^(view|show)?$) { 47 if ($arg_a ~ ^(view|show)?$) {
48 rewrite ^/(index\.html)?$ /$preferredLang/$platform redirect; 48 rewrite ^/(index\.html)?$ /$preferredLang/$platform redirect;
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 fastcgi_param GATEWAY_INTERFACE CGI/1.1; 127 fastcgi_param GATEWAY_INTERFACE CGI/1.1;
128 fastcgi_param SERVER_SOFTWARE nginx/$nginx_version; 128 fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;
129 129
130 fastcgi_param REMOTE_ADDR $remote_addr; 130 fastcgi_param REMOTE_ADDR $remote_addr;
131 fastcgi_param REMOTE_PORT $remote_port; 131 fastcgi_param REMOTE_PORT $remote_port;
132 fastcgi_param SERVER_ADDR $server_addr; 132 fastcgi_param SERVER_ADDR $server_addr;
133 fastcgi_param SERVER_PORT $server_port; 133 fastcgi_param SERVER_PORT $server_port;
134 fastcgi_param SERVER_NAME $server_name; 134 fastcgi_param SERVER_NAME $server_name;
135 } 135 }
136 } 136 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld