Username:    Password:        Click Here To Signup     Forgotten Password
Main Menu
Online
Members: 0

Guests: 37

46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x dilbertplus
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
54.158.x.x forum
54.36.x.x dilbertplus
54.36.x.x forum
54.36.x.x forum
54.36.x.x forum
54.36.x.x dilbertplus
54.36.x.x forum
54.36.x.x dilbertplus
54.36.x.x forum
54.36.x.x dilbertplus
54.36.x.x dilbertplus
54.36.x.x forum
54.36.x.x guestbook
54.36.x.x forum
54.36.x.x forum
54.36.x.x forum
54.36.x.x forum
54.36.x.x dilbertplus
54.36.x.x forum
54.36.x.x forum
54.36.x.x forum
54.36.x.x forum
54.36.x.x forum
66.249.x.x forum

Last Seen

Wussie Wed 01:56
suzain lian Fri 07:52
85filip58 Wed 12:37
mmotony Sat 04:27
Dodgeitorelse Fri 12:48

Newest Members

Forums
Suggestion on better SSL support
XerraX
Thu Mar 12 2009, 04:46AM

Posts: 40
Joined: Sat Nov 25 2006, 12:23PM
Registered Member #2699
i would recommend to change

    // USE FULL DOMAIN PATH TO AVOID ALIAS PROBLEMS

    $host_path = "http://".($_SERVER['WEBC_USER_DOMAIN_NAME'] ? $_SERVER['WEBC_USER_DOMAIN_NAME'] : $_SERVER['SERVER_NAME']);

into this

    // USE FULL DOMAIN PATH TO AVOID ALIAS PROBLEMS
    $prot =    "http";
    
    if (isset($_SERVER['HTTPS'])) 
            $prot =    "https";

    $host_path = $prot."://".($_SERVER['WEBC_USER_DOMAIN_NAME'] ? $_SERVER['WEBC_USER_DOMAIN_NAME'] : $_SERVER['SERVER_NAME']);

to support SSL.

ReAliTy iS JuST a DrEAm. HaCk ThE PLaNet!
Website
Rich
Tue Apr 14 2009, 08:21AM
Posts: 1717
Joined: Wed Nov 26 2003, 04:30PM

Good point, I never thought about SSL support before.

Code has been added for the next release.

As a side note, just checking that the variable is set is not enough, as on IIS it also has $_SERVER['HTTPS'] = "off";
Website
 

Jump:     Back to top


You are not logged in - Click Here To Signup

Username:    Password:   

Mini Buttons

.... © GreyCube.com - Richard Perry - Powered by e107.org