Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SSL configuration issue


artengn

Recommended Posts

I have made the changes outlined in

 

"How to install SSL on OSC: A Simple 1-2-3 Instruction, Simple, straighforward instructions."

 

Every change is accepted and works fine except when I enter the url into /catalog/includes/configure.php's

 

"define('HTTPS_SERVER', 'https//www.myserver.com');"

 

then it breaks all the images and completely looses the site at checkout. It never shows the lock indicating SSL after the first page.

 

The site works as expected without the ssl configuration.

If I say it's safe to surf this beach Captain ......

Then it's safe to surf this beach!

Link to comment
Share on other sites

Your configure file should look about like this for the first seven lines:

 

define('HTTP_SERVER', 'http//www.myserver.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https//www.myserver.com'); // eg, https://localhost - should not be empty for productive servers

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

define('HTTP_COOKIE_DOMAIN', '.myserver.com');

define('HTTPS_COOKIE_DOMAIN', '.myserver.com');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

In the folder where the configure file is, there is a folder named local

 

Sometimes there is a configure file in there. osC will use data from it if present. Check for that.

 

Other things to try would be in your /includes/application_top.php around line 41

 

This code:

 

// set the type of request (secure or not)
 $request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL';

Sometimes it needs to be this:

 

// set the type of request (secure or not)
 $request_type = (getenv('HTTPS') == '1') ? 'SSL' : 'NONSSL';

Or

 

// set the type of request (secure or not)
$request_type = (getenv('SERVER_PORT') == '443') ? 'SSL' : 'NONSSL';

If none of this helps, if you post (or PM me) your URL I'll try to help.

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

Well Jim, you sure help solve my problem! You posted that I needed to inspect the configure.php by posting:

 

define('HTTP_SERVER', 'http//www.myserver.com'); ...

define('HTTPS_SERVER', 'https//www.myserver.com'); ...

 

I noticed that you forgot to include the ":" after the http...

Guess what! That's exactly what I did... Forgot to include the ":" in the https//...

 

That gave me a "...can't find server error... in my browser that reference the target url as:

 

... mysite.comcheckout_shipping.php/ ...

 

And that gave me the final piece to the puzzle. I had left the url in

 

define('DIR_WS_HTTPS_CATALOG', 'xxx');c');

 

unspecified. This forum is excellent! Thank you.

If I say it's safe to surf this beach Captain ......

Then it's safe to surf this beach!

Link to comment
Share on other sites

I did forget it!

:lol:

I just copy/pasted and didn't notice.

:blush:

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

Archived

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

×
×
  • Create New...