[daisy] daisywiki prefix configuration out of DAISY_HOME
Paul Focke
paul at outerthought.org
Tue Mar 18 12:14:27 CET 2008
Hi
You could of course configure jetty to mount daisy where you want.
Copy <DAISY_HOME>/daisywiki/conf/jetty-daisywiki.xml to <WIKIDATA_DIR>.
Now edit that file so that instead of having daisy mounted at / you have
it mounted at /jubjub.
<Set name="handler">
<New id="Handlers"
class="org.mortbay.jetty.handler.HandlerCollection">
<Set name="handlers">
<Array type="org.mortbay.jetty.Handler">
<Item>
<New class="org.mortbay.jetty.webapp.WebAppContext">
<Arg><SystemProperty name="daisywiki.home"/>/webapp</Arg>
<!-- The Daisy mountpoint -->
<Arg>/jubjub</Arg>
<Set name="defaultsDescriptor"><SystemProperty
name="daisywiki.home"/>/conf/jetty-daisywiki-defaults.xml</Set>
</New>
</Item>
<Item>
<New id="DefaultHandler"
class="org.mortbay.jetty.handler.DefaultHandler"/>
</Item>
<Item>
<New id="RequestLog"
class="org.mortbay.jetty.handler.RequestLogHandler"/>
</Item>
</Array>
</Set>
</New>
</Set>
If you are using the service wrappers make sure that you have a look in
the wiki service script configuration in <WIKIDATA_DIR>. There you will
see some instructions on how to point to your custom jetty
configuration.
Paul
On Tue, 2008-03-18 at 09:26 +0100, Tom Brusselle wrote:
> Hi,
>
> We would like to run several daisy instances on one machine. No problem
> so far, just change the ports. (nicely explained in the docs)
> Thanks to the separation of application files and data/config files, we
> can just point the DAISY_HOME of every instance to the same place so we
> don't have to duplicate the DAISY_HOME directory and we can save space.
> Very nice so far.
>
> But here comes the problem: Each of these daisies has to run with a
> different prefix. (actually, each daisy has to run at "/" and at
> "/someprefix"). This is possible by editing the file
> DAISY_HOME/daisywiki/webapp/sitemap.xmap . But this file with
> daisy-instance-specific configuration is located in the general
> DAISY_HOME directory.
>
> Is it possible to put the sitemap.xmap file in the wikidata dir? Or is
> there another way to configure different daisywiki instances that run on
> the same DAISY_HOME dir to have different prefix configurations?
>
> regards,
>
> Tom Brusselle
>
>
> **** DISCLAIMER ****
> http://www.schaubroeck.be/maildisclaimer.htm
> _______________________________________________
> daisy community mailing list
> Professional Daisy support: http://outerthought.org/en/services/daisy/support.html
> mail to: daisy at lists.cocoondev.org
> list information: http://lists.cocoondev.org/mailman/listinfo/daisy
More information about the daisy
mailing list