I have been looking all over and either I can't find anything or I can't find anything that works... so here I am.
How can I go about setting up SSL/HTTPS with regards to Mongrel?
Thanks in advance!
|
I have been looking all over and either I can't find anything or I can't find anything that works... so here I am. How can I go about setting up SSL/HTTPS with regards to Mongrel? Thanks in advance! |
||||
|
|
|
You run it through a real webserver first, like nginx or Apache, which does the SSL work for you, and then passes back a header saying whether or not the connection was made via SSL (only important if you're doing things like redirecting if a needs-to-be-secure page was accessed without SSL). In theory, I guess you could stick stunnel in front of mongrel and do it that way, but the reasons not to are huge and scary, so just don't. |
|||||
|
|
I struggled with this for a while. Mongrel prefers 'The Ruby Way' which is different then the Apache way. Configure Apache HTTP to serve HTTPS traffic. Then proxy the plaintext/HTTP connections on the backend.
|
|||
|
|