Dl Lo wrote:
Hi everyone,
I tried looking around google and found not too many clear and elaborate
tutorials for a absolute beginner. I knew I could count on all the
people here. Here is what I want to do. I want to have a SSL
connection for logging in and for transactions. I did not actually
start yet, just trying to get the know how first. I read at places the
things to have are Lighty and SCGI which I have downloaded.
The Lighty-SCGI combination is not really recommended any more (and I
say that as the maintainer for ruby-scgi), but it does work fine.
The db I
wanted to use was MySQL. Now here is where I need help. How do you
configure lighty and SCGI to work with my app.
Assuming you are using the latest scgi gem (0.9.0) you should be
deploying with ruby-style (the successor to scgi_ctrl). Read the README
to both the scgi and ruby-style gems.
Also, how do you start
using SSL? Configuring Lighty and/or SCGI to use SSL.
Read Lighty's documentation:
Create a
certificate to use during development?
Lighty's SSL documentation page has an example
Start Lighty and my app.
Read the ruby-style gem's README for starting Rails. The lighty
documentation probably has an exampe for starting lighty.
Also
sample code for controllers to handle a login with https.
Controller code is no different. The link in your view should specify
https (preferably you should be using https on the page that contains
the login form as well). If you want to only allow logins via SSL,
check out the ssl_requirement plugin.
I do appreciate your help and time on my problem. If there are other
avenues other then lighty & SCGI, please recommend them to me.
Mongrel+(Nginx or Apache 2 mod_proxy_balancer) seems to be the recommend
production deployment setup these days. I'd recommend using ruby-style
for clustering, though there are other options (mongrel_cluster,
seesaw).