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

Guests: 26

157.55.x.x news
185.46.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 forum
46.4.x.x forum
54.225.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 top
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
54.36.x.x forum
54.36.x.x forum
66.249.x.x forum
77.75.x.x software_l..
83.60.x.x download
93.179.x.x forum

Last Seen

haigiacmo06 Wed 23:38
85filip58 Wed 11:04
Dodgeitorelse Tue 20:14
Wussie Tue 13:27
Rowdy Tue 21:12

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