chamtech Posted April 5, 2008 Share Posted April 5, 2008 hi :rolleyes: I have enabled SSL via godaddy.com and want the admin pages to recognize that /admin/includes/configure.php has the following entries: define('HTTP_SERVER', 'http:/chamtechinc.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', ''); define('HTTPS_CATALOG_SERVER', ''); What should I place in the next two entries? How the admin main page is is prompting me that "You are not protected by a secure SSL connection."? I have made the necessary changes in the /includes/configure.php and /includes/application_top.php In /includes/configure.php I modified the followings entries: define('HTTP_SERVER', 'http://chamtechinc.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTPS_SERVER', 'https://chamtechinc.com'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? In /includes/application_top.php I modified the followings entry: // set the type of request (secure or not) // $request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL'; $request_type = (eregi ($HTTP_HOST, HTTPS_SERVER)) ? 'SSL' : 'NONSSL'; I have done all these via searching the forum and copying other ideas, any help will be appreciated. I can logon to my site and display the main page, but all the links are not working and I am not able to get any further than that. Thanks in advance Link to comment Share on other sites More sharing options...
♥FWR Media Posted April 5, 2008 Share Posted April 5, 2008 Note that your SSL certifivate is issued to https://www.mysite.com so you shouldn't use https://mysite.com Your configure files should be like the following: - catalog/includes/configure.php define('HTTP_SERVER', 'http://www.chamtechinc.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://www.chamtechinc.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.chamtechinc.com'); define('HTTPS_COOKIE_DOMAIN', 'www.chamtechinc.com'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/'); catalog/admin/includes/configure.php define('HTTP_SERVER', 'https://www.chamtechinc.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', 'http://www.chamtechinc.com'); define('HTTPS_CATALOG_SERVER', 'https://www.chamtechinc.com'); define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/<FULL_SERVER_PATH>/'); // where your pages are located on the server. define('DIR_WS_ADMIN', '/<MY_ADMIN_FOLDER_NAME>/'); define('DIR_FS_ADMIN', '/<FULL_SERVER_PATH>/<MY_ADMIN_FOLDER_NAME>/'); define('DIR_WS_CATALOG', '/'); define('DIR_FS_CATALOG', '/<FULL_SERVER_PATH>/'); Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
chamtech Posted April 5, 2008 Author Share Posted April 5, 2008 Note that your SSL certifivate is issued to https://www.mysite.com so you shouldn't use https://mysite.com Your configure files should be like the following: - catalog/includes/configure.php define('HTTP_SERVER', 'http://www.chamtechinc.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://www.chamtechinc.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.chamtechinc.com'); define('HTTPS_COOKIE_DOMAIN', 'www.chamtechinc.com'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/'); catalog/admin/includes/configure.php define('HTTP_SERVER', 'https://www.chamtechinc.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', 'http://www.chamtechinc.com'); define('HTTPS_CATALOG_SERVER', 'https://www.chamtechinc.com'); define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/<FULL_SERVER_PATH>/'); // where your pages are located on the server. define('DIR_WS_ADMIN', '/<MY_ADMIN_FOLDER_NAME>/'); define('DIR_FS_ADMIN', '/<FULL_SERVER_PATH>/<MY_ADMIN_FOLDER_NAME>/'); define('DIR_WS_CATALOG', '/'); define('DIR_FS_CATALOG', '/<FULL_SERVER_PATH>/'); Thanks, I will give that a shut Link to comment Share on other sites More sharing options...
chamtech Posted April 5, 2008 Author Share Posted April 5, 2008 Thanks Robert, Your suggestions did work and pages are now accessible from the home page. The only issue I have is the admin page is not recognizing that the site is SSL. A meesage at the bottom left corner of the pages states: "You are not protected by a secure SSL connection. Link to comment Share on other sites More sharing options...
germ Posted April 5, 2008 Share Posted April 5, 2008 You have to access with an HTTPS URL: https://chamtechinc.com/admin If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
chamtech Posted April 5, 2008 Author Share Posted April 5, 2008 Thanks Jim, pretty simple, ofcourse when you know the answer everything is simple. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.