It may just be a configuration error with my Http server itself that I need to look into.
In a debian VM, It was automagically able to work with HTTPS as you mention.
In the webserver that was thrust upon me, not so much. In looking into codeigniter, one of the ways to go ssl is set :
$config['base_url'] = "https://www.yoursite.com/";
at the beginning of /system/application/config/config.php Which already has some attempt at smart detection:
if(isset($_SERVER['HTTP_HOST'])) { $config['base_url'] = isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on' ? 'https' : 'http'; $config['base_url'] .= '://'. $_SERVER['HTTP_HOST']; $config['base_url'] .= isset($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] != '80' ? ( ':'.$_SERVER['SERVER_PORT'] ) : ''; $config['base_url'] .= str_replace(basename($_SERVER['SCRIPT_NAME']), '', $_SERVER['SCRIPT_NAME']); }
So I'm guessing this old server(it claims to be a variant of linuxfromscratch) doesn't handle $_SERVER['HTTPS'] properly, cause it defaults to http. How that gets set, I have no idea. Forcing it to use SSL by changing
$config['base_url'] = isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on' ? 'https' : 'http';
to
$config['base_url'] = 'https';
Has worked for me (submitting and browsing results has been tested so far), while i can try to find out more information.
|