Reputation: 451
I have enabled the config.force_ssl=true
, but i am trying to do a redirect to some domain with the help of config.ssl_options = {redirect: { host: "www.google.com", port: 8080 }}
.
But, config.ssl_options
is not working.
Ref:
Any help would be appreciated.
Thanks
Upvotes: 2
Views: 1236
Reputation: 176392
The code you referenced is from a commit that doesn't belong to Rails 4.x, here's the version of the same file in Rails 4.2.5.1
You'll have to use this syntax:
config.ssl_options = { host: "www.google.com", port: 8080 }
Upvotes: 3