[Moin-user] how do I do hostname redirection in a farm?

Ted Stern dodecatheon at gmail.com
Thu Jul 1 15:22:09 EDT 2010

On 30 Jun 2010 12:21:45 -0700, Ted Stern wrote:
> Hi all,
> I currently have a wiki farm located on somehost.someplace.com (for
> example), with wikis named like this in farmconfig.py:
>     # for multiple wikis, do something like this:
>     ("examplewiki",  r"^somehost.somewhere.com/ExampleWiki.*$"),
> We are going to be moving the wiki host to another computer, and I
> have anticipated this by creating a hostname alias on our local
> nameserver that points 'mywikis.somewhere.com' to
> 'somehost.somewhere.com'.
> However, after I change farmconfig.py to point to the new hostname,
> anyone going to the old hostname gets an error message.
> Is there a simple way to put up a redirection page or something that
> will send my users to the correct new URL?

A simple solution for the short term is to play with regular
expressions a little:

 ("examplewiki", r"^(somehost|mywikis).somewhere.com/ExampleWiki.*$"),

and add a message on the main page telling people to update their links.

 Frango ut patefaciam -- I break so that I may reveal

More information about the Moin-user mailing list