Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SSL Certificate Setup - InstantSSL


JnJSpdShop

Recommended Posts

__________________CODE_____________________

<?php

/*

?osCommerce, Open Source E-Commerce Solutions

?http://www.oscommerce.com

 

?Copyright © 2003 osCommerce

 

?Released under the GNU General Public License

*/

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

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

?define('HTTPS_SERVER', 'https://store.jandjspeedshop.com'); // eg, https://localhost - should not be empty for productive servers

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

?define('HTTP_COOKIE_DOMAIN', 'store.jandjspeedshop.com');

?define('HTTPS_COOKIE_DOMAIN', '');

?define('HTTP_COOKIE_PATH', '/jandjspeed/catalog/');

?define('HTTPS_COOKIE_PATH', '');

?define('DIR_WS_HTTP_CATALOG', '/');

?define('DIR_WS_HTTPS_CATALOG', '/'); <-- this was define(DIR_WS_HTTPS_CATALOG',''); before ?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/jandjspd/public_html/store/');

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

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

__________________CODE_____________________

 

 

The text in blue is stuff I changed already.

 

I was wondering if I need to change the text in red??

 

Also now that I have my own SSL, can I somehow get rid of the SessionIDs. I am not gonna both configuring the admin for SSL because it really doesn't matter. Are there any other files I have to modify. I seen some people talk about application_top and a few others

 

Thanks

Jay

Link to comment
Share on other sites

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

define('HTTP_COOKIE_DOMAIN', 'store.jandjspeedshop.com');

define('HTTPS_COOKIE_DOMAIN', 'store.jandjspeedshop.com');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

define('DIR_WS_HTTP_CATALOG', '/');

define('DIR_WS_HTTPS_CATALOG', '/');

 

Does this look right, what should the cookie paths actually be? My store is setup on a subdomain, so there is no longer a catalog folder, cause I know most people have it set to /catalog/ , will my having it just / work?? any problems with doing it that way.

 

Thanks

Link to comment
Share on other sites

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

define('HTTP_COOKIE_DOMAIN', 'store.jandjspeedshop.com');

define('HTTPS_COOKIE_DOMAIN', 'store.jandjspeedshop.com');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

define('DIR_WS_HTTP_CATALOG', '/');

define('DIR_WS_HTTPS_CATALOG', '/');

 

Does this look right, what should the cookie paths actually be?  My store is setup on a subdomain, so there is no longer a catalog folder, cause I know most people have it set to /catalog/ , will my having it just / work??  any problems with doing it that way.

 

Thanks

 

I can only say that I still have a catalog folder but I needed to have both cookie paths set to the same '/' to get it working properly. You should be able to tell quickly if it is okay when you don't see the osCid anymore within your URL address bar.

As for the cookie domain it is mostly advised to leave the www of so it would read for you

.jandjspeedshop.com

It's a bit error and trial to find out which configuration works as it is not always very obvious and/or the same as with others.

Link to comment
Share on other sites

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

define('HTTP_COOKIE_DOMAIN', 'store.jandjspeedshop.com');

define('HTTPS_COOKIE_DOMAIN', 'store.jandjspeedshop.com');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

define('DIR_WS_HTTP_CATALOG', '/');

define('DIR_WS_HTTPS_CATALOG', '/');

 

Does this look right, what should the cookie paths actually be?  My store is setup on a subdomain, so there is no longer a catalog folder, cause I know most people have it set to /catalog/ , will my having it just / work??  any problems with doing it that way.

 

Thanks

 

Hi,

 

I also used instant ssl. I installed in a subdomain and then in a sub folder called whls. Here is my code:

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
define('HTTP_SERVER', 'http://wholesale.myknifestore.com'); // eg, http://localhost - should not be empty for productive servers
define('HTTPS_SERVER', 'https://wholesale.myknifestore.com'); // eg, https://localhost - should not be empty for productive servers
define('ENABLE_SSL', true); // secure webserver for checkout procedure?
define('HTTP_COOKIE_DOMAIN', 'wholesale.myknifestore.com');
define('HTTPS_COOKIE_DOMAIN', 'wholesale.myknifestore.com');
define('HTTP_COOKIE_PATH', '/whls/');
define('HTTPS_COOKIE_PATH', '/whls/');
define('DIR_WS_HTTP_CATALOG', '/whls/');
define('DIR_WS_HTTPS_CATALOG', '/whls/');

 

Hope this helps.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...