Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SSL 'folder' is above root


dfx

Recommended Posts

Reposted from the Tips and Tricks forum in the SSL guide, where support is not offered. Cheers:

 

 

Hi there,

 

I'm pretty sure my problem is very minor - incorrect paths or something like that. I installed SSL (I'm on a shared server), and it installed fine and now tells me that my SSL url is (actual names omitted) https://myhost.net/my-domain

I logged in to my ftp account and there's a folder called SSL above the WWWROOT (I'm on a Windows server apparently.) Thus I'm presuming that my SSL url, https://myhost.net/my-domain points to this folder SSL. The thing is, however, my Catalog (for OSCommerce)directory is under WWWROOT.

So to sum that all up, OSCommerce is under www.mydomain.com/Catalog/index.php BUT I think logically SSL is under www.mydomain.com/../SSL, because it's above the www root right?

I don't get how this is going to work, since my https:// url seems to point to a totally different place above the root. Do I need to install OSCommerce twice in the two different locations?

 

My config.php looks like this:

 

// Define the webserver and path parameters

// * DIR_FS_* = C:\Domains\mydomain.org.uk\wwwroot\catalog\

// * DIR_WS_* = http://www.mydomain.org.uk/catalog/

define('HTTP_SERVER', ''); // eg, http://localhost - should not be empty for productive servers (LEFT THIS EMPTY as it screws up the directory structure)

define('HTTPS_SERVER', ' '); // eg, https://localhost - should not be empty for productive servers (LEFT THIS EMPTY as it screws up the directory structure)

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

define('HTTP_COOKIE_DOMAIN', 'www.mydomain.com);

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

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

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

define('DIR_WS_HTTP_CATALOG', 'http://mydomain.com/catalog/');

define('DIR_WS_HTTPS_CATALOG', 'https://myhost.net/mydomain/catalog/');

 

..for this last line, I even tried:

('DIR_WS_HTTPS_CATALOG', 'https://myhost.net/mydomain/../wwwroot/catalog/'); , but this just seems to point to myhost.net/wwwroot/catalog .. which is incorrect.

 

In the end, the most obvious solution seems to be to install osCommerce twice, or atleast upload the files under the SSL folder. But then what about the database, or should they both be configured to communicate with the same database? And will it even work?

 

Of relevance, I have also searched for threads and found many where the SSL is on another server - say a linux, or a totally differen one - however that is slightly different, isn't it?

 

I don't get it. Please do bear with me as I am relatively new and have searched extensively both on the forums and on the web. Any help MUCH appreciated. Thanks very much. Cheers!

Link to comment
Share on other sites

Some hosting companies use a two-folder system, one for httpdocs and one for httpsdocs. In this case it may be that your httpdocs folder is called SSL - but check with your hosting company on this.

 

If they do use a two-folder system then you will have to duplicate all folders/files in the httpsdocs (SSL) folder. The database will update from either, but changed/new/edited files will have to be uploaded to both locations.

 

The settings below are correct - if they don't work get in touch with your hosting company!

 

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

define('HTTPS_SERVER', ''https://myhost.net/my-domain);

define('ENABLE_SSL', true);

define('HTTP_COOKIE_DOMAIN', 'www.mydomain.com);

define('HTTPS_COOKIE_DOMAIN', 'myhost.net/my-domain');

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

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

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

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

 

Vger

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...