Too many redirects error while trying to configure rails application as SSL using nginx and unicorn

前端 未结 2 913
星月不相逢
星月不相逢 2021-02-04 03:42

I am trying to configure a Rails application with SSL, using Nginx and Unicorn. I am trying to set it up locally. For that I first created a self-signed certificate using OpenS

2条回答
  •  旧巷少年郎
    2021-02-04 04:34

    Copying the answer from the comments in order to remove this question from the "Unanswered" filter:

    Try changing 'rewrite ^/(.*) http://...' to 'rewrite ^/(.*) https://...' and remove listen 80 from the 2nd server block

    ~ answer per house9

提交回复
热议问题