{"action":"created","issue":{"url":"https://api.github.com/repos/Comcast/traffic_control/issues/1067","repository_url":"https://api.github.com/repos/Comcast/traffic_control","labels_url":"https://api.github.com/repos/Comcast/traffic_control/issues/1067/labels{/name}","comments_url":"https://api.github.com/repos/Comcast/traffic_control/issues/1067/comments","events_url":"https://api.github.com/repos/Comcast/traffic_control/issues/1067/events","html_url":"https://github.com/Comcast/traffic_control/pull/1067","id":134536901,"number":1067,"title":"add Geolimit failure redirect feature (short for NGB)","user":{"login":"nbaoping","id":13462001,"avatar_url":"https://avatars.githubusercontent.com/u/13462001?v=3","gravatar_id":"","url":"https://api.github.com/users/nbaoping","html_url":"https://github.com/nbaoping","followers_url":"https://api.github.com/users/nbaoping/followers","following_url":"https://api.github.com/users/nbaoping/following{/other_user}","gists_url":"https://api.github.com/users/nbaoping/gists{/gist_id}","starred_url":"https://api.github.com/users/nbaoping/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nbaoping/subscriptions","organizations_url":"https://api.github.com/users/nbaoping/orgs","repos_url":"https://api.github.com/users/nbaoping/repos","events_url":"https://api.github.com/users/nbaoping/events{/privacy}","received_events_url":"https://api.github.com/users/nbaoping/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Comcast/traffic_control/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/Comcast/traffic_control/labels/Traffic%20Router","name":"Traffic Router","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2016-02-18T10:18:30Z","updated_at":"2016-03-14T04:11:36Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Comcast/traffic_control/pulls/1067","html_url":"https://github.com/Comcast/traffic_control/pull/1067","diff_url":"https://github.com/Comcast/traffic_control/pull/1067.diff","patch_url":"https://github.com/Comcast/traffic_control/pull/1067.patch"},"body":"In the past, if the Geolimit check fails (for example, the client ip is not in the 'US' region but the geolimit is set to 'CZ + US'), the router will return 503 response; but with this feature, when the check fails, it will return 302 if the redirect url is set in the delivery service.\r\n\r\nThe Geolimit check failure has such scenarios:\r\n1) When the geolimt is set to 'CZ + only', if the client ip is not the the CZ file, the check fails\r\n2) When the geolimit is set to any region, like 'CZ + US', if the client ip is not in such region, the check fails\r\n\r\nAnd different configured redirect urls have different meanings:\r\n1. If no domain is in the url (like 'vod/dance.mp4'), the router will try to find a proper cache server and return  the redirect url with the format like '`http://<cache server name>.<delivery service's FQDN>/<configured relative path>`'\r\n2. If has domain, it has two different scenarios:\r\n      1) If the domain matches with the delivery service, the router will also try to find a proper cache server and return the same format url as point 1.\r\n      2) If the domain doesn't match with the delivery service, the router will return the configured url directly to the client.\r\n3. If no url is set, this feature will be disabled for this delivery service"},"comment":{"url":"https://api.github.com/repos/Comcast/traffic_control/issues/comments/196130728","html_url":"https://github.com/Comcast/traffic_control/pull/1067#issuecomment-196130728","issue_url":"https://api.github.com/repos/Comcast/traffic_control/issues/1067","id":196130728,"user":{"login":"nbaoping","id":13462001,"avatar_url":"https://avatars.githubusercontent.com/u/13462001?v=3","gravatar_id":"","url":"https://api.github.com/users/nbaoping","html_url":"https://github.com/nbaoping","followers_url":"https://api.github.com/users/nbaoping/followers","following_url":"https://api.github.com/users/nbaoping/following{/other_user}","gists_url":"https://api.github.com/users/nbaoping/gists{/gist_id}","starred_url":"https://api.github.com/users/nbaoping/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nbaoping/subscriptions","organizations_url":"https://api.github.com/users/nbaoping/orgs","repos_url":"https://api.github.com/users/nbaoping/repos","events_url":"https://api.github.com/users/nbaoping/events{/privacy}","received_events_url":"https://api.github.com/users/nbaoping/received_events","type":"User","site_admin":false},"created_at":"2016-03-14T04:11:36Z","updated_at":"2016-03-14T04:11:36Z","body":"Hi @dneuman64 , the doc was added, please have a look, thanks!"}}