From 60861760fc3bdc1cdea407e8ee21eb8c54e77b8f Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Tue, 7 Apr 2009 17:10:54 -0400 Subject: Host multiple sites with the same codebase This is the beginning of the code for status.net and related status farms. It will read basic information about a site from a shared, central database and use the data stored there to switch on the hostname. --- config.php.sample | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'config.php.sample') diff --git a/config.php.sample b/config.php.sample index 59e0cc712..eec2bb2c5 100644 --- a/config.php.sample +++ b/config.php.sample @@ -192,3 +192,11 @@ $config['sphinx']['port'] = 3312; #Use a different hostname for SSL-encrypted pages #$config['site']['sslserver'] = 'secure.example.org'; + +#If you have a lot of status networks on the same server, you can +#store the site data in a database and switch as follows +#Status_network::setupDB('localhost', 'statusnet', 'statuspass', 'statusnet'); +#if (!Status_network::setupSite($_server, $_path)) { +# print "Error\n"; +# exit(1); +#} -- cgit v1.2.3-54-g00ecf