One of my projects is deployed on webfaction with an app to handle http and a separate app to handle https. If you specify in webfaction to use https for a particular app, then it will only proxy the https requests to it (for the most part, at least in the work I've done, it makes no difference to Pylons).
I don't know how to use http and https in the same Pylons program so I can't help you there, but one thing to note with webfaction is either way you'll need to setup two separate websites under "Domains/websites" and then "Websites", and specify that one uses https. You can have the sites both point to the domain and use the same application, but if you don't have two separate "websites" in webfaction, then any https requests to an http web app will take you to a generic "coming soon" page, and vice versa (I believe there might be a way to configure mod_rewrite to account for this too, but I haven't looked into it). Also, the port number with webfaction isn't a concern -- it's just used internally. When people go to your site it will automatically use port 80 for http and 443 for https, regardless of the internal port their server uses to proxy to your application. Cheers, Eric On Thu, Oct 14, 2010 at 4:54 PM, dunderhead <[email protected]> wrote: > > I have a controller, let's call it CentralController. I want to have the > normal home page at index and a few other misc. actions. Since logging in > is > pretty much a central action, I want it to be in the same controller. I > can't quite figure out how I have this action use ssl/https and still have > the other actions use normal http. > > If I have > > ssl_pem = somepath/my.pem > port = 443 > > the whole app is ssl. Furthermore, I don't know how this works on the host > provider, webfaction, since they issue the port number. > > Do I need my secure stuff to be handled by a separate app? > > I have searched but I cannot seem to find something that clearly explains > this business. > > Thanks, > Dunderhead > -- > View this message in context: > http://pylons-discuss.1595796.n2.nabble.com/ssl-on-a-single-action-tp5637179p5637179.html > Sent from the pylons-discuss mailing list archive at Nabble.com. > > -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<pylons-discuss%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/pylons-discuss?hl=en. > > -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
