Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Newbie needing help with SSL !


fruitbat

Recommended Posts

Posted

Hello,

 

I'm having some trouble understanding whats gone wrong, my SSL cert is installed and I thought that I'd configured my config files correctly but when I click on "my account" it leads to a 404 error... I can't get to the catalog in admin either!!

 

http://www.copybits.co.uk

 

Here is my amended code:

 

catalog/includes/configure.php

define('HTTP_SERVER', 'http://www.copybits.co.uk');

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

define('ENABLE_SSL', true);

define('HTTP_COOKIE_DOMAIN', 'www.copybits.co.uk');

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

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

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

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

define('DIR_WS_HTTPS_CATALOG', '/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/');

 

 

catalog/admin/includes/configure.php

define('HTTP_SERVER', 'https://www.copybits.co.uk');

define('HTTP_CATALOG_SERVER', 'https://www.copybits.co.uk');

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

define('ENABLE_SSL_CATALOG', 'true');

define('DIR_FS_DOCUMENT_ROOT', '/usr/home/u1146/domains/copybits.co.uk/public_html/catalog/');

define('DIR_WS_ADMIN', '/catalog/admin/');

define('DIR_FS_ADMIN', '/usr/home/u1146/domains/copybits.co.uk/public_html/catalog/admin/');

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

define('DIR_FS_CATALOG', '/usr/home/u1146/domains/copybits.co.uk/public_html/catalog/');

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

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

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

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_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');

define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 

Do I need to transfer any files into my private_html folder, my catalog folder is in public_html.

 

Hope this is enough information for somebody to help me out

 

Thanks

 

Jo

Posted

Fixed it, I think, not fully tested yet and I'm still having issues with admin.

 

I had to go into the hosts admin panel and select "Use a symbolic link from private_html to public_html - allows for same data in http and https" in the domain settings. It was this post that made me go in and have a look to see if the http and https mapped together:

 

http://www.oscommerce.com/forums/index.php?sho...hl=private_html

 

Should have worked it out earlier!!

 

Hope this helps somebody :)

 

 

 

 

Hello,

 

I'm having some trouble understanding whats gone wrong, my SSL cert is installed and I thought that I'd configured my config files correctly but when I click on "my account" it leads to a 404 error... I can't get to the catalog in admin either!!

 

http://www.copybits.co.uk

 

Here is my amended code:

 

catalog/includes/configure.php

define('HTTP_SERVER', 'http://www.copybits.co.uk');

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

define('ENABLE_SSL', true);

define('HTTP_COOKIE_DOMAIN', 'www.copybits.co.uk');

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

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

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

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

define('DIR_WS_HTTPS_CATALOG', '/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/');

catalog/admin/includes/configure.php

define('HTTP_SERVER', 'https://www.copybits.co.uk');

define('HTTP_CATALOG_SERVER', 'https://www.copybits.co.uk');

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

define('ENABLE_SSL_CATALOG', 'true');

define('DIR_FS_DOCUMENT_ROOT', '/usr/home/u1146/domains/copybits.co.uk/public_html/catalog/');

define('DIR_WS_ADMIN', '/catalog/admin/');

define('DIR_FS_ADMIN', '/usr/home/u1146/domains/copybits.co.uk/public_html/catalog/admin/');

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

define('DIR_FS_CATALOG', '/usr/home/u1146/domains/copybits.co.uk/public_html/catalog/');

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

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

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

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_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');

define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 

Do I need to transfer any files into my private_html folder, my catalog folder is in public_html.

 

Hope this is enough information for somebody to help me out

 

Thanks

 

Jo

Archived

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

×
×
  • Create New...