
Originally Posted by
glemigh
Is there a sane way to deal with the SSL problem where SSL is used and on the primary domain, and not on the additional domains, and checkout must occure within the SSL under the primary domain?
George
SSL can be an issue, especially if you use the same IP for all your domain because SSL need an unique IP for each domains. It means that your server seting has to even more complicated...
Another solution can be to use common DNS for all the SLLs and to use a different subfolder in order to change them.
As for the MultiSite configuration, it requires a bit of extra code.
Just take the case of the use of www.secure-payment.com as DNS ...
includes/config_sites/www.secure-payment.com_config.php has to contain:
Code:
<?php
$location = explode('/',$_SERVER['REQUEST_URI']);
switch($location[1]) {
case 'site1':
include('includes/config_sites/www.site1.com_config.php');
break;
case 'site2':
include('includes/config_sites/www.site2.com_config.php');
break;
case 'site3':
include('includes/config_sites/www.site3.com_config.php');
break;
}
unset($location);
?>
Then in the config files of each site, you have to write:
Code:
define('DIR_WS_HTTPS_CATALOG','/site1/');
define('HTTPS_SERVER', "https://www.secure-payment.com");
Code to add in the beginning of .htaccess:
Code:
RewriteCond %{HTTP_HOST} ^www.secure-payment.com$
RewriteRule ^site1/(.*)$ /zencart_folder/$1 [L]
RewriteCond %{HTTP_HOST} ^www.secure-payment.com$
RewriteRule ^site2/(.*)$ /zencart_folder/$1 [L]
This will make the SLL of all your sites like:
https://www.secure-payment.com/site1/
https://www.secure-payment.com/site2/
Like that, you can get away with only one IP ! :)
Warning, be really careful with the cookies that and not cross-domain !
Hope this helps !
Bookmarks