This is a discussion on setup guide for http to https? within the osCommerce 2.2 Installation Help forums, part of the osCommerce 2.2 Forums category; I have read some threads but I'm still a little unclear about how to set the pages to switch to ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| I have read some threads but I'm still a little unclear about how to set the pages to switch to https for my data critical pages. Can you give me some guidance? Also, something has happened to where it is not displaying properly. You can see what I mean at https://driedflowersrus.com/catalog/login.php Thanks for your help. JW |
| Sponsored Links | ||
| ||
|
#2
| |||
| |||
| Ok, for starters, it switches to the https server, i get the notice that it is not a trusted source. basically means that the secure certificate was not issued from a company that has verified this is you. examples: Thawte or Verisign. As for the images, check your config file. it is calling the images for the following url: https://localhost/catalog/images/header_DFRUflower.gif in the config file locate this line: Code: define('HTTPS_SERVER', 'https://localhost'); // eg, https://localhost - should not be NULL for productive servers
Code: https://driedflowersrus.com also check with your hosting company, they should be able to help you set your secure server and certificate |
|
#3
| |||
| |||
| Thank you for answering my post. I understand about the certificate, but I don't know if I will purchase a certificate, I just want it secure. Also, I have done that part in the code you referred to. But, how do I make it switch from the http pages for the normal catalog to https for "my account", "login", and "checkout". Those are the only pages I'm concerned with. Did it display okay when you were in the https pages? Thanks, John |
|
#4
| ||||
| ||||
| It automatically does the switch if you enable "https" in the configure.php file. There is nothing else to do. If you have this set in configure.php the switch to https and back is automatic. There is nothing else you have to do. Find this line: Code: define('ENABLE_SSL', false); // secure webserver for checkout procedure?
__________________ Michael Sasek osCMax Developer
|
|
#5
| |||
| |||
| I've done that, but it doesn't make the switch to https. Here is my configure.php. Am I missing something that is right in front of me? Can you look at this page and tell me why you think it's dispalying the way it is? https://driedflowersrus.com/catalog/...ut_payment.php // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'HTTP://www.driedflowersrus.com'); // eg, http://localhost - should not be NULL for productive servers define('HTTPS_SERVER', 'HTTPS://www.driedflowersrus.com'); // eg, https://localhost - should not be NULL for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('DIR_WS_CATALOG', '/catalog/'); // absolute path required define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_INCLUDES', 'includes/'); // If "URL fopen wrappers" are enabled in PHP (which they are in the default configuration), this can be a URL instead of a local pathname 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', DIR_WS_CATALOG . 'pub/'); define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs) define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // define our database connection define('DB_SERVER', ''); // eg, localhost - should not be NULL for productive servers define('DB_SERVER_USERNAME', 'mysql'); define('DB_SERVER_PASSWORD', ''); define('DB_DATABASE', 'catalog'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' ?> |
|
#6
| ||||
| ||||
| There are two configure.php files that need to be set. This looks like the configure.php in /admin/includes. Have you set this in both the /catalog/includes/configure.php as well? It needs to be set there too. One other thing, although I dont think it makes a difference, use lowercase http and https in the urls that define your http and https server.
__________________ Michael Sasek osCMax Developer
|
|
#7
| |||
| |||
| Oh! I did not realize there were two. Actually, this one is Catalog/includes. I shall proceed to work admin/includes If I donate to OSCdox, who gets the money? John |
|
#8
| ||||
| ||||
| Let me know what results you get. Also, if you donate to OSCdox, I get the donation. It goes to offset the hosting fees, bandwidth, software licensing and encourages me to keep on doing this! Any donation is greatly appreciated. Heck, I am just happy to hear you would consider it!
__________________ Michael Sasek osCMax Developer
|
|
#9
| |||
| |||
| I'll work on the file and hell yea, I think you deserve it. You have been very helpful. |
|
#10
| |||
| |||
| Okay, two questions. First, is it supposed to go to synergytistic health? Second, why do you think my dispaly is showing up the way it is? Look at https://driedflowersrus.com/catalog/login.php Let me know on both and I will do that tonight. JW |
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| https:// Admin redirects to http:// | driwashsolutions | osCMax v2 Installation issues | 3 | 01-23-2006 06:41 PM |
| admin login goes https to http??? | john- | osCMax v1.7 Discussion | 2 | 12-23-2003 06:19 AM |