Could someone look over my configuration? It appears I am missing something
that is causing it not to work. I have a Code Igniter application that runs
from the root WordPress folder fine with Apache, but it is not working with
my Nginx configuration.
The WordPress root folder is: /var/www/vhosts/
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 o
As I already said, the code doesn't work with NetDNA, so there is nothing to
fix. A different approach must be taken, and I am looking for solutions
other than that which is already broken.
Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,237609,237655#msg-237655
I talked to NetDNA and they said my redirect would in fact cause a redirect
loop. Unfortunately the PHP project I am using the CDN for would take a long
time to convert URLs to the CDN for static files so another route may be a
better solution.
There has been mention of using proxy_pass to an upst
It is possible my CDN is using the same ruleset. I am using MaxCDN, and they
use Nginx to serve static images. How would I write this ruleset to be
compatible with MaxCDN (aka NetDNA)?
Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,237609,237612#msg-237612
_
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? perma