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

Guests: 42

151.80.x.x forum
151.80.x.x forum
178.255.x.x forum
188.40.x.x dilbertplus
216.244.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x user
46.229.x.x dilbertplus
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 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
54.224.x.x forum
54.36.x.x lgsl
54.36.x.x forum
54.36.x.x dilbertplus
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 user
54.36.x.x top
54.36.x.x forum
54.36.x.x lgsl
66.249.x.x download
66.249.x.x forum
66.249.x.x forum
66.249.x.x forum
78.47.x.x forum
94.130.x.x forum

Last Seen

Apophis01 Fri 01:49
85filip58 Wed 07:00
mrstipfan Wed 02:40
miaryan Thu 08:16
Bommel Tue 16:39

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