Question
I would like to access the different TWiki webs within the TWiki site using different DNS names, i.e. web1.domain.org, web2.domain.org, etc.
I guess the way to go forward is
Apache virtual hosts
. I just cannot figure out how to do that in a TWiki context.
Here is an example for web1:
<VirtualHost *:80>
DocumentRoot /apps/twiki/bin
ServerName web1.domain.org
--- how would I make it point to TWiki web1? Using a Redirect directive, or?
</VirtualHost>
Anyone able to help?
Thx.
Environment
--
LarsBruunxHansen - 19 Sep 2007
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
That would depend on the goal you want to achieve. Unfortunately I don't know of a really
simple configuration, because usually you'd like to share the TWiki codebase, but the pointers to the
data directories lie exactly within that codebase, in
lib/LocalSite.cfg.
If you just want to make better URLs, e.g.
support.domain.org instead of
www.domain.org/twiki/bin/view/Support, then vhosts together with
mod_rewrite, inspired by
ShorterUrlCookbook, should do the trick.
--
HaraldJoerg - 20 Sep 2007
Harald, yes it is exactly the latter I want. I'll try to see if I can hack it using vhosts and mod_rewrite as you suggest. Thanks.
--
LarsBruunxHansen - 24 Sep 2007