Welcome! Log In Create A New Profile

Advanced

rewrite non www host to www ssl loop

Posted by ptimo3 
rewrite non www host to www ssl loop
May 25, 2011 06:43PM
Hi,

Ii've setup a config that proxy the connections through to the backend (nginx) ..
Both ssl and http are fine, except when i add rewrite from none-www to www

I wanted to redirect all non www to www.domain.com
Http works fine and the ssl loads but when it must load https://www.domain.com/account it loops.


Config see attached. Thanks.
Attachments:
open | download - nginx.conf (3.2 KB)
Re: rewrite non www host to www ssl loop
May 26, 2011 01:30PM
Found the error, my backend server was mising the following FASTCGI param.

fastcgi_param HTTPS on;
Now no more loops :D
Re: rewrite non www host to www ssl loop
May 26, 2011 08:14PM
Maybe Slight hint for those willing to load balance multistore magento above config shows how to setup the front end.
Backend available upon request.

Hope this helps somebody :-)
Re: rewrite non www host to www ssl loop
July 09, 2011 12:37AM
thank you ptimo3, your point about fastcgi_param HTTPS on; was exactly it. thank you for including the hint about load balancing.
Re: rewrite non www host to www ssl loop
February 16, 2012 04:03AM
gr8
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 214
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