Enabeling SSL causes Redirect Loop errors ???

Hety nginx-forum at nginx.us
Wed Sep 21 13:04:44 UTC 2011


There are two things to be aware of here:
1. fastcgi_param HTTPS on; - add this to your location ~ \.php$ {}.
2. If you use php-fpm chroot set:
fastcgi_param SCRIPT_FILENAME $fastcgi_script_name;
fastcgi_param PATH_TRANSLATED $fastcgi_script_name;
Thats because your document root will be just /, but only if your chroot
dir = your actual site dir.

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



More information about the nginx mailing list