Forums / Install & configuration / Install multiple site with cluster

Install multiple site with cluster

Author Message

SEBBANE Alexandre

Saturday 21 August 2010 3:02:08 pm

hello,

i know that you could install several website on 1 instance and several database . 1 database per siteaccess.

How can we do that with db cluster : the index_cluster don't use ini file.

thank for your answers....

Alex

Paris, France

Jérôme Vieilledent

Sunday 22 August 2010 1:28:40 am

Hi Alex

You can duplicate your index_cluster.php script to index_cluster_mysiteaccess.php for instance. Then, in your Apache VirtualHost, you will just have to edit the cluster redirection :

RewriteRule ^/var/([^/]+/)?storage/images-versioned/.*  /index_cluster_mysiteaccess.php  [L]
RewriteRule ^/var/([^/]+/)?storage/images/.*            /index_cluster_mysiteaccess.php  [L]

Et voilà !