I'm doing something similar. The solution I came up with uses a hosts configuration file to set the DOKU_CONF and DOKU_URL constants. This required modifying inc/init.php to read the hosts.conf early. I also had to define DOKU_DIR as an alternative to DOKU_INC because the sitemaps were being written to the wrong place.
Thanks for your reply, I appreciate that.
I have to check this out. My approach is slightly different. I run a few scripts that set up $conf and the DOKU_CONF, DOKU_INC etc. constants before calling doku.php/feed.php/...Diff patch is attached. The configuration looks like this: # hosts.conf.php # <?php exit()?> # DokuWiki hosts configuration file # Defines URIs for wikis and the directories they live in # URI pattern <sp> Canonical URI <sp> Base directory # Pattern can contain subpatterns that will be replaced in the URI and base dir.^(www.)?whoopdedo.org/doku/ http://whoopdedo.org/doku/ /path/to/doku/ ^(www.)?whoopdedo.org/moe/ http://whoopdedo.org/moe/ /path/to/moe/
One problem I'm having with the DokuWiki source is that the config files are all hardcoded. I would prefer to have a constant defined for the path to every config file, i.e. instead of DOKU_CONF.'local.php' I'd prefer DOKU_CONF_LOCAL, which could then be overridden easily.
In my current setup, only acl.auth.php and local.php can be set up individually per wiki, and I had to patch the source to achieve that.
I have documented a _previous_ version of my approach at http://simon.heimlicher.com/work/software/dokuwiki/farm/startbut I have found an easier way in the meantime. I will update my documentation and let you know when I'm done.
Happy farming :-) Cheers, Simon -- Simon Heimlicher Communication Systems Research Group, ETH Zurich Web: http://www.csg.ethz.ch/people/simonh Office: ETZ G 60.1, Gloriastrasse 35, 8092 Zurich Phone: +41 44 632 7022 Fax: +41 44 632 1035 -- DokuWiki mailing list - more info at http://wiki.splitbrain.org/wiki:mailinglist