Nginx configuration leads to endless redirect loop

前端 未结 9 1407
独厮守ぢ
独厮守ぢ 2020-12-01 04:18

So I\'ve looked at every sample configuration I could find and yet every time I try and view a page that requires ssl, I end up in an redirect loop. I\'m running nginx/0.8.5

9条回答
  •  再見小時候
    2020-12-01 05:06

    For those who are searching desperatly why their owncloud keep making a redirect loop in spite of having a good configuration file, i've found why it's not working.

    My config: nginx + php-fpm + mysql on a fresh centos 6.5

    when installing php-fpm and nginx, default permission on /var/lib/php/session/ is root:apache

    php-fpm through nginx store php session here, if nginx did not have authorization to write it fail miserably to keep any login session, resulting in an infinite loop.

    So juste add nginx in apache group (usermod -a -G apache nginx) or change ownership of this folder.

    Have a nice day.

提交回复
热议问题