SSL + Lighty + SCGI Beginner's Help Please

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 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. Also, how do you start
using SSL? Configuring Lighty and/or SCGI to use SSL. Create a
certificate to use during development? Start Lighty and my app. Also
sample code for controllers to handle a login with https.

I do appreciate your help and time on my problem. If there are other
avenues other then lighty & SCGI, please recommend them to me.

are you a beginner in all aspects or just configuring the 3 to work
together.
ie do you have experience with rails,mysql or lighty ???

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:
http://trac.lighttpd.net/trac/wiki/Docs%3ASSL

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).

Jeremy,

Thanks for the quick reply. I'm still lost on ruby-style gems? What is
that? Could you provide a link please.

d

Dl Lo wrote:

Thanks for the quick reply. I'm still lost on ruby-style gems? What is
that? Could you provide a link please.

http://code.jeremyevans.net/doc/ruby-style/README.txt

Ok everyone,

I tried my best and this is as far as I got. I can see the "Welcome
Rails" screen when I type in 127.0.0.1. But I can't see any of my
controller/views. Here is my lighttpd-inc.conf file. It is currently
located in "C:\Program Files\LightTPD\conf"

# LightTPD Configuration file (INCLUDE)