Ssl issue with WI server

Submitted by Si1ver on 2011-10-27

I'm not sure this information is useful but I didn't found anything in readme, forums and wiki about that.

WebIssues server not working over https. I've tried with alpha4, beta2.
I'm using Apache on Linux and default installation of WebIssues.

This can be quick fixed adding

$_SERVER['HTTPS'] = 'on';
$_SERVER['SERVER_PORT'] = '443';

to the beginning of php code in system/bootstrap.php.inc

After this fix everything works fine on https, including web installer and desktop client.

I have no idea how to fix this nicely to work with both http and https.

Regards,
Anton Vasiliev.

Generally, the web server is supposed to set $_SERVER['HTTPS'] to 'on' if the page is accessed using https. However, sometimes, for whatever reason, it fails to do that.

Your workaround is fine, but I would recommend putting it in sites/default/config.inc.php (after this file is created by the installer, of course). This way it won't be overwritten when you upgrade your server. Alternatively, you can set the HTTPS environment variable to on using .htaccess file.

Regards,
Michał

Installer is also affected by this issue so the right way is to put it in bootstrap first to complete installation.

Anyway if I would find the reason I'll post it here.

Thanks,
Anton Vasiliev