Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Cannot get 2.2 to switch to https when required


Streal

Recommended Posts

Hi

 

I am having trouble getting OS 2.2 to switch into SSL/https when required. Https is working if I change the url manually.

 

I have a dedicated SSL and i.p address

 

Config documents:

 

under catalog/include:

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'https://pbcards.co.uk'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://pbcards.co.uk'); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', true); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'pbcards.co.uk');

define('HTTPS_COOKIE_DOMAIN', 'pbcards.co.uk');

define('HTTP_COOKIE_PATH', '/catalog/');

define('HTTPS_COOKIE_PATH', '/catalog/');

 

 

 

Under admin/includes

 

// define our webserver variables

// FS = Filesystem (physical)

// WS = Webserver (virtual)

define('HTTP_SERVER', 'http://pbcards.co.uk'); // eg, http://localhost or - https://localhost should not be NULL for productive servers

define('HTTP_CATALOG_SERVER', 'http://pbcards.co.uk');

define('HTTPS_CATALOG_SERVER', 'https://pbcards.co.uk');

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)

 

 

application_top.php

 

I have queried the server to check line 41 in application_top.php

 

HTTPS results:

 

HTTP HOST: pbcards.co.uk

Server Port: 443

SSL Status: on

Fowarded Server:

Fowarded Host:

Fowarded By:

 

 

HTTP results:

 

HTTP HOST: pbcards.co.uk

Server Port: 80

SSL Status:

Fowarded Server:

Fowarded Host:

Fowarded By:

 

This would seem to be OK

 

I have read everything I can find on the subject and I am now at a loss.

 

Any help would be apreciated

 

Many Thanks

Link to comment
Share on other sites

Your configure is ok,

Chek Your cache.

Satish

 

Hi Satish

 

Thanks for your help,

 

I was unsure which cache I should be checking so I went for a belt and braces approach and deleted my browsers cache, and reset the OS cache.

 

Alas still no change on my computer. Is their any other code I should be checking?

 

Streal

Link to comment
Share on other sites

B) I am by far no expert, but from all of the reading I did on this subject I had to change the following in the /catalog/admin/includes to get it to recognize the ssl connection:

 

// define our webserver variables
// FS = Filesystem (physical)
// WS = Webserver (virtual)
define('HTTP_SERVER', 'https://pbcards.co.uk'); // eg, http://localhost or - https://localhost should not be NULL for productive servers
define('HTTP_CATALOG_SERVER', 'https://pbcards.co.uk');
define('HTTPS_CATALOG_SERVER', 'https://pbcards.co.uk');
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 did not change the /catalog/includes HTTP SERVER to secure as it was not necessary to get the whole store to run in https mode. It goes into that mode automatically when someone goes to login or to create an account. Hope that helps to solve your problem! ;)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...