Tags:
create new tag
view all tags

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

TWiki version: TWikiRelease04x01x02
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Solaris
Web server: Apache 2
Perl version:  
Client OS:  
Web Browser:  
Categories:  

-- LarsBruunxHansen - 19 Sep 2007

Answer

ALERT! 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

Change status to:
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2007-09-25 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.