Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
one server - one database - mutilple domains
jross
New
I am looking to share the database with several different domains - is this possible?
Can I upload the script to the different domains and define the conf files the same - or will I have an issue with cookies?
0
This discussion has been closed.
Comments
When you say they went a bit wacky, what happened?
If it's any help, if I can be bothered tomorrow (which unfortunately is quite unlikely cause I'm pretty lazy) I might try setting up a few versions of vanilla running on a centralised store and write a short how-to for it. I'll see where the day takes me and if I find anything to do in the evening. If I get bored and finish fixing all the nightmare boxes at work I'll try and get onto it.
<?php
// settings.php
$website = basename($_SERVER['HTTP_HOST']);
$site1 = 'www.site1.com';
$site2 = 'www.site2.com';
if ($website = $site1){
include('settings1.php');
}
else if ($website = $site2){
include('settings2.php');
}
?>