Index: puppet/modules/adblockplusorg/files/adblockplus.org |
=================================================================== |
--- a/puppet/modules/adblockplusorg/files/adblockplus.org |
+++ b/puppet/modules/adblockplusorg/files/adblockplus.org |
@@ -35,6 +35,9 @@ |
if ($http_user_agent ~ \bAndroid\s.*\bAppleWebKit/\d+) { |
set $user_agent "android"; |
} |
+ if ($http_user_agent ~ \bMaxthon/\d+) { |
+ set $user_agent "maxthon"; |
+ } |
set $platform "firefox"; |
if ($user_agent) { |
@@ -57,7 +60,7 @@ |
} |
set $static_uri $uri; |
- if ($uri ~ ^/(\w\w(_\w\w)?)/(firefox|chrome|opera|android|internet-explorer)/?$) { |
+ if ($uri ~ ^/(\w\w(_\w\w)?)/(firefox|chrome|opera|android|internet-explorer|maxthon)/?$) { |
set $static_uri "/$1/"; |
set $platform $3; |
} |
@@ -73,7 +76,7 @@ |
rewrite ^ /static$static_uri?platform=$platform&user_agent=$user_agent last; |
} |
- rewrite ^/(\w\w(_\w\w)?)/(firefox|chrome|opera|android|internet-explorer)/?$ /index.php?p=$1&platform=$3&user_agent=$user_agent last; |
+ rewrite ^/(\w\w(_\w\w)?)/(firefox|chrome|opera|android|internet-explorer|maxthon)/?$ /index.php?p=$1&platform=$3&user_agent=$user_agent last; |
rewrite ^/(.*) /index.php?p=$1 last; |
} |