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

Guests: 19

110.143.x.x forum
216.244.x.x forum
23.106.x.x forum
46.229.x.x dilbertplus
5.255.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 dilbertplus
54.36.x.x lgsl
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.81.x.x forum

Last Seen

mrstipfan Tue 04:13
Dodgeitorelse Mon 19:28
haigiacmo06 Mon 05:48
85filip58 Sun 10:02
Wussie Sat 03:07

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