OBarros Posted August 21, 2008 Share Posted August 21, 2008 Hi all. I've just installed two domains, using same document root. That is like this: secure.domain.com --> FS /var/www/vhosts/web01.domain.com/httpdocs web01.domain.com --> FS /var/www/vhosts/web01.domain.com/httpdocs in define('HTTP_SERVER', 'http://web01.domain.com'); define('HTTPS_SERVER', 'http://secure.domain.com'); define('ENABLE_SSL', true); define('HTTP_COOKIE_DOMAIN', '.indigeen.com'); define('HTTPS_COOKIE_DOMAIN', '.indigeen.com'); define('HTTP_COOKIE_PATH', '/site/'); define('HTTPS_COOKIE_PATH', '/site/'); the catalog can be accessed trought http://web01.domain.com/site Everything was working fine, until i've configured secured domain. After that, i'm putting some products in the shopping cart, and when i make the checkout, i'm redirected to login.php in secure server, but the shopping cart is empty! Any advice? Link to comment Share on other sites More sharing options...
oschellas Posted August 21, 2008 Share Posted August 21, 2008 Supply correct cookie domain / paths for both domains (nonssl / ssl) Link to comment Share on other sites More sharing options...
♥FWR Media Posted August 21, 2008 Share Posted August 21, 2008 https://secure.indigeen.com/site/index.php does not have a proper SSL cert http://www.indigeen.com/site/index.php loads fine Your host seems to have a shared cert which is at a248.e.akamai.net Looks to me like you need a cert at .. https://secure.indigeen.com/ or better https://www.indigeen.com/ failing that you could probably use the shared cert (although that would change the settings) Then your configure.php would look like .. define('HTTP_SERVER', 'http://www.indigeen.com'); define('HTTPS_SERVER', 'https://www.indigeen.com'); define('ENABLE_SSL', true); define('HTTP_COOKIE_DOMAIN', 'www.indigeen.com'); define('HTTPS_COOKIE_DOMAIN', 'www.indigeen.com'); define('HTTP_COOKIE_PATH', '/site/'); define('HTTPS_COOKIE_PATH', '/site/'); or perhaps .. define('HTTP_SERVER', 'http://www.indigeen.com'); define('HTTPS_SERVER', 'https://secure.indigeen.com'); define('ENABLE_SSL', true); define('HTTP_COOKIE_DOMAIN', 'www.indigeen.com'); define('HTTPS_COOKIE_DOMAIN', '.secure.indigeen.com'); define('HTTP_COOKIE_PATH', '/site/'); define('HTTPS_COOKIE_PATH', '/site/'); 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...
OBarros Posted August 21, 2008 Author Share Posted August 21, 2008 the this here is that www points to pre-production server, not the last one yet web01.indigeen.com and secure.indigeen.com are the definitive servers, with their own IP's. The certificate is a free certificate from verisign, only for tests yet. And akamai servers are only for dns routing. I'll try that config and let you know. Link to comment Share on other sites More sharing options...
OBarros Posted August 22, 2008 Author Share Posted August 22, 2008 https://secure.indigeen.com/site/index.php does not have a proper SSL cert http://www.indigeen.com/site/index.php loads fine Your host seems to have a shared cert which is at a248.e.akamai.net Looks to me like you need a cert at .. https://secure.indigeen.com/ or better https://www.indigeen.com/ failing that you could probably use the shared cert (although that would change the settings) Then your configure.php would look like .. define('HTTP_SERVER', 'http://www.indigeen.com'); define('HTTPS_SERVER', 'https://www.indigeen.com'); define('ENABLE_SSL', true); define('HTTP_COOKIE_DOMAIN', 'www.indigeen.com'); define('HTTPS_COOKIE_DOMAIN', 'www.indigeen.com'); define('HTTP_COOKIE_PATH', '/site/'); define('HTTPS_COOKIE_PATH', '/site/'); or perhaps .. define('HTTP_SERVER', 'http://www.indigeen.com'); define('HTTPS_SERVER', 'https://secure.indigeen.com'); define('ENABLE_SSL', true); define('HTTP_COOKIE_DOMAIN', 'www.indigeen.com'); define('HTTPS_COOKIE_DOMAIN', '.secure.indigeen.com'); define('HTTP_COOKIE_PATH', '/site/'); define('HTTPS_COOKIE_PATH', '/site/'); Done!! both http and https cookies must be .indigeen.com. Thanks for all the help :) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.