Welcome! Log In Create A New Profile

Advanced

Re: Too Many Redirects - CDN Rewrite Rule

All files from this thread

File NameFile Size Posted byDate 
smime.p7s6 KBopen | downloadGreenGecko03/20/2013Read message
smime.p7s3.5 KBopen | downloadKiril Kalchev03/22/2013Read message
March 21, 2013 06:48PM
The reply I received from NetDNA after supplying the same information as I did here is as follows:

"Too many redirects" is a legit message in this scenario - example: You are redirecting domain.com/file.jpg TO cdn.domain.com/file.jpg ---> request comes to CDN and CDN neds to cache this file from origin so it tries to fetch from origin from location "domain.com/file.jpg" ---> request comes to origin and redirect rule you made redirects this request back to CDN <--- this is where infinite loop starts.

This is not a proper way to implement CDN as you have to monitor who is requesting your origin file so you could know whether it's a request you want to redirect or not. The best way to handle this is to monitor our anycast IPs and redirect everything except for those ips:

108.161.176.0/20
70.39.132.0/24
92.60.240.208/29
92.60.240.217/29
216.12.211.60/32
216.12.211.59/32

If you want to implement CDN this way, we can't support that implementation as we don't really encourage our client to use this type of implementation. The reason is quite simple: We are going to add new IP block that has to be white listed and until you make update for your redirects rule you'll be pushing infinite redirects to our servers causing service not to work until you add new block as well.
SubjectAuthorPosted

Too Many Redirects - CDN Rewrite Rule

toddlahmanMarch 20, 2013 10:47PM

Re: Too Many Redirects - CDN Rewrite Rule Attachments

GreenGeckoMarch 20, 2013 11:02PM

Re: Too Many Redirects - CDN Rewrite Rule

toddlahmanMarch 21, 2013 12:20AM

Re: Too Many Redirects - CDN Rewrite Rule

Francis DalyMarch 21, 2013 02:12PM

Re: Too Many Redirects - CDN Rewrite Rule

toddlahmanMarch 21, 2013 03:13PM

Re: Too Many Redirects - CDN Rewrite Rule

Jonathan MatthewsMarch 21, 2013 03:18PM

Re: Too Many Redirects - CDN Rewrite Rule

toddlahmanMarch 21, 2013 03:39PM

Re: Too Many Redirects - CDN Rewrite Rule

Jonathan MatthewsMarch 21, 2013 03:54PM

Re: Too Many Redirects - CDN Rewrite Rule

toddlahmanMarch 21, 2013 06:48PM

Re: Too Many Redirects - CDN Rewrite Rule

Peter BoothMarch 22, 2013 12:32AM

Re: Too Many Redirects - CDN Rewrite Rule Attachments

Kiril KalchevMarch 22, 2013 05:34AM

Re: Too Many Redirects - CDN Rewrite Rule

Francis DalyMarch 22, 2013 05:28AM

Re: Too Many Redirects - CDN Rewrite Rule

Francis DalyMarch 21, 2013 03:22PM

Re: Too Many Redirects - CDN Rewrite Rule

Peter BoothMarch 21, 2013 02:04AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 79
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 229 on August 01, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready