Hello,
I have deployed a WordPress single site on Apache and am running nginx in front of, reverse proxying to Apache. I tried to use this wiki article as a guideline for configuration but am getting eternally stuck.
http://wiki.nginx.org/WordPress
My location blocks are as follows:
location / {
try_files $uri $uri/ /index.php?q=$uri$is_args$args;
}
location ~ \.php$ {
include /usr/local/nginx/conf/proxypass.conf;
proxy_redirect off;
proxy_pass http://php;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
expires max;
log_not_found off;
}
Requests to the site root results in continuous 301 redirects and no page load.
GET /index.php HTTP/1.0" 301 8 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20100101 Firefox/16.0" 199821
How do I resolve this redirect loop?
Thank you.