You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2020/06/01 21:07:58 UTC

[GitHub] [incubator-mxnet] ys2843 edited a comment on pull request #18457: redirect visitors based on geolocation - update host condition

ys2843 edited a comment on pull request #18457:
URL: https://github.com/apache/incubator-mxnet/pull/18457#issuecomment-637102222


   > how are you testing it
   
   By using any speedtest website with Chinese server, we can see redirect in the result. Try any one of the following:
   + https://www.boce.com/ (Chinese speed test website, simply copy url to test) 
   + https://www.webpagetest.org/ (Choose Beijing as location then test)
   
   I created this host to test the redirect rules, it uses the same rules as this PR
   + `http://ec2-34-219-134-42.us-west-2.compute.amazonaws.com/`
   ```
   RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^CN$
   RewriteCond %{HTTP_HOST} !cdn
   RewriteRule ^(.*) https://mxnet.cdn.apache.org%{REQUEST_URI} [R,NC,L]
   ```
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org