Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Files in Secure folder


Guest

Recommended Posts

Posted

Hi

 

I have purchased a full SSL certificate for my website and it has been installed by my web hosting company. According to my web hosting company any files I want to secure need to be placed in a root folder called secure on the web server. So currently my file structure for my store is public/catalog this secure folder resides at the same level as the public one.

 

Two questions:

 

1. I want to secure account login, create an account and all the checkout pages, which OsCommerce files exactly do I need to copy into the secure folder for the SSL certificate to work on these pages and do I need to maintain the folder structure of catalog/includes/languages/english within the secure folder as well?

2. Is there anything special I need to do to the configure.php file? This is currently how I have it configured.

 

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

define('HTTPS_SERVER''https://www.mycompany.ca''); // eg, https://localhost - should not be empty for productive servers

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

define('HTTP_COOKIE_DOMAIN', 'www.mycompany.ca');

define('HTTPS_COOKIE_DOMAIN', 'https://www.mycompany.ca');

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

define('HTTPS_COOKIE_PATH', '/catalog/');

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

define('DIR_WS_HTTPS_CATALOG', '/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/');

 

Looking at this I am not sure if I need the secure before the catalog for the HTTPS directs.

 

I had posted this before and had a reply stating that my webhosting company was mistaken and I shouldn't need to move files. But the above does not work and I have checked with their customer service and have been told that I do need to place any secure files into the secure folder.

 

Thanks

Posted

I have resolved the problem in case anyone has the same issue. I had to do a complete copy of the catalog into the secure folder maintaining the conigure.php files as I had shown in my post.

 

Cheers

Posted
I have resolved the problem in case anyone has the same issue. I had to do a complete copy of the catalog into the secure folder maintaining the conigure.php files as I had shown in my post.

 

Cheers

Just so you know...

 

The two folder issue is easily solved by your hosting company. They can set it up so that there's no need to maintain a duplicate set of files.

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)

Archived

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

×
×
  • Create New...