Welcome! Log In Create A New Profile

Advanced

nginx, Apache, and WordPress

Posted by daveyfx 
nginx, Apache, and WordPress
December 14, 2012 01:01AM
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.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 294
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready