Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

HTTPS not working...


OBarros

Recommended Posts

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

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/');

Link to comment
Share on other sites

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...