[Moin-user] Thanks! ...now another question
Thomas Waldmann
tw-public at gmx.de
Tue Mar 24 04:34:20 EDT 2009
> # Creating the WSGI application
> # use shared=True to have moin serve the builtin static docs
> # use shared=False to not have moin serve static docs
> # use shared='/my/path/to/htdocs' to serve static docs from that path
> application = make_application(shared=True)
> #application =
> make_application(shared='/home/jfl/www/uspvp.org/wiki/moin_static190')
> #application = make_application(shared=False)
> </quote>
>
> I had set shared=False, because the other two hadn't worked with the
> flawed farmconfig.py But with farmconfig.py fixed shared=False wouldn't
> work, so I tried the other two in turn.
I need more information about the "not working". What did it (not) do
exactly?
> What does "serve the builtin static docs" mean?
When looking at the distribution archive, the stuff that used to be
located in wiki/htdocs (up to 1.8) moved to MoinMoin/web/static/htdocs
(1.9), and there is some new code in 1.9 to serve the static files (css,
images, js) via a automatically setup wsgi static file server
middleware. We had a similar static file server in 1.8 and before, but
just for the standalone server (not for apache or other external web
server deployments).
> I had made a symbolic link in my wiki directory from
> /home/jfl/www/uspvp.org/wiki/moin_static190
> to
> /usr/local/lib/python2.5/site-packages/MoinMoin/web/static/htdocs/
> thinking that the "builtin static docs" resided there. But then
> shared='/home/jfl/www/uspvp.org/wiki/moin_static190'
> would work, wouldn't it?
If you just want to serve the builtin static files via the builtin
static file server, the shared=True option is the easiest way.
> What exactly are the static files? templates?
png, css, js, java applet
> if they are real static
> files the I'd want apache to serve them (share=False), right?
You MAY do that, but you do not NEED to. Assuming that client side
caching happens, the builtin server should be fast enough.
More information about the Moin-user
mailing list