Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Not switching to ssl


Guest

Recommended Posts

I have osc running perfectly but then tried to link to the checkout on the secure server, which is a shared server but which has a different ip address.

 

I have modified the config files in the configure.php in both the catalog and admin on the server that hosts the catalog and modified the configure php for the secure server, however when I click on signing up for a new account or add something to the shopping cart it does not go to the https:// server.

 

Is there something else that needs changing which I am missing? The config files indicate the https: sever and is set to true for the secure cart. I would appreciate any suggestions as the cart seems to be working as if the secure server was set to false in the config.

 

thanks,

Link to comment
Share on other sites

post your /catalog/includes/configure.php file here

 

and a link to the site in question

post your /catalog/includes/configure.php file here

 

define('HTTP_SERVER', 'http://mayafairtrade.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://secure.lightningwebserver.com/mayafairtrade/catalog/'); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', true); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'mayafairtrade.com');

define('HTTPS_COOKIE_DOMAIN', 'secure.lightningwebserver.com/mayafairtrade/catalog/');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

define('DIR_WS_HTTP_CATALOG', '/');

define('DIR_WS_HTTPS_CATALOG', '/home/lightnin/public_html/mayafairtrade/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', '/home/mayafair/public_html/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

and a link to the site in question

http://www.mayafairtrade.com/index.php -- will remove index.html when site is working.

thanks,

Link to comment
Share on other sites

Look in includes/local for another configure.php file.

 

I'm not sure why some people end up with it in there and others do not. It's not needed (it's a developer tool) but before you delete it make sure that the primary one (includes/configure.php) is complete and accurate.

 

There's a test in application_top.php that checks for the existence of this file and if it exists it loads it.

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

what is your actual document root? you need to check with your host regarding the alias for your ssl cert link, i think you have that wrong

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...