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
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
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
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
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
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
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
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
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
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
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
11 matches
Mail list logo