Too many redirects error with Unit

Valentin V. Bartenev vbart at nginx.com
Thu Jun 21 20:44:12 UTC 2018


On Thursday, 21 June 2018 22:42:49 MSK Danny Horne via unit wrote:
> Thanks for the reply.  I hadn't noticed, but a test site I set up with a
> phpinfo page to test Unit was configured to redirect to https in the
> same way, and that's working fine.
> 
> All my sites run under Wordpress, so I think I need to look at that to
> find a solution

Your nginx configuration is fine.  In this case it's not nginx causes
redirection loop, but WordPress.

In your case nginx receives request over https then proxies it to Unit
using http.  WordPress sees this request as http and tries to redirect
to https (but it's already https between client and nginx).  This repeats
again and again.

Please, try these steps:
https://wordpress.stackexchange.com/questions/200053/disabling-https-redirection-for-migration

  wbr, Valentin V. Bartenev




 




More information about the unit mailing list