[Moin-user] Adding wiki without restarting Apache
Shchupak, Vitaliy
Vitaliy.Shchupak at deshaw.com
Thu Feb 12 02:11:31 EST 2009
You could use mod_rewrite to achieve this. This example assumes you are
using mod_python and your URLs are of the form
http://hostname/<wiki>/PageName. You may need to adjust it slightly for
CGI and different URL formats.
1. Create a `wiki-map.conf` file mapping a wikiname to a constant, eg:
{{{
mywiki1 1
mywiki2 1
}}}
1. Add the apache configuration:
{{{
RewriteMap wiki-map txt:/path/to/wiki-map.conf
RewriteCond ${wiki-map:$1} =1
RewriteRule ^/([a-z]*)(/.*)?$ /path/to/moinmodpy.py$2 [L]
}}}
Now to add a new wiki, you would just add it to the wiki-map file, and
apache will see that the file was updated and reloaded the changes.
-Vitaliy
-----Original Message-----
From: Mattias Skarin [mailto:i92matsk at yahoo.com]
Sent: Wednesday, February 11, 2009 3:39 PM
To: moin-user at lists.sourceforge.net
Subject: [Moin-user] Adding wiki without restarting Apache
Currently I need a ScriptAlias entry for every new
wiki added in httpd.conf.
This in turns requires an Apache restart. Is there any
way around this?
All ideas welcome..
Thanks
Mattias
------------------------------------------------------------------------
------
Create and Deploy Rich Internet Apps outside the browser with
Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and
code to
build responsive, highly engaging applications that combine the power of
local
resources and data with the reach of the web. Download the Adobe AIR SDK
and
Ajax docs to start building applications
today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Moin-user mailing list
Moin-user at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user
More information about the Moin-user
mailing list