Tuesday, March 31, 2009

Re: Webroot problem when accessing cake app through service provider's SSL

Thanks for your help!

I still can't get it to work however. I tried any possible settings in
the .htaccess.

The problem is that cake defines the webroot directory in views as "/
ssl/application_name/" when it shoud be because of the SSL "/
thesite.com/application_name/".

Because that directory is set wrong all includes (css, javascript) and
form actions point to that wrong directory. Where does cake get this
directory? It can be echoed in a view (echo $this->webroot). Is there
some setting where I can change this value?

On Mar 30, 3:45 pm, Martin Westin <martin.westin...@gmail.com> wrote:
> Just guessing but try this:
>
> http://book.cakephp.org/view/37/Apache-and-mod_rewrite-and-htaccess
>
> The last part about setups that have already been "rewritten". Your
> provider might be using mod_rewrite for it's ssl urls and then Cake's
> rewriting will not work as expected.
>
> /Martin
>
> On Mar 29, 8:02 pm, karma <karma....@gmail.com> wrote:
>
> > Hi!
>
> > I have a problem getting cakephp to set correct webroot directory.
> > I've the webroot installed in "/ssl/application_name
> > /webroot" folder at the service providers server. The application
> > works perfectly when I access it through
> > "www.thesite.com/ssl/application_name".
>
> > BUT
>
> > The service provider offers SSL-encryption through this centered
> > service, where the site is accessed through address "https://
> > ssl.serviceprovider.com/thesite.com/application_name/". This messes
> > the application up cause the webroot is not set correctly. I tried to
> > change WWW_ROOT constant but it doesn't help. If I echo $this->webroot
> > in a view it says "/ssl/application_name/". I need to get this
> > application to work through this centered SSL.
>
> > So, how could I get the application work correctly in this kind of a
> > setup? I'm in quite a hurry to get this to work so any help is
> > appreciated!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: