Hello folks: I need some help setting up SSL using SslRequirement in my Rails app. I dutifully followed the tutorial in the Third Edition that starts on page 628 (26.9 Use SSL to Transmit Sensitive Information) yet I was rewarded with this error on my ssl_required pages only: Failed to Connect, Firefox can’t establish a connection to the server at localhost.
I’ve spent a good few hours on Google and apparently the reason is this:
I am building a Rails app that requires some portions of the site to use HTTPS, so naturally I’m using the SSL requirement plugin. The plugin works great, but if you’re using Mongrel or WEBrick running out of script/server in your development environment, you now won’t be able to talk to those parts of your site (since these servers do not include SSL encryption).(Quote: http://www.subelsky.com/2007/11/testing-rails-ssl-requirements-on-your.html)
That website offers a fairly involved and I might add, not effective, solution that involves routing through some sort of concurrent Apache server because Apache supports https and Mongrel does not.
I’m running Mongrel for my apps. Thing is, I KNOW that someone before me has wanted to test https pages using Mongrel and probably did it…I just don’t know how. Any pointers would be greatly appreciated - I’m close to pulling my hair out about this one.