[Moin-user] howto config for two wikis?

Marcus Goldfish magoldfish at gmail.com
Sat Dec 16 23:23:17 EST 2006


On 12/16/06, George Dinwiddie <lists at idiacomputing.com> wrote:
>
> Marcus Goldfish wrote:
> >     You don't necessarily need to use virtual hosts.  Setting up two
> >     different ScriptAlias directives will be sufficient.
> >
> >     The farmconfig.py sets all the settings that are in common between
> the
> >     wikis.  Then the specific configs set the things that are not in
> common.
> >       There are examples included in the distribution.
> >
> >
> > Ok, I have two ScriptAlias directives.
> >
> > I don't see the relevant farmconfig.py examples you are referring to--
> > can you please point me to these, or post a snippet of relevant code?
>
> Look at /share/moin/config/wikifarm/farmconfig.py (if you took the
> default install).  You'll want to copy that for a starting point.  Then
> for each wiki, add a line under "wikis - [" in farmconfig.py.  Each of
> these will have the name of the wiki, and the url pattern used for that
> wiki.  For each of these, you'll need another config file named for that
> wiki.


Thanks George.  I think I that I may have twiddled it into working (start
pages seem to be ok).

The problem seemed to lie in my regexes in farmconfig.py.  Of course this
might be expected since it's not clearly documented on the moinmoin pages
(nor in farmconfig.py) that these *do not* need to be for virtual hosts.

Three quick questions:

1.  Does this apache config excerpt look ok?

   ### moinmoin config
   ScriptAlias /wiki1 "/usr/share/moin/wiki1/moin.cgi"
   ScriptAlias /wiki2 "/usr/share/moin/wiki2/moin.cgi"
   alias /wiki "/usr/share/moin/htdocs"
   <Directory /usr/share/moin/htdocs>
      Order allow,deny
      allow from all
   </Directory>
   ### end moinmoin

2. Should wiki1.py, wiki2.py, and my modified farmconfig.py all be located
in /usr/share/moin/config/wikifarm ?

3. Does this excerpt look ok for farmconfig.py?

   ("wiki1", r".{3,30}/wiki1.*$"),
   ("wiki2", r".{3,30}/wiki2.*$"),

Thanks again for the help!
Marcus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/moin-user/attachments/20061216/b7e2b38d/attachment.html>


More information about the Moin-user mailing list