Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Hosting Requirements /

What you need to consider when choosing a hosting provider and plan.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

SSL on a load balancer

Go to End



Community Member, 2 Posts

17 June 2010 at 1:15pm

I'm trying to get ssl to work on a load balanced enviroment.

As the servers under the load balancer (in it's local network) connect to the LB via port 80/http and the load balancer handles the ssl connection to the client. I'ev found I can't use Director::forcessl(); to force the site to use ssl.

So by forceing the url to ssl in the load balancer, I get ssl but then the site doesn't work properly. When I first tried this I found I couldn't login as the Security/login page would post to the none enrcypted security/loginform page. Since then I've setup a completly standalone clean install of the latest SS build 2.4 to test with. I found that the all the urls to the js and css are http and don't load in the forced enviroment and when I try to login I get redirected back to the home page.

Has anyone run into anything like this before?