Sunday, March 29, 2009

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

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: