majestix Posted June 5, 2003 Posted June 5, 2003 I'm trying to setup my site and installed a temp SSL Certificate, however now I get the pop-up message: "This page contains both secure and non-secure items. Do you want to display the non-secure items?" I know it's because in my header I included a js menu with the following statement: include(DIR_WS_ADDONS . 'menu.php'); Does anybody have any idea how I can tell the program to take the https:// - file, if I'm in SSL mode instead of the http:// - file, which than causes the above mentioned pop-up??? Thanx guys for all your help! - D. Michael
Guest Posted June 5, 2003 Posted June 5, 2003 i think i right in saying that that files you are linking to need to sitting on the server that you have SSL on and then link to the files using "/myfile.file" as opposed to a full url, ie "http://www.yoursite.com/yourfile.filetype" - you should be ok
majestix Posted June 5, 2003 Author Posted June 5, 2003 The files actually do sit on the server, that's why I'm confused and wonder why it's not working ... any other ideas?
majestix Posted June 5, 2003 Author Posted June 5, 2003 You can see it at http://www.majestixinc.com/eurofit/catalog/default.php. Just place an https:// before the link and you'll see what I'm talking about. Thanx! <script type="text/javascript" language="JavaScript1.2" src="js/stm31.js"></script> <script language="JavaScript" type="text/javascript"> <!-- <?php if (tep_session_is_registered('customer_first_name') && tep_session_is_registered('customer_id')) { $greeting_string = sprintf(TEXT_GREETING, $customer_first_name); ?> window.status="<?php echo $greeting_string ?> | Cart: <?php echo $cart->count_contents(); ?> Items | <?php echo $currencies->format($cart->show_total()); ?>" <?php } else { ?> window.status="<?php echo TEXT_GREETING2 ?> | Cart: <?php echo $cart->count_contents(); ?> Items | <?php echo $currencies->format($cart->show_total()); ?>" <?php } ?> // --> </script> <tr><td> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <!-- <td class="headerNavigation"> --> <td align="left"> <script type="text/javascript" language="JavaScript1.2" src="js/menu.js"></script></td> </tr> </table> </td></tr> <!-- <tr><td class="ruleline"></td></tr> -->
Guest Posted June 5, 2003 Posted June 5, 2003 Have you enabled SSL in the configuration file? /catalog/includes/configure.php
majestix Posted June 5, 2003 Author Posted June 5, 2003 Yes Sir - that's what's causing the whole thing to break ...
Guest Posted June 5, 2003 Posted June 5, 2003 So in your unsecure log files what comes out when you make a secure page request? i.e. what does the log file say the insecure items are?
majestix Posted June 5, 2003 Author Posted June 5, 2003 meltus - not sure what you mean by logfile, how do I enable that - sorry, this might be a stupid question, but this is my first project ...
Guest Posted June 5, 2003 Posted June 5, 2003 i was referring to your web server logs - this will enable you to tell which files are insecure
Guest Posted June 5, 2003 Posted June 5, 2003 Yes Sir - that's what's causing the whole thing to break ... Can you post the code for your configure.php file? Make sure to X out the DB info!
majestix Posted June 5, 2003 Author Posted June 5, 2003 This is my configure.php, besides the DB settings: define('HTTP_SERVER', 'http://www.majestixinc.com/eurofit'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://www.majestixinc.com/eurofit'); // eg, https://localhost - should not be empty 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/'); 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', '/home/majestix/majestixinc-www/eurofit'); // 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_DOCUMENT_ROOT', 'c:/inetpub/wwwroot'); // 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_CATALOG', 'c:/inetpub/wwwroot/oscommerce/catalog/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // BEGIN Include Catalog Add-ons Modification if (file_exists('includes/addons/configure.php')) include('includes/addons/configure.php'); // END Include Catalog Add-ons Modification
majestix Posted June 7, 2003 Author Posted June 7, 2003 Anybody has some other ideas on what's going here - I still can't figure it out ...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.