ktaylor Posted April 26, 2009 Posted April 26, 2009 I recently moved two osCommerce shops to a new webhost. Both shops switch to an https:// url when check out is clicked, but only one (the store using the shared secure server) displays the golden lock in the bottom of the browser. The store that does NOT display the lock has it's own private SSL. Our application_top.php is set as follows for line 41: // set the type of request (secure or not) $request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL'; Our host uses port 80 for nonsecure pages and 443 for secure. I ran the following test: <?php echo 'HTTP HOST: ' . "$HTTP_HOST"; echo '<br>Server Port: ' . getenv('SERVER_PORT'); echo '<br>SSL Status: ' . getenv('HTTPS'); echo '<br>Fowarded Server: ' . getenv('HTTP_X_FORWARDED_SERVER'); echo '<br>Fowarded Host: ' . getenv('HTTP_X_FORWARDED_HOST'); echo '<br>Fowarded By: ' . getenv('HTTP_X_FORWARDED_BY'); ?> And the results were: nonsecure http: HTTP HOST: www.ribcity.com Server Port: 80 SSL Status: Fowarded Server: Fowarded Host: Fowarded By: secure https: HTTP HOST: www.ribcity.com Server Port: 443 SSL Status: on Fowarded Server: Fowarded Host: Fowarded By: Thank you for any help you can provide! Kim
germ Posted April 26, 2009 Posted April 26, 2009 SSL Help support thread 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 >
Recommended Posts
Archived
This topic is now archived and is closed to further replies.