This is a discussion on Simple configuration question within the osCommerce 2.2 Installation Help forums, part of the osCommerce 2.2 Forums category; Simple configuration question: I installed osCommerce and then installed an SSL cert. I can go to https://mydomain.com/admin with no problem. ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Simple configuration question: I installed osCommerce and then installed an SSL cert. I can go to https://mydomain.com/admin with no problem. However, when I click on a link to any lower page, it calls the page with http: not https:. How do I change the configure files to make it use https? My configure.php files are included below with the exception of the database section, which is working fine. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@ /hsphere/local/home/plebe6/123webmagic.com/catalog/includes/configure.php define('HTTP_SERVER', 'http://123webmagic.com/'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://123webmagic.com/'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', 1); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', ''); define('HTTPS_COOKIE_DOMAIN', '123webmagic.com'); define('HTTP_COOKIE_PATH', ''); define('HTTPS_COOKIE_PATH', ''); 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/'); define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/'); define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME'])); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@ /hsphere/local/home/plebe6/123webmagic.com/catalog/includes/local/configure.php define('HTTP_SERVER', 'http://123webmagic.com'); define('DIR_FS_DOCUMENT_ROOT', '/hsphere/local/home/plebe6/123webmagic.com/'); define('DIR_FS_LOGS', '/hsphere/local/home/plebe6/logs/123webmagic.com/'); define('HTTPS_SERVER', 'https://123webmagic.com/'); define('ENABLE_SSL', 1); @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@ /hsphere/local/home/plebe6/123webmagic.com/admin/includes/configure.php define('HTTP_SERVER', 'http://123webmagic.com/'); // eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', 'http://123webmagic.com/catalog/'); define('HTTPS_CATALOG_SERVER', 'https://123webmagic.com/catalog/'); define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module 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_WS_ADMIN', '/admin/'); define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN); define('DIR_WS_CATALOG', '/catalog/'); define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/'); 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_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/'); define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/'); define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/'); @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@ /hsphere/local/home/plebe6/123webmagic.com/admin/includes/local/configure.php define('HTTP_SERVER', 'http://123webmagic.com/'); define('DIR_FS_DOCUMENT_ROOT', '/hsphere/local/home/plebe6/123webmagic.com/'); define('DIR_FS_LOGS', '/hsphere/local/home/plebe6/logs/123webmagic.com/'); define('HTTPS_SERVER', 'https://123webmagic.com/'); define('ENABLE_SSL', 1); |
| Sponsored Links | ||
| ||
| |
|
#2
| ||||
| ||||
| Too Easy --- for forcing ADMIN to ALLWAYS use https..... Change in: /hsphere/local/home/plebe6/123webmagic.com/admin/includes/configure.php define('HTTP_SERVER', 'http://123webmagic.com/'); // eg, http://localhost or - https://localhost should not be NULL for productive servers to: define('HTTP_SERVER', 'https://123webmagic.com/'); // eg, http://localhost or - https://localhost should not be NULL for productive servers Okay? |
|
#3
| |||
| |||
| Thanks for the help. I'm sure that was part of it. I made the change (I can't believe I didn't see that instruction) in both admin/ and catalog/includes/configure.php files, but it hasn't changed the problem. I still get sent to http: |
|
#4
| |||
| |||
| define('ENABLE_SSL', 1); I believe should be: define('ENABLE_SSL', true); |
|
#5
| |||
| |||
| Thanks for the suggestion. I made the change, but it's still sending me to http: rather than https: Any other suggestions? |
|
#6
| |||
| |||
| The problem has been solved! JPF was on the right track. It turned out there are two more configure.php files: admin/includes/local/configure.php and catalog/includes/local/configure.php and the "http:" had to be changed to "https:" in both of those as well. I don't know if others have those local files or not. Thanks to both jpf and christlabs who helped me. This is a great group for help. |
|
#7
| ||||
| ||||
| Learners_permit, FYI , If you have a configure.php file in the local dir, it will take precedence over the others.
__________________ Michael Sasek osCMax Developer
|
|
#8
| |||
| |||
| Okay, what if my cofigure.php files are never really read? I've been over them like a forensics technician but when I try any of the php pages I get a page with no style whatsoever. I check with login.php and the relative path to the stylesheet.css is correct. But the administration page doesn't work either, each hyperlink returns a page not found error. The only thing that did work was the speedy MySQL database creation. Any ideas? I'm using Apache 2.0 and PHP 4.3.4. |
| Sponsored Links | ||
| ||
| |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| (Probably) Simple Stylesheets Question | TheSmrtguy | osCommerce 2.2 Modification Help | 3 | 09-06-2004 08:25 PM |
| Simple Template Question | Feeedbag | osCommerce 2.2 Modification Help | 2 | 07-22-2004 07:00 AM |
| Simple question about title | CMWM | osCMax v1.7 Discussion | 3 | 06-10-2004 02:59 AM |
| A Hopefully Simple Question | judoka | osCommerce 2.2 Modification Help | 3 | 06-13-2003 11:10 AM |
| Stock/Inventory Question and a few other simple questions! | arc | osCommerce 2.2 Modification Help | 1 | 05-14-2003 07:13 PM |