I'm having issues getting "Full Friendly URLs" working.
When enabled, this is what Firefox is showing (same thing happens in all browsers) :
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
This webpage has a redirect loop
ERR_TOO_MANY_REDIRECTS
----
This is what my logs are showing when I attempt to log in :
[08/Jan/2016:13:25:57 -0800] "POST /index.php?/login/login& HTTP/1.0" 303 - "http://example.com/" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0"
[08/Jan/2016:13:25:57 -0800] "GET /index.php HTTP/1.0" 301 - "http://example.com/" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0"
[08/Jan/2016:13:25:57 -0800] "GET /index.php HTTP/1.0" 301 - "http://example.com/" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0"
[08/Jan/2016:13:25:57 -0800] "GET /index.php HTTP/1.0" 301 - "http://example.com/" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0"
This is what I am using in Nginx to handle the requests :
location / {
try_files $uri $uri/ /index.php?$uri&$args;
index index.php index.html;
}
# Pass off php requests to Apache
location ~* \.php$ {
try_files $uri =404;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_connect_timeout 60s;
proxy_send_timeout 60s;
proxy_read_timeout 60s;
# buffers used for reading a response from the proxied server
proxy_buffers 8 24k;
# size of the buffer size used for reading the response headers from apache
proxy_buffer_size 4k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 64k;
proxy_pass http://127.0.0.1:80;
}
Any ideas what I am missing?
When enabled, this is what Firefox is showing (same thing happens in all browsers) :
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
This webpage has a redirect loop
ERR_TOO_MANY_REDIRECTS
----
This is what my logs are showing when I attempt to log in :
[08/Jan/2016:13:25:57 -0800] "POST /index.php?/login/login& HTTP/1.0" 303 - "http://example.com/" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0"
[08/Jan/2016:13:25:57 -0800] "GET /index.php HTTP/1.0" 301 - "http://example.com/" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0"
[08/Jan/2016:13:25:57 -0800] "GET /index.php HTTP/1.0" 301 - "http://example.com/" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0"
[08/Jan/2016:13:25:57 -0800] "GET /index.php HTTP/1.0" 301 - "http://example.com/" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0"
This is what I am using in Nginx to handle the requests :
location / {
try_files $uri $uri/ /index.php?$uri&$args;
index index.php index.html;
}
# Pass off php requests to Apache
location ~* \.php$ {
try_files $uri =404;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_connect_timeout 60s;
proxy_send_timeout 60s;
proxy_read_timeout 60s;
# buffers used for reading a response from the proxied server
proxy_buffers 8 24k;
# size of the buffer size used for reading the response headers from apache
proxy_buffer_size 4k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 64k;
proxy_pass http://127.0.0.1:80;
}
Any ideas what I am missing?