Vag Posted October 29, 2007 Posted October 29, 2007 Hello. Recently I bought an SSL certificate (together with dedicated IP address) and I cannot set it up correctly. I have tried a lot of things with my configure.php but everything failed. Sometimes, I get a page that falsely says that cookies are not enabled in my browser. I am almost sure the problem has to do with cookies and not SSL. osCommerce in installed in root directory (not catalog) and the SSL is for retromarket.gr (not www.retromarket.gr). Anyway, here's my configure.php: define('HTTP_SERVER', 'http://www.retromarket.gr'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://retromarket.gr'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'www.retromarket.gr'); define('HTTPS_COOKIE_DOMAIN', 'retromarket.gr'); 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/'); define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/'); define('DIR_FS_CATALOG', '/home/retroma/public_html/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); Oh, when I go to the site and press on "My account" or "Checkout" for example, it takes me to the login screen and it's using SSL, but after, it takes me to the main page. If I press again on these buttons, it takes me to the login screen again, like before. If I try to create a new user, it doesn't use SSL. Did the DIR_FS_CATALOG change because of the dedicated IP address? Is it the same or something like '/public_html/'? Thank you.
♥Vger Posted October 29, 2007 Posted October 29, 2007 Try this, and it should cure the "Cookie" warning: define('HTTP_SERVER', 'http://retromarket.gr'); define('HTTP_COOKIE_DOMAIN', 'retromarket.gr'); Now your Cookie Domains match. Vger
Recommended Posts
Archived
This topic is now archived and is closed to further replies.