Using https with Flux CMS
Using https with Flux CMS is not a problem by design, but we had the following harcdoded by default in config.xml:
<constants>
<constant name="BX_WEBROOT">http://{$_SERVER['HTTP_HOST']}/</constant>
</constants>
This always switches back to http:// and therefore make the https:// mode unusable.
If you only want to use https, the solution is easy, just change http:// to https:// above. But if you're in a mixed environment, you were lost. Until now. Apply this patch to your installation and change the above config line to
<constants>
<constant name="BX_WEBROOT">http(s)://{$_SERVER['HTTP_HOST']}/</constant>
</constants>
and it should work in both, http and https. Of course, you can also just update your installation to the latest trunk or 1_4 branch (but you still have to change the config.xml, and the http-only is still the default, if you install from scratch)
Update: There was one check in master.xsl for http://, therefore you have to patch that to. See this patch for the details.
Comments
already posted in another thread. awaiting the actual version of flux.
i want to test it out and if you can also use it with HTTPS it´s also possible to use it for commercial sites. nice work. please keep it up.
add a comment
This blog is gravatar enabled.
Your email adress will never be published.
Comment spam will be deleted!
