Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Stylesheet location / SSL Cert Sharing Question


meadtj

Recommended Posts

Posted

Ok here is my problem, I am on a cert sharing server so I have two copies of my catalog files

 

http://www.mydomain.com < -- my domain name

http://www.mydomain.com/ssl < -- my secure domain name

 

http://www.mydomain.com/ssl routes to https://[email protected]/ssl

 

I have a full install of oscommerce in mydomain.com with settings in config file as follows

 

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

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

define('ENABLE_SSL', true);

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

define('HTTPS_COOKIE_DOMAIN', 'www.mydomain.com/ssl');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

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/');

 

My /ssl/ directory has a copy of my files from my root along with /includes/ and it's own configure file. Everything works fine except for the fact that my lock image that appears in the bottom left of browser or in address bar if your using mozilla has a line through it and says some items are not encrypted. I am trying to remove this message. I changed all of the image locations in /ssl/ directory to load from the secure server at /ssl/images. So the config file in my /ssl/ directory actually looks like this for define

 

define('DIR_WS_IMAGES', 'https://[email protected]/ssl/images/');

 

I have traced every image file and post() or get() command and corrected the location to match the secure domain website.

The thing I am having trouble with is I cannot get my secure server to load the stylesheet in /ssl/stylesheet instead it is loading the stylesheet in my root directory. I think I need to know where stylesheet is loaded into oscommerce so that I can correct this unsecured lock image.

 

The only other solution for this that I could think of would be to actually change the config file in /ssl/includes/configure.php to this for the defines

 

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

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

 

And then manually go in and change all of the references in the /include directory to link back to the www.mydomain.com root address as needed so that the customer will be able to click home and it will redirect them out of the secure area. But this would be a huge pain and time wasted. So I think if I can correct the stylesheet to link to the /ssl/ instead of /root/ssl , that the site will look completely secure and my lock won't have a cross through it.

Archived

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

×
×
  • Create New...