Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Shared SSL and Config Files


Mort-lemur

Recommended Posts

Posted

Hi,

 

Im setting up a new site and using the hosts shared SSL - and getting the config files right is driving me nuts - as all my other sites use their own SSL which are quite straight forward but shared ssl config seems to have beaten me......

 

The ssl works - but something in the cookies / sessions is causing the store to lose its cart contents when hitting the checkout button - ie when it moves from non-ssl to ssl pages.

 

My Config files are set as follows:

 

Store:

  define('HTTP_SERVER', 'http://www.mysite.co.uk');
  define('HTTPS_SERVER', 'https://otter.xssl.net/~myusername');
  define('ENABLE_SSL', true);
  define('HTTP_COOKIE_DOMAIN', '');
  define('HTTPS_COOKIE_DOMAIN', '');
  define('HTTP_COOKIE_PATH', '/');
  define('HTTPS_COOKIE_PATH', '/');
  define('DIR_WS_HTTP_CATALOG', '/');
  define('DIR_WS_HTTPS_CATALOG', '/');
  define('DIR_WS_IMAGES', 'images/');

Admin:

  define('HTTP_SERVER', 'http://www.mysite.co.uk');
  define('HTTP_CATALOG_SERVER', 'http://www.mysite.co.uk');
  define('HTTPS_CATALOG_SERVER', 'https://otter.xssl.net/~myusrename');
  define('HTTPS_SERVER', 'https://otter.xssl.net/~myusername');
  define('ENABLE_SSL_CATALOG', 'true');
  define('DIR_FS_DOCUMENT_ROOT', '/home/myusername/public_html/');
  define('DIR_WS_ADMIN', '/Adminname/');
  define('DIR_FS_ADMIN', '/home/myusrename/public_html/Adminname/');
  define('DIR_WS_CATALOG', '/');
  define('DIR_WS_HTTPS_CATALOG', '/');
  define('DIR_FS_CATALOG', '/home/myusername/public_html/');
  define('DIR_WS_IMAGES', 'images/');

Can anyone spot any glaring errors?

 

Many Thanks

Now running on a fully modded, Mobile Friendly 2.3.4 Store with the Excellent MTS installed - See my profile for the mods installed ..... So much thanks for all the help given along the way by forum members.

Posted

Do you tried in configutation (admin) to change the session config. ? (directory session).


Regards
-----------------------------------------
Loïc

Contact me by skype for business
Contact me @gyakutsuki for an answer on the forum

 

Posted

Heather: For the shop side, change

  define('HTTP_COOKIE_DOMAIN', '.');
  define('HTTPS_COOKIE_DOMAIN', '');

to

  define('HTTP_COOKIE_DOMAIN', '.www.mysite.co.uk');
  define('HTTPS_COOKIE_DOMAIN', '.otter.xssl.net/~myusername');  

You also have to make the DIR_FS_CATALOG definition, which you don't show, is set to '/home/myusrename/public_html/'.

 

For the admin, change this

  define('HTTP_SERVER', 'http://www.mysite.co.uk');
  define('HTTP_CATALOG_SERVER', 'http://www.mysite.co.uk');
  define('HTTPS_CATALOG_SERVER', 'https://otter.xssl.net/~myusrename');
  define('HTTPS_SERVER', 'https://otter.xssl.net/~myusername');
  define('ENABLE_SSL_CATALOG', 'true');
  define('DIR_FS_DOCUMENT_ROOT', '/home/myusername/public_html/');
  define('DIR_WS_ADMIN', '/Adminname/');
  define('DIR_FS_ADMIN', '/home/myusrename/public_html/Adminname/');
  define('DIR_WS_CATALOG', '/');
  define('DIR_WS_HTTPS_CATALOG', '/');

to

  define('HTTP_SERVER', 'https://otter.xssl.net');
  define('HTTP_CATALOG_SERVER', 'https://otter.xssl.net');
  define('HTTPS_CATALOG_SERVER', 'https://otter.xssl.net');
  define('ENABLE_SSL_CATALOG', 'true');
  define('DIR_FS_DOCUMENT_ROOT', '/home/myusername/public_html/');
  define('DIR_WS_ADMIN', '/~myusername/Adminname/');
  define('DIR_FS_ADMIN', '/home/myusername/public_html/Adminname/');
  define('DIR_WS_CATALOG', '/~myusername/');
  define('DIR_WS_HTTPS_CATALOG', '/~myusername/');

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Posted

@@Jack_mcs Thanks Jack, But no luck with that, when I change

define('HTTP_COOKIE_DOMAIN', '');
define('HTTPS_COOKIE_DOMAIN', '');

to

define('HTTP_COOKIE_DOMAIN', '.www.mysite.co.uk');
  define('HTTPS_COOKIE_DOMAIN', '.otter.xssl.net/~myusername');  

I get a cookies are not enabled warning at the login screen.

 

If I revert it to the original and carry out the rest of the changes then there is no change - the items in the cart are lost when going over to the SSL pages.

Now running on a fully modded, Mobile Friendly 2.3.4 Store with the Excellent MTS installed - See my profile for the mods installed ..... So much thanks for all the help given along the way by forum members.

Posted

Shared SSL is always problematic.  

 

In my opinion, shared SSL is less professional than no SSL - changing from .site.com to .some-host-shared-ssl.com/~username/ is highly unprofessional for any ecomm.

 

I would set up the site with no SSL.  

And then add a full SSL Cert at a future date.

Posted

@@Jack_mcs Yep - I have spent hours messing around with the settings

 

@@burt Yes Im now in agreement - I didnt like the way the URL looked, so have reverted to non-ssl for now

Now running on a fully modded, Mobile Friendly 2.3.4 Store with the Excellent MTS installed - See my profile for the mods installed ..... So much thanks for all the help given along the way by forum members.

Posted

Setting up shared ssl's can be difficult but they are far more preferable, in my opinion, than running a shop without one. Most surfers just know to look for the padlock or https and don't care much about what the url says. If you are planning on getting a private ssl fairly soon, then it is probably not a concern. But running that way for long will probably cost you in lost sales. I don't know about you but I won't use a site that doesn't have ssl.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Posted

@@Mort-lemur

 

Hi

 

I also used to have that problem, so purchased a SSL cert. For 2 years I think the cost was about US$12.00 I think I may sitll have the link, so could PM you if you wish.

 

Cheers

 

Grandpa

Archived

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

×
×
  • Create New...