SSL configuration

I am trying to configure the ssl_requirement plugin. For my user controller, I would like to require ssl for the new and create. When I open users / new, the browser redirects to https, but I cannot connect the error message. The application error log states:

The filter chain is stopped as [: provide_proper_protocol] rendered_or_redirected.

I am not sure if I configured the plugin correctly or I made a mistake with the nginx configuration.

+4
source share
3 answers

Make sure your form_for uses a secure URL:

 form_for @user, :url => user_path(:secure => true) 
+1
source

This is similar to what you should see. The request was recognized by http and was redirected for service via https .

If you are on your development machine, it will redirect you to https: // localhost / rest_of_url , so if you do not have a server running on port 443 on your computer, then it is going to give an error.

Is your browser being redirected?

0
source

It seems that when I installed nginx through the passenger, I did not receive the ssl module. I came back and installed nginx from the source file.

0
source

Source: https://habr.com/ru/post/1304835/


All Articles