Guest Posted February 21, 2006 Posted February 21, 2006 Thanks in advanced for all your help! My image paths are coming up http://www.mysite.com/images/arrow.gif when the browser address is https://www.mysite.com. All images reside in my image file. The only way i can get my image paths to https://www.mysite.com/images/arrow.gif and get the Coveted SSL Golden Lock is to define('HTTP_SERVER', 'https://www.mysite.com'); What am i missing? Please Help! myenv.php returns HTTP HOST: www.mysite.com Server Port: 443 SSL Status: Fowarded Server: Fowarded Host: Fowarded By: I changed line 41 in /includes/application_top.php to 443 $request_type = (getenv('HTTPS') == '443') ? 'SSL' : 'NONSSL'; I changer line 23 in /includes/functions/general.php to if ( (ENABLE_SSL == true) && ($request_type == 'SSL') && (getenv('SERVER_PORT') == '443') ) { // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://www.mysite.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://www.mysite.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.mysite.com'); define('HTTPS_COOKIE_DOMAIN', 'www.mysite.com'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_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/');
Guest Posted February 22, 2006 Posted February 22, 2006 myenv.php returns HTTP HOST: www.mysite.com Server Port: 443 SSL Status: Fowarded Server: Fowarded Host: Fowarded By: I changed line 41 in /includes/application_top.php to 443 $request_type = (getenv('HTTPS') == '443') ? 'SSL' : 'NONSSL'; To correct this i had to change line 41 to $request_type = (getenv('SERVER_PORT') == '443') ? 'SSL' : 'NONSSL';
Recommended Posts
Archived
This topic is now archived and is closed to further replies.