bld44 Posted November 10, 2007 Posted November 10, 2007 Hello, For some reason, the url is not going secure when I go to checkout in my cart (or admin). I've configured both admin & catalog include files. SSL is working just fine when I add https:// Here are my two include files: // Define the webserver and path parameters// * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://mysiteurl.net'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://mysiteurl.net'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'mysiteurl.net'); define('HTTPS_COOKIE_DOMAIN', 'mysiteurl.net'); 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', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); And admin: define('HTTP_SERVER', 'https://mysiteurl.net'); // eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', 'http://mysiteurl.net'); define('HTTPS_CATALOG_SERVER', 'https://mysiteurl.net'); 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) (I have changed my actual URL over to mysiteurl.net, just so this can serve as future reference without linking to my store in the future. I should also mention this is not a shared SSL certificate. Am I missing anything?! <_< Thanks!
Gauravs Posted November 10, 2007 Posted November 10, 2007 Brandon, I would suggest if you echo a variable called $request_type to find out how your webhost / server processes HTTPS request. This variable is set in application_top.php, and most common issue since getenv('HTTPS') variable does not always work, owing to settings by ISP. That should tell you what / where to modify. Cheers GS Best Regards,Gaurav
bld44 Posted November 10, 2007 Author Posted November 10, 2007 An echo of $request_type simply shows NONSSL, or SSL when I manually add https to the URL.
Gauravs Posted November 10, 2007 Posted November 10, 2007 An echo of $request_type simply shows NONSSL, or SSL when I manually add https to the URL. Good, so the switching is working. Now what you need to check is, with SSL enabled, view source of index page and check what does it show for base href, is it https:// or http://. When SSL is enabled, base href should become https:// and relative links (that need to be secure) like checkout or My Account should show https://www.yoursite.com/link Best Regards,Gaurav
♥Vger Posted November 10, 2007 Posted November 10, 2007 define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/');define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); Those entries show that the install was done manually, and you should be using the full DIR_FS pathways. These shortcuts may not work. Do this: 1. Create a text file on your desktop and rename it to cwd.php 2. Put this code in it and then upload to your 'catalog' folder: <?php $p = getcwd(); echo $p; ?> 3. Now go to that file in your browser e.g. www.yourdomain.com/catalog/cwd.php 4. Printed on the screen is your full DIR_FS pathway. Make a note of it and then delete the cwd.php file from your site. 5. Now change those entries to their full pathway e.g. define('DIR_FS_CATALOG', '/var/www/html/catalog/'); Vger
bld44 Posted November 11, 2007 Author Posted November 11, 2007 BASE HREF goes to https when secure, but the links in the source ofr my account or checkout do not show https. I've changed it to: define('DIR_FS_CATALOG', '/hsphere/local/home/myusername/mysiteurl.net/catalog/'); Still nothing.
Gauravs Posted November 11, 2007 Posted November 11, 2007 Would need a link to your site to check the source and suggest accordingly. Thx GS Best Regards,Gaurav
bld44 Posted November 12, 2007 Author Posted November 12, 2007 I also find it interesting that if I change both URLs for HTTP & HTTPS to contain https://mysiteurl.net, I still do not get the secure links. The configure file is in the correct place, so I don't know what's up with that.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.