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

Guests: 28

3.80.x.x forum
35.192.x.x forum
46.166.x.x news
46.229.x.x forum
46.229.x.x dilbertplus
46.229.x.x forum
46.229.x.x forum
46.229.x.x dilbertplus
46.229.x.x dilbertplus
46.229.x.x forum
46.229.x.x forum
46.229.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 user
54.36.x.x forum
54.36.x.x forum
54.36.x.x user
54.36.x.x dilbertplus
54.36.x.x dilbertplus
54.36.x.x forum
54.36.x.x dilbertplus
54.36.x.x forum
54.36.x.x forum
77.75.x.x online
91.242.x.x forum

Last Seen

»Stefan Wed 17:17
Gagi2 Tue 04:39
tltneon Wed 17:22
Nouton^ Wed 20:07
mrstipfan Wed 10:54

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