Http and SSL within the same app?

All -

I’m working on an eCommerce app built on rails. It will be relatively
small at first and I’m not expected too much traffic. I’m considering
either Pound+Mongrel or Apache+Mongrel. My question is this: I want
several pages in the app to be standard http (home page, about us page,
etc) but I want the credit card transaction piece to be secure using
https and SSL. Can I do this within the same rails application?

Up to this point, I’ve seen that you can create a virtual host on either
Apache or Pound that points requests on 443 to your application, however
I only want specific views to be secured.

I’m quite new at this rails deployment stuff so please feel free to give
me advice on setup, hosting, etc.

Thanks,
Drew

On 2/22/07, Drew O. [email protected] wrote:

Up to this point, I’ve seen that you can create a virtual host on either
Apache or Pound that points requests on 443 to your application, however
I only want specific views to be secured.

You’re on the right track. Create your virtual hosts so port 80 and
443 hit your app. Then use the
http://svn.rubyonrails.org/rails/plugins/ssl_requirement plugin to
secure certain views.


Zack C.
http://depixelate.com

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs