Juggalojess Posted December 3, 2004 Posted December 3, 2004 Hey all, I installed an SSL certificate for my shop which ran perfectly. Now when I switch from http to https I get broken images etc... You can view it for yourself at: http://www.reallygreatfoods.com/catalog vs. https://www.reallygreatfoods.com/catalog Is there any way to fix this? I just want the little lock to appear on the bottom right of the window like it does when you access other areas of the site ie https://www.reallygreatfoods.com/catalog/images thanks in advance!
Guest Posted December 3, 2004 Posted December 3, 2004 most likely a problem in your configure.php. If you post it here (minus account info), we can have a look-see. -jared
Juggalojess Posted December 3, 2004 Author Posted December 3, 2004 Here ya go! THANKS! <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 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://www.reallygreatfoods.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'www.reallygreatfoods.com'); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', '/catalog/'); define('HTTPS_COOKIE_PATH', ''); define('DIR_WS_HTTP_CATALOG', '/catalog/'); define('DIR_WS_HTTPS_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', '/home/reallygreat/www/www/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', 'localhost'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', '******'); define('DB_SERVER_PASSWORD', ******); define('DB_DATABASE', 'reallygreat'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?> most likely a problem in your configure.php. If you post it here (minus account info), we can have a look-see. -jared <{POST_SNAPBACK}>
Guest Posted December 3, 2004 Posted December 3, 2004 define('HTTP_SERVER', 'http://www.reallygreatfoods.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'www.reallygreatfoods.com'); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', '/catalog/'); define('HTTPS_COOKIE_PATH', ''); define('DIR_WS_HTTP_CATALOG', '/catalog/'); define('DIR_WS_HTTPS_CATALOG', ''); should be define('HTTP_SERVER', 'http://www.reallygreatfoods.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://www.reallygreatfoods.com'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'www.reallygreatfoods.com'); define('HTTPS_COOKIE_DOMAIN', 'www.reallygreatfoods.com'); define('HTTP_COOKIE_PATH', '/catalog/'); define('HTTPS_COOKIE_PATH', '/catalog'); define('DIR_WS_HTTP_CATALOG', '/catalog/'); define('DIR_WS_HTTPS_CATALOG', '/catalog/'); Give that a shot. -jared
Juggalojess Posted December 8, 2004 Author Posted December 8, 2004 Hmmm, thanks so much for the help, but still a no go. Ill attach the adjusted code Im using: <?php /* ?osCommerce, Open Source E-Commerce Solutions ?http://www.oscommerce.com ?Copyright (c) 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://www.reallygreatfoods.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://www.reallygreatfoods.com'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'www.reallygreatfoods.com'); define('HTTPS_COOKIE_DOMAIN', 'www.reallygreatfoods.com'); 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/'); ?define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/'); ?define('DIR_FS_CATALOG', '/home/reallygreat/www/www/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', 'localhost'); // eg, localhost - should not be empty for productive servers ?define('DB_SERVER_USERNAME', '******'); ?define('DB_SERVER_PASSWORD', '*****'); ?define('DB_DATABASE', 'reallygreat'); ?define('USE_PCONNECT', 'false'); // use persistent connections? ?define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?> you can still see the results at: https://www.reallygreatfoods.com/catalog thanks a TON in advance! J
mark27uk3 Posted December 8, 2004 Posted December 8, 2004 Your 'Authentic - Comodo Secure' does nothing when you point to verify your security. I would suggest install the contribution that actually lets you do this. I cant think of which contrib I used but if you search the contributions for 'secure' then you will find it. Mark Lifes a bitch, then you marry one, then you die!
Juggalojess Posted December 8, 2004 Author Posted December 8, 2004 pretty cool contribution, thanks mark! Now if i could just get my lil' lock.
ozcsys Posted December 8, 2004 Posted December 8, 2004 pretty cool contribution, thanks mark! Now if i could just get my lil' lock. <{POST_SNAPBACK}> You need to make sure that when you upload your configure.php file that it is actually overwriting what is already on the server. Your site is not acting like ssl is set to true. When ssl is set to true your checkout and create account pages should automatically be secure and this is not happening. The Knowledge Base is a wonderful thing. Do you have a problem? Have you checked out Common Problems? There are many very useful osC Contributions Are you having trouble with a installed contribution? Have you checked out the support thread found Here BACKUP BACKUP BACKUP!!! You did backup, right??
♥Vger Posted December 8, 2004 Posted December 8, 2004 define('HTTPS_COOKIE_PATH', '/catalog/'); //additional backslash added This doesn't look right (are you sure it has two www's?) define('DIR_FS_CATALOG', '/home/reallygreat/www/www/catalog/'); Also,as suggested, your edited configure.php files are not overwriting your old ones - because the file pathways for 'Login' and 'Create Account' etc still point to http://www.yourdomain.com and not https. You need to alter the file permissions on your configure.php files to allow overwriting (777) and then set them back to 400 (read only). Vger
Juggalojess Posted December 8, 2004 Author Posted December 8, 2004 that looks like it did it! I had to change the permissions to make it writable. Thanks a lot guys! If anyone ever needs flash advice let me know! I owe ya'll! Jess
Recommended Posts
Archived
This topic is now archived and is closed to further replies.