Re: SSL Help

2012-09-14 Thread sophistry
Hello cakephp people from 18 months ago, I was working on this today and fixed it. nginx needs to be told send the SCRIPT_URI param to PHP. put this in your facstcgi_params file # added so that cakephp redirects https properly # no scheme info was available in the environment/$_SERVER # so, w

RE: SSL Help

2011-03-12 Thread Krissy Masters
Ok sorry for all the SSL questions. I am not sure if its because I am on nginx. but all tips / guides / cookbook show function forceSSL() { $this->redirect('https://' . env('SERVER_NAME') . $this->here); } All that did was loop me never ending error. So after debugging server variable

Re: SSL Help

2011-03-12 Thread Shinya Koizumi
in order to support SSL do i have to change anything on my program? I thought we only need to deal on system level. Install and change apache config On Fri, Mar 11, 2011 at 9:57 PM, Krissy Masters wrote: > Thanks everyone. > > @Jeremy Will give this a shot. Found a SSL component I guess pre-your

RE: SSL Help

2011-03-11 Thread Krissy Masters
Thanks everyone. @Jeremy Will give this a shot. Found a SSL component I guess pre-your modifications. Keep you posted. K -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with

Re: SSL Help

2011-03-11 Thread Jeremy Burns | Class Outfit
This can help, but I have found it a bit unreliable: core.php: Configure::write('Session.cookie_secure', false); Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 12 Mar 2011, at 05:40, Dr. Tarique Sani wrote: > Just from top of the head here. Redirection from

Re: SSL Help

2011-03-11 Thread Sam Bernard
You're getting infinite redirects because there is no condition in your forceSSL function- have it check for https first, otherwise it will just keep redirecting: function forceSSL( if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ) { return; } else { $this

Re: SSL Help

2011-03-11 Thread Jeremy Burns | Class Outfit
I achieved this using a component called SSL - I can't remember where I got it from, but I am sure a search will turn it up. I had to alter it a bit as the server I used it on had all sorts of edge servers and so on, but here's my final implementation. The cool thing is that you have a single ar

Re: SSL Help

2011-03-11 Thread Dr. Tarique Sani
Just from top of the head here. Redirection from https to http mean you will loose your session and in turn your authentication. Most likely you are trying to redirect your user to an action which requires authentication but is not on https, thus that action redirects the user back to login on htt

RE: SSL help

2010-12-18 Thread Dave Maharaj
Yep Plesk. I did see that option and did set it to use same directory and problem solved! Thanks. Dave From: LightDot [mailto:light...@gmail.com] Sent: December-18-10 9:10 AM To: cake-php@googlegroups.com Subject: Re: SSL help Sounds like a server with a Plesk control panel

Re: SSL help

2010-12-18 Thread LightDot
Sounds like a server with a Plesk control panel? There is an option to serve both standard and SSL pages from the same directory. If you can't set that, you'll have to duplicate your code in both httpdocs and httpsdocs folders. Now, that perhaps might have some consequences in regards to cache

Re: SSL help

2010-12-17 Thread Ryan Schmidt
On Dec 17, 2010, at 14:58, Dave Maharaj wrote: > This is my first crack at SSL on a Cake site so first question after my > attempt is. > > Server has httpdocs and httpsdocs. The site is in httpdocs/app so how does > this work? I get blank page when I go to https/site/login so my first guess