Welcome! Log In Create A New Profile

Advanced

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 20, 2013 10:47PM
I have tried both ways to redirect my static files to a CDN (content delivery network), but both ways result in the message "too many redirects." Can anyone tell me what I am doing wrong here?

location ~* ^.+.(jpe?g|gif|css|png|js|ico)$ {
rewrite ^ http://cdn.mydomain.com$request_uri? permanent;
access_log off;
}


location ~* \.(jpg|jpeg|gif|png|flv|mp3|mpg|mpeg|js|css|ico|woff)$ {
return 301 http://cdn.mydomain.com$request_uri;
access_log off;
}
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: 100
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