Problem solved, server config issue.

Now for the real question!! Is what I've done the best practice???

Thanks!!

On Nov 7, 1:02 pm, rgreenphotodesign <[EMAIL PROTECTED]>
wrote:
> If it helps, I'm running a Linux server with Ubuntu. Apache set up as
> virtual hosts. So it may be a config issues there, but my doc root is
> set correct on my 443 VH.
>
> On Nov 7, 12:43 pm, rgreenphotodesign <[EMAIL PROTECTED]>
> wrote:
>
> > Hi All,
>
> > I'm working on implementing the security component for the follow
> > functionality:
>
> > My site will have a "donate" page that will accept CC's and such so
> > need to be https://.
>
> > In my controller I'm using the beforeFilter with requireSecure and the
> > action I'm securing. My blackHoleCallback function is as follows:
>
> >  function secureAction($param)
> >     {
> >         if (!env("HTTPS")) {
> >           $this->redirect("https://".env('HTTP_HOST')."/".
> > $_GET['url']);
> >         }
>
> >     }
>
> > The redirected URL looks good except I get Not Found errors. All links
> > after I've switched to https get the same error. I've got to be
> > missing something that is like stupid simple, but obviously I'm
> > missing it. Is this a code problem(me not using cake correct, not an
> > internal cake code problem!!) or a server configuration issue?
> > Any hints or help would be wonderful!
>
> > Thanks, Russ
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to