Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Someone Please Post A Working Config File For Shared SSL MS2


richlewt

Recommended Posts

Posted

I am going around in circles trying to get an installation that works with a shared SSL. Could someone that has a fully functioning site for MS2 please post a config file so that we can try and copy the settings. I know there have been numerous posts on the subject but I am finding it extremely difficult to get a definitive answer. What we need is an example config file that works with a shared SSL. Please :)

thanks

Rich

"May the seam be with you"

Posted

The file has been generalized but it should be enough.

<?php

/*

 osCommerce, Open Source E-Commerce Solutions

 http://www.oscommerce.com



 Copyright (c) 2003 osCommerce



 Released under the GNU General Public License

*/



// Define the webserver and path parameters

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

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

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

 define('HTTPS_SERVER', 'https://secure.myhost.net/www.mydomain.com');

 define('ENABLE_SSL', 'true');

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

 define('HTTPS_COOKIE_DOMAIN', 'secure.myhost.net');

 define('HTTP_COOKIE_PATH', '/');

 define('HTTPS_COOKIE_PATH', '/www.mydomain.com/');

 define('DIR_WS_HTTP_CATALOG', '/');

 define('DIR_WS_HTTPS_CATALOG', '/');

 define('DIR_WS_IMAGES', 'images/');

 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

 define('DIR_WS_INCLUDES', 'includes/');

 define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

 define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

 define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

 define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

 define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');



 define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');

 define('DIR_FS_CATALOG', '/document_root_path/');

 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');



 // Database info removed.

 define('USE_PCONNECT', 'false');

 define('STORE_SESSIONS', 'mysql');

?>

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Posted

Here is mine, it's tested and working correctly.

 

I am sorry, but I had to remove your file information for your own safety. While it is safe to show your domain name, you should never display your path information, your host, and your account with your host.

 

This is for your own protection.

 

If you wish, pleas re-post your file after the information has been generalized.

Posted

Daemonj thankyou for your post.

 

You also solved my problem from my post.

 

I think it would be good idea if the osdox had an example such as the above. The installation process gives little information in regards to setting up the ssl configuration.

Posted

I agree. You should also check out wiki.oscommerce.com for documentation.

 

Unfortunately, the installation process changed significantly with the MS2 release and I do not believe the wiki team has had time to update files for the new process.

 

You have to keep in mind that MS2 was just released a week ago and everyone is a volunteer. ;)

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Posted
Here is mine, it's tested and working correctly.

 

Hi

I dont see it?

thanks

Rich

"May the seam be with you"

Posted

Hi

Thanks for your help. I have made the changes but no good. Interesting now, I have no graphics, looks like the style sheet has gone, all Times New Roman and if you follow a link you get a 404.

Here is my config file;

 

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

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

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

define('HTTP_COOKIE_DOMAIN', mydomain.com);

define('HTTPS_COOKIE_DOMAIN', 'https://secure102.co.uk/');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', mydomain.com/');

define('DIR_WS_HTTP_CATALOG', '/');

define('DIR_WS_HTTPS_CATALOG', '/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', '/home/username/public_html/catalog/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

my directory stucture is

/home/username/public_html/catalog/

Sorry to be a pain but I am really struggling with this one.

thanks

Rich

"May the seam be with you"

Posted

Modify your file for the following:

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

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

define('HTTP_COOKIE_PATH', '/'); 

define('HTTPS_COOKIE_PATH', '/~username/');

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

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

and that should do it for you.

 

If you re-run the install script and click on the help icons for each field it should walk you right through what you need to enter.

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Posted

Hi Jim

Thanks for you kind reply.

Nearly there now.

Here is the config file

 

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

define('HTTPS_SERVER', 'https://secure102.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', mydomain.com);

define('HTTPS_COOKIE_DOMAIN', 'https://secure102.co.uk/');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/~username/');

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

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

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', '/home/username/public_html/catalog/');

 

Problem (1)

On the line that starts

define('HTTPS_SERVER', 'https://secure102.co.uk'); /

I had it as define('HTTPS_SERVER', 'https://secure102.co.uk/~username');

but that was causing my url to be https://secure102.co.uk/~username/~username/blah_blah

So I removed it and do no longer get a 404.

 

Problem (2)

When you click My Account the url goes to https://secure102.co.uk/~username/catalog/l...n.php?blah_blah but I get no Gold Padlock.

When you enter your username/password you get a pop up dialogue box that says "you are about to be redirected to a connection that is not secure. Then up comes all your personal info with the url reading

http://www.mydomain.com/catalog/account.php?blah blah

I am sorry to be a pain with this but I have TRIED probably 20 times now to try and get this to work. With MS1 i had no problems at all.

Thanks for your help.

thanks

Rich

"May the seam be with you"

Posted

Please PM me the following information and we can get you settled and going.

 

1. Your domain url

2. Your secure url

3. The path to your catalog folder.

4. The path to your admin folder.

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Archived

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

×
×
  • Create New...