| LEFT | RIGHT |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| LEFT | RIGHT |