Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Shared SSL


bram

Recommended Posts

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

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

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

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

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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...