bram Posted December 29, 2003 Share Posted December 29, 2003 ok here we go. www.clearjewel.com congif.php looks like: define('HTTP_SERVER', 'http://www.clearjewel.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://www.sslpage.com/clearj'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', 'true'); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'www.clearjewel.com'); define('HTTPS_COOKIE_DOMAIN', 'www.sslpage.com/clearj'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/'); define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME'])); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); Link to comment Share on other sites More sharing options...
bram Posted December 29, 2003 Author Share Posted December 29, 2003 includes/application_top.php: line 41 was changed to // set the type of request (secure or not) //$request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL'; $request_type = ($HTTP_SERVER_VARS['SERVER_PORT'] == 443) ? 'SSL' : 'NONSSL'; Link to comment Share on other sites More sharing options...
bram Posted December 29, 2003 Author Share Posted December 29, 2003 The lock in IE6.0 windows xp is still missing. I'm getting the base href as <base href="http://www.clearjewel.com/"> So what's next? Any suggestions? I've been searching and reading the forum, but nothing seems to be working. Link to comment Share on other sites More sharing options...
bram Posted December 29, 2003 Author Share Posted December 29, 2003 define('HTTP_SERVER', 'https://www.clearjewel.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://www.sslpage.com/clearj'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', 'true'); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'clearjewel.com'); define('HTTPS_COOKIE_DOMAIN', 'www.sslpage.com/clearj'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', 'https://www.sslpage.com/clearj/'); Now this is making the entire site secure. Any suggestions? Link to comment Share on other sites More sharing options...
Guest Posted December 29, 2003 Share Posted December 29, 2003 I have seen the following kind of configuration work for some people: define('HTTP_SERVER', 'http://www.clearjewel.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://www.sslpage.com'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', 'true'); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'www.clearjewel.com'); define('HTTPS_COOKIE_DOMAIN', 'www.sslpage.com'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/clearj/'); define('DIR_WS_HTTP_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/clearj/'); HTH Matti Link to comment Share on other sites More sharing options...
Guest Posted December 29, 2003 Share Posted December 29, 2003 I had the same problem awhile back and this is what I did to fix it... Replace this code in application_top.php (around line 40): Code: $request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL'; with this: Code: $request_type = (eregi ($HTTP_HOST, HTTPS_SERVER)) ? 'SSL' : 'NONSSL'; Hope this helps ;) Link to comment Share on other sites More sharing options...
saJezza Posted January 1, 2004 Share Posted January 1, 2004 Thank you Emerson, I had the same problem and your little piece of code has solved the problem. Just embarked upon the greatest journey of my life........ Link to comment Share on other sites More sharing options...
Guest Posted January 2, 2004 Share Posted January 2, 2004 YW ;) Glad it helped :) Link to comment Share on other sites More sharing options...
spectr17 Posted January 2, 2004 Share Posted January 2, 2004 We've got our own SSL cert on our own domain and have the same missing padlock problem. Would the fix from Emerson be our fix too? Replace this code in application_top.php (around line 40): Code: $request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL'; with this: Code: $request_type = (eregi ($HTTP_HOST, HTTPS_SERVER)) ? 'SSL' : 'NONSSL'; Thanks. ~spectr17 Link to comment Share on other sites More sharing options...
Guest Posted January 2, 2004 Share Posted January 2, 2004 We've got our own SSL cert on our own domain and have the same missing padlock problem. Would the fix from Emerson be our fix too? Replace this code in application_top.php (around line 40):? Code:? $request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL';? with this:? Code:? $request_type = (eregi ($HTTP_HOST, HTTPS_SERVER)) ? 'SSL' : 'NONSSL';? Thanks. It should work. Can't hurt. You can always reverse it if it doesn't :) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.