server {
listen 80;
server_name mobile.umeng.com;
#charset koi8-r;
access_log /var/log/nginx/youmen.access.log main;
location ~* /apps/get_apps_stats_details(.*) {
proxy_pass http://api.test.cn;
}
location ~* /apps/load_group_trend_chart.json(.*) {
proxy_pass http://api.test.cn;
}
location ~* /apps/950700d667e85e76ebd85b55/get_predefined_indices {
proxy_pass http://api.test.cn;
}
location ~* /apps/950700d667e85e76ebd85b55/get_searched_version_errors {
proxy_pass http://api.test.cn;
}
location ~* /apps/950700d667e85e76ebd85b55/reports/get_active_user_summary {
proxy_pass http://api.test.cn;
}
location ~* /apps/950700d667e85e76ebd85b55/load_channels {
proxy_pass http://api.test.cn;
}
location ~* /apps/950700d667e85e76ebd85b55/channels/load_chart_data(.*) {
if ( $args ~ "stats=installation" ) { proxy_pass http://api.test.cn;}
if ( $args ~ "stats=active_user" ) { proxy_pass http://api.test.cn;}
if ( $args ~ "stats=launch" ) { proxy_pass http://api.test.cn;}
if ( $args ~ "stats=duration" ) { proxy_pass http://api.test.cn;}
if ( $args ~ "stats=day_retention" ) { proxy_pass http://api.test.cn;}
proxy_pass http://mobile.umeng.com;
}
location ~* /apps/950700d667e85e76ebd85b55/channels/load_table_data(.*) {
if ( $args ~ "stats=list" ) { proxy_pass http://api.test.cn;}
if ( $args ~ "stats=active_summary" ) { proxy_pass http://api.test.cn;}
if ( $args ~ "stats=retention_summary" ) { proxy_pass http://api.test.cn;}
if ( $args ~ "stats=trend" ) { proxy_pass http://api.test.cn;}
}
location ~* /apps/950700d667e85e76ebd85b55/reports/load_chart_data(.*) {
if ( $args ~ "stats=index_channels" ) { proxy_pass http://api.test.cn;}
if ( $args ~ "stats=index_versions" ) { proxy_pass http://api.test.cn;}
if ( $args ~ "stats=index_hours_install" ) { proxy_pass http://api.test.cn;}
if ( $args ~ "stats=index_hours_launches" ) { proxy_pass http://api.test.cn;}
if ( $args ~ "stats=index_hours_sumactive" ) { proxy_pass http://api.test.cn;}
if ( $args ~ "stats=index_hours_uniqactive" ) { proxy_pass http://api.test.cn;}
if ( $args ~ "stats=trend_new_users" ) { proxy_pass http://api.test.cn;}
if ( $args ~ "stats=trend_active_users" ) { proxy_pass http://api.test.cn;}
if ( $args ~ "stats=trend_launches" ) { proxy_pass http://api.test.cn;}
if ( $args ~ "stats=installations" ) { proxy_pass http://api.test.cn;}
if ( $args ~ "stats=active_users" ) { proxy_pass http://api.test.cn;}
if ( $args ~ "stats=launches" ) { proxy_pass http://api.test.cn;}
if ( $args ~ "stats=trend_installations" ) { proxy_pass http://api.test.cn;}
if ( $args ~ "stats=trend_morrow_retention" ) { proxy_pass http://api.test.cn;}
if ( $args ~ "stats=versions_trend_install" ) { proxy_pass http://api.test.cn;}
if ( $args ~ "stats=versions_trend_active_user" ) { proxy_pass http://api.test.cn;}
if ( $args ~ "stats=versions_trend_launch" ) { proxy_pass http://api.test.cn;}
if ( $args ~ "stats=versionselected_trend_install" ) { proxy_pass http://api.test.cn;}
if ( $args ~ "stats=versionselected_trend_active" ) { proxy_pass http://api.test.cn;}
if ( $args ~ "stats=versionselected_trend_launch" ) { proxy_pass http://api.test.cn;}
proxy_pass http://mobile.umeng.com;
}
location ~* /apps/950700d667e85e76ebd85b55/reports/load_table_data(.*) {
if ( $args ~ "stats=dashboard_custom" ) { proxy_pass http://api.test.cn;}
if ( $args ~ "stats=dashboard_general" ) { proxy_pass http://api.test.cn;}
if ( $args ~ "stats=dashboard_trend" ) { proxy_pass http://api.test.cn;}
if ( $args ~ "stats=installations" ) { proxy_pass http://api.test.cn;}
if ( $args ~ "stats=active_users" ) { proxy_pass http://api.test.cn;}
if ( $args ~ "stats=launches" ) { proxy_pass http://api.test.cn;}
if ( $args ~ "stats=versions_table" ) { proxy_pass http://api.test.cn;}
if ( $args ~ "stats=versionselected_trend_install" ) { proxy_pass http://api.test.cn;}
proxy_pass http://mobile.umeng.com;
}
location ~* / {
proxy_pass http://mobile.umeng.com;
}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}