Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Shared SSL, links to checkout in header are different URL, cannot login either. Endless loop.


kawie95

Recommended Posts

Posted

So I had SSL a while back, but it was a big mess and I got rid of it. I reenabled my SSL Shared cert today to fix my header, which was going to a domain that is similar to my DNS, eg. https://toneworkmediamusic.c4.ixwebhosting....ut_shipping.php

Heres the only place I see this link that appears in my headers for my catalog.

Web Hosting panel -DNS configuration

DNS configuration 
Zone: toneworkmediamusic.c4.ixwebhosting.com	
Name TTL Class Type Data 
Built in A records 
toneworkmediamusic.c4.ixwebhosting.com 86400 IN A 76.162.22.146   
*.toneworkmediamusic.c4.ixwebhosting.com 86400 IN A 76.162.22.146

*These just show the same link as my Checkout url in my catalog header. This is the only place I have seen the cart url its giving me... I want to change it to https://mydomain.com*

 

This DNS webshost setting is the only place I have seen this URL before. I get this URL in my OSC Catalog header, the URL for my My Account and Checkout seem to be this longer URL, https://toneworkmediamusic.c4.ixwebhosting....ut_shipping.php This URL is not metioned in my configure.php files, so I'm really speachless where its comming from. Please help.

 

The DNS url above is the same files as https://mydomain.com and http://mydomain.com, but they don't seem to hold my login info, or cart contents (Cookies problem??) but anyway, I just want to change this URL that I HAVE NO IDEA WHERE ITS COMMING FROM! Thanks. (Does OSC HAVE A SSL KEY SETTING?)

 

Heres what I got,

 

ADMIN configure.php

  define('HTTP_SERVER', 'https://mydomain.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers
 define('HTTP_CATALOG_SERVER', 'https://mydomain.com');
 define('HTTPS_CATALOG_SERVER', 'https://mydomain.com');
 define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)
 define('DIR_WS_ADMIN', '/admin/');
 define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);
 define('DIR_WS_CATALOG', '/catalog/');
 define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_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/');

CATALOG configure.php

  define('HTTP_SERVER', 'http://mydomain.com/'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://mydomain.com/'); // 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', 'mydomain.com');
 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/');

 define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
 define('DIR_FS_CATALOG', '/hsphere/local/home/gerhardd/mydomain.com/catalog/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . '**editied**/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

My main problem is that my checkout header link goes to https://toneworkmediamusic.c4.ixwebhosting....ut_shipping.php and then that takes me to https://toneworkmediamusic.c4.ixwebhosting....talog/login.php which when I login with my login and password and hit SIGN IN (https://toneworkmediamusic.c4.ixwebhosting.com/catalog/login.php?action=process) It takes me back to https://toneworkmediamusic.c4.ixwebhosting....talog/login.php without signing me in. WTF. Please help.

-Eric Schrader

  • 2 weeks later...
Posted

catalog/includes/configure.php:

  define('HTTP_SERVER', 'https://toneworkmediamusic.c4.ixwebhosting.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://toneworkmediamusic.c4.ixwebhosting.com'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', true); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', '');
 define('HTTPS_COOKIE_DOMAIN', '');
 define('HTTP_COOKIE_PATH', '/');
 define('HTTPS_COOKIE_PATH', '/');

 

FIXED IT!!!

 

admin/includes/configure.php:

 define('HTTP_SERVER', 'https://toneworkmediamusic.c4.ixwebhosting.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers
 define('HTTP_CATALOG_SERVER', 'https://toneworkmediamusic.c4.ixwebhosting.com');
 define('HTTPS_CATALOG_SERVER', 'https://toneworkmediamusic.c4.ixwebhosting.com');
 define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module

 

My hosting company changed the cookie domain to '' and now it works!!!! TRY IT!

Here's what they said my problem was:

In order to use shared ssl, your oscommerce site should be running at

 

 

http://toneworkmediamusic.c4.ixwebhosting.com and the oscommerce site has to be accessed at

 

http://toneworkmediamusic.c4.ixwebhosting.com only when using shared ssl, that's why please be sure to make following changes in toneworkmedia.com/catalog/includes/configure.php :

define('HTTP_SERVER', ''); to define('HTTP_SERVER', '

 

http://toneworkmediamusic.c4.ixwebhosting.com');

define('HTTPS_SERVER', ''); to define('HTTPS_SERVER', '

 

https://toneworkmediamusic.c4.ixwebhosting.com');

define('ENABLE_SSL', false); to define('ENABLE_SSL', true);

-Eric Schrader

Archived

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

×
×
  • Create New...