Forum OpenACS Q&A: Re: how to force/redirect to https?

Collapse
Posted by Benjamin Brink on
Emmanuelle,

Try setting the RestrictToSSL parameter for the main subsite instance at /admin/site-map to: "/*" (without quotes).

cheers,
Benjamin

Collapse
Posted by Emmanuelle Raffenne on
Hi Benjamin,

I've tried that and it wouldn't work. Then, reading your answers, I realized that probably I need to restart the server so the redirection would be effective and, yes, that was it 😊.

So finally, I've set RestricToSSL to "*" for the main site, without the leading slash otherwise it wouldn't work. I didn't need to set ForceHostP to 1.

Thanks for your help.

Collapse
Posted by Jim Lynch on
Heya Emmanuelle,

Curious, why would one choose to not set ForceHostP? Why choose to set it?

-Jim