Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Shared SSL certificate issue


swolsten

Recommended Posts

Hi,

 

I am having a problem with a new site that I am setting up. I am too stingy to get and SSL certificate for the site from day one so I decided to have the secure area re-direct to my existing site on the same box with a secure certificate I already own.

 

The main site is http://www.mydomain.com/ with the SSL redirect to https://myotherdomain.com/secure/mydomain/. This seems to work most of the time but when I login to the secure site I get a 404 error. If I provide the incorrect login details I do not get the 404.

 

I have a symbolic link on /home/myotherdomain/public_html/secure/mydomain -> /home/mydomain/public_html and the permissions are all set OK in httpd.conf

 

I checked the error_log in apache and it appears that a re-direct is setup to load shopping_cart.php from the root of the webserver.

 

[Fri Jul  1 08:54:39 2005] [error] [client *.*.*.*] File does not exist: /home/myotherdomain/public_html/index.php

 

define('HTTP_SERVER', 'http://www.mydomain.com');
define('HTTPS_SERVER', 'https://myotherdomain.com');
define('ENABLE_SSL', true);
define('HTTP_COOKIE_DOMAIN', 'www.mydomain.com');
define('HTTPS_COOKIE_DOMAIN', 'myotherdomain.com');
define('HTTP_COOKIE_PATH', '/');
define('HTTPS_COOKIE_PATH', '/secure/mydomain/');
define('DIR_WS_HTTP_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/secure/mydomain/');

 

It seems that switching back between SSL and None SSL is causing an issue with different domain names.

 

Can anyone can offer any assistance to resolve this issue. I am considering disabling SSL but I really do not want to do that as it tends to scare users.

 

TIA,

Stuart.

Dont forget to Search. Your problem has already been fixed before.<br>

Please visit Manchester-Fireworks.com.

Link to comment
Share on other sites

I have been doing a bit more digging and it appars that the tep_redirect is redirecting to the incorrect location, it is trying to redirect to the root folder of my https server when it should be in a sub folder /secure/mydomian/.

 

Is this a known feature?

Dont forget to Search. Your problem has already been fixed before.<br>

Please visit Manchester-Fireworks.com.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...