1

Topic: Cannot Login in forum after changing to httms

Hello,

I installed a SSL certificate on my forum and want to access it under: _https://forexsb.com/forum/

I can read the forum, however when I want to post or to login, it gives an error as follows:

http://s10.postimg.org/6sfmf2h55/screenshot_234.png

After clicking to confirm, it gives error trying to access the site on port 80:

http://s10.postimg.org/kbwgkrv49/screenshot_235.png

My config.php is:

...
$p_connect = false;

$base_url = 'https://forexsb.com/forum'; 

$cookie_name = 'forum_cookie';
$cookie_domain = '.forexsb.com';
$cookie_path = '/';
$cookie_secure = 0;
define('FORUM', 1);
define('PUN_EXTENSIONS_USED', 1);
//define('FORUM_DEBUG', 1);

Any ideas how to fix it?

I'm using PunBB at Forex Forum since 2006.

Re: Cannot Login in forum after changing to httms

Add in config.php this code:

if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') {
    $_SERVER['HTTPS'] = 'on';
    $_SERVER['SERVER_PORT'] = '443';
}

3

Re: Cannot Login in forum after changing to httms

You are awesome!

You saved my day.

Miroslav Popov

I'm using PunBB at Forex Forum since 2006.