sultanos Posted February 6, 2009 Share Posted February 6, 2009 Hello all I have a problem and is that whenever i create an account or log onto a created account from https side at my newly shared hosting i am kicked back without logging onto the http root of my web. My webspace has two webroots one --------------/httpsdocs/ webspace-| -------------/httpdocs/ here is the web: http://www.d1017658-4.cp.blacknight.com I have copied by ftp same files at both roots so i have 2 clons of the web at each webroot. https y http. configure file define('HTTP_SERVER', 'www.d1017658-4.cp.blacknight.com'); define('HTTPS_SERVER', 'https://cp.blacknight.com/ssl/87//lololo.com/'); define('ENABLE_SSL', true); define('HTTP_COOKIE_DOMAIN', 'www.d1017658-4.cp.blacknight.com'); define('HTTPS_COOKIE_DOMAIN', 'cp.blacknight.com/ssl/87//lololo.com/'); admin/configure file define('HTTP_SERVER', 'https://cp.blacknight.com/ssl/87//lololo.com/'); // eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', 'https://cp.blacknight.com/ssl/87//lololo.com/'); define('HTTPS_CATALOG_SERVER', 'https://cp.blacknight.com/ssl/87//lololo.com/'); define('ENABLE_SSL_CATALOG', true); If you are not part of the solution, you are part of the problem Link to comment Share on other sites More sharing options...
Guest Posted February 6, 2009 Share Posted February 6, 2009 define('HTTP_SERVER', 'http://www.d1017658-4.cp.blacknight.com'); define('HTTPS_SERVER', 'https://cp.blacknight.com'); define('ENABLE_SSL', true); define('HTTP_COOKIE_DOMAIN', 'www.d1017658-4.cp.blacknight.com'); define('HTTPS_COOKIE_DOMAIN', 'cp.blacknight.com'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/ssl/87/lololo.com/'); define('DIR_WS_HTTP_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/ssl/87/lololo.com/'); Link to comment Share on other sites More sharing options...
sultanos Posted February 6, 2009 Author Share Posted February 6, 2009 Thanks perfectpassion , but i still have the same problem as before, my account login is imposible with https set to true, it just keeps redirecting me to : http//www.misite.com/index This happens every time i create a new account or try to log in with an existing account. I made your changes but still the same , i also get a non secure objects message showing this page contains both secure and nonsecure items? Why does it say this if i have all the image copied at the https directory??!! If you are not part of the solution, you are part of the problem Link to comment Share on other sites More sharing options...
germ Posted February 6, 2009 Share Posted February 6, 2009 osC isn't recognizing the cue from the server that SSL is on. Read this: click me If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
sultanos Posted February 8, 2009 Author Share Posted February 8, 2009 Thanks Jim , withing other things among the cue , my server as you said didnt recogniced the cue , i solved this way . First my server still didnt recognice any of the methots listed at your link , surfing i found this one outside oscommerce forums this is the line at Includes/aplication_top.php that i had to comment out ,. $request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL'; This didnt work with my server getting no response whatsoever, in fact all methods found are included at my final solution , being the last one the one that worked at my server , at least the only one, i could asure that worked. This is the code i placed instead to make sure my base href changed to be able to use https without the non secure elements message alert // set the type of request (secure or not) //$request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL'; if($_SERVER["HTTPS"] == "on"){ $request_type = 'SSL'; } elseif ($_SERVER["HTTPS"] == 1){ $request_type = 'SSL'; } elseif ($_SERVER['SERVER_PORT'] == 443) { $request_type = 'SSL'; } else { $request_type = 'NONSSL'; } After this and after removing external images that had http links , wr3 validation logo , css validations , and rss. My web Remembered the oscid from http to https and gave no error on non secure elements. At the beggining i said , that this was not the only change, i made so many, that i am not actually sure what was the combination . Another thing i made was to add // The HTML href link wrapper function function tep_href_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = false, $search_engine_safe = true) { global $request_type, $session_started, $SID; // The HTML href link wrapper function function tep_href_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = false, $search_engine_safe = true) { global $request_type, $session_started, $SID,$kill_sid; ,$kill_sid Please note i added this , which i had at one https or http includes/functions/html_output.php file . I cloned both directories httpsdoc and httpdoc. Note that this gave me a lot of headache, for all changes must be done for https and http, at same time making sure that the changes were done, i say this becouse the configure.php(444) permisions dont let it be changed, be carefull with this , i set them both configure files at https and http directories to 777 while i tryed new solutions. I have heard about mirror directories, what you do in one is changed at the other, in fact both , https and http are physicaly the same one, but i think this must be done with admin permisions and that wasnt my case. I also changed my configure files to this. this is the one at /includes/configure.php define('HTTP_SERVER', 'http://www.d1017658-4.cp.blacknight.com'); define('HTTPS_SERVER', 'https://www.d1017658-4.cp.blacknight.com'); define('ENABLE_SSL', true); define('HTTP_COOKIE_DOMAIN', 'www.d1017658-4.cp.blacknight.com'); define('HTTPS_COOKIE_DOMAIN', 'www.d1017658-4.cp.blacknight.com'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/'); and this is the one at admin/includes/configure.php define('HTTP_SERVER', 'https://www.d1017658-4.cp.blacknight.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', 'http://www.d1017658-4.cp.blacknight.com'); define('HTTPS_CATALOG_SERVER', 'https://www.d1017658-4.cp.blacknight.com/'); This solutions has worked for me after one week googleling arround , i even made an account at an austraulian forum to send a PM to someone that had same simptoms, but finally and after all these advices shown before, that showed me the way, i/we solved . Thanks all. I Hope this helps someone else. If you are not part of the solution, you are part of the problem Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.