Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Which directory needs to be SSL for checkout?


dubie

Recommended Posts

What directory needs to be SSL for checkout time? Which physical directory needs to go into the SSL folder. And an example of the syntax in the configure.php file would be helpful. :) Thanks!

Link to comment
Share on other sites

You don't need to put any files in special folders, all you need to do is set the correct path for the SSL as shown below

catalog/includes/configure.php

 

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

define('HTTPS_SERVER', 'https://host73.ipowerweb.com/~mrsfield'); // eg, https://localhost - should not be empty for productive servers

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

define('HTTP_COOKIE_DOMAIN', 'www.mrsfieldsgoodies.com');

define('HTTPS_COOKIE_DOMAIN', 'host73.ipowerweb.com/~mrsfield');

define('HTTP_COOKIE_PATH', 'www.mrsfieldsgoodies.com/');

define('HTTPS_COOKIE_PATH', 'host73.ipowerweb.com/~mrsfield/');

 

catalog/admin/includes/configure.php

 

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

define('HTTP_CATALOG_SERVER', 'http://www.mrsfieldsgoodies.com');

define('HTTPS_CATALOG_SERVER', 'https://host73.ipowerweb.com');

define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module

define('DIR_FS_DOCUMENT_ROOT', '/home/mrsfield/public_html/'); // where the pages are located on the server

define('DIR_WS_ADMIN', '/admin/'); // absolute path required

define('DIR_FS_ADMIN', '/home/mrsfield/public_html/admin/'); // absolute pate required

Link to comment
Share on other sites

My host set up what they called a "symlink" so that the URLs work under both the secure and non-secure server. With that in place, I didn't have to copy any files to my /SSL directory -- they all work from the /catalog directory. (And it also takes away the error messages that appear when secure and non-secure items are shown on the same page.)

 

I'm not a techie, so I have no idea how to do this, but I would think that your provider would recognize the terminology -- whether they'll be willing to do it or not is another story. :)

 

HTH,

 

TerryK

Terry Kluytmans

 

Contribs Installed: Purchase Without Account (PWA); Big Images, Product Availability, Description in Product Listing, Graphical Infobox, Header Tags Controller, Login Box, Option Type Feature, plus many layout changes & other mods of my own, like:

 

Add order total to checkout_shipment

Add order total to checkout_payment

Add radio buttons at checkout_shipping (for backorder options, etc.)

Duplicate Table Rate Shipping Module

Better Product Review Flow

 

* If at first you don't succeed, find out if there's a prize for the loser. *

Link to comment
Share on other sites

Well, I just found out in order for my ssl to work I have to have a static ip from my hosting provider which they are hooking up. What I do know if I do anything https it goes to the httpsdocs directory

not my main doc root.

Link to comment
Share on other sites

I have 2 directories to put my html. httpdocs and httpsdocs they are seperate directories. With that in mind how can I set up my cart to adjust for this? What directory needs to be in https for checkout?

Link to comment
Share on other sites

The simplest way is to put all the files in both directories (if your host won't make a symlink nor retarget the virtual directory). index.php needs to be in both. Most of the includes directory tree needs to be in both. images/ needs to be in both. login.php, the account files, and the checkout_ files need to be in SSL. It is generally best to put the entire admin directory in SSL.

 

Hth,

Matt

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...