SSL Not Working
Patrick Leahy
5 posts
|
Hello folks: 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. Cheers, |
Sam Ruby
197 posts
|
I haven’t seen any evidence that Mongrel directly supports SSL, meaning that some sort of routing through another server is required. If that doesn’t work for you, an alternative you might want to explore is Passenger. I haven’t tried Passenger with SSL myself, but this post indicates that it can be done. Those instructions specify RailsEnv “id”... you might want to try “development” or “production” instead. |
Patrick Leahy
5 posts
|
Sam how do you route through another server exactly? I know I need to use Apache on a “cluster of Mongrel servers” but I just don’t know how to do that. Everything I’ve read on Google seems to have this underlying assumption that I know how to do this – I’ve only been using Rails a month or two so I’m a bit stuck. Thanks mate. |
Michael Matt...
8 posts
|
I don’t know much about this subject. Does this link help at all? |
Patrick Leahy
5 posts
|
Mike that guide looks almost perfect – until I read the little Linux disclaimer that warned against a Windows deployment. Thing is, I’m running and have been developing on Vista Home Premium. I really hope I don’t have to switch operating systems here just to get this bloody thing to work. I guess I’ll start with this: what OS are you (and anyone reading) running? |
5 posts, 3 voices
