Cant get SSL to work with oscommerce

I spent the better part of a day working on the problem of oscommerce not using the SSL certificate at the appropriate time.  I already had the SSL certificate installed properly.  I visited the confige.php until I had it memorized, you can test me.  My server, IIS on an HSphere cluster, worked fine with the standard install on application_top.php of
$request_type = (getenv(‘HTTPS’) == ‘on’) ? ‘SSL’ : ‘NONSSL’;
so I did not need to change it to
$request_type = (getenv(‘HTTP_X_FORWARDED_HOST’) == ‘ssl.perfora.net’) ? ‘SSL’ : ‘NONSSL’;

But no matter what I did I could not get the ssl to work.  I gave up.  That takes alot, but I gave up.  I was later working on another issue when I relized that the config.php file I had memorized had the wrong database information.  How is that possible you ask??  Because there is another config.php file in the includes/local folder.

Once I set the setting correct in this folder everything worked perfectly.  Yeah me!! Yeah osCommerce.  And of course Yeah my happy customer.

Author: eweb-admin



Print