https redirect going to infinite loop

parulsood85 nginx-forum at nginx.us
Thu Jul 11 11:27:14 UTC 2013


Hi,

I am new to nginx. I am trying to redirect all request to https. This is the
redirect i am using

rewrite  ^/(.*)  https://example.com  permanent;

somehow when I hit http://example.com on browser it goes to infinite loop. 

Note: ssl is enabled on the load balancer

Please help!

Regards,
Parul Sood

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,240755,240755#msg-240755



More information about the nginx mailing list