[Moin-user] pages directory problem
Raphael Marvie
raphael.marvie at lifl.fr
Tue Sep 22 03:43:07 EDT 2009
Dear All,
Trying to find a solution to my own configuration problem which is
similar, I have a question regarding the `script_name' property. When
using a wiki farm, is it possible to kind of overload this property in
each wiki configuration file (one.py and two.py in my situation)? Or has
this property only a meaning in the `moin.fcg' file?
I am using lighttpd (Apache is not easy to consider as several services
are already in production on the host). Using mode_rewrite I can access
the proper page in the proper wiki when typing its url.
http://mydomain.org/one/FrontPage
But the returned page does not include the wiki name for links (which I
can understand). So I cannot navigate from page to page inside the wiki.
Clicking on RecentChanges brings me to http://mydomain.org/RecentChanges
and not http://mydomain.org/one/RecentChanges. Which seems correct from
the fastcgi script as it received only this part of the information.
excerpt from 10-fastcgi.conf:
url.rewrite-once = (
"^/robots.txt" => "/robots.txt",
"^/favicon.ico" => "/favicon.ico",
"^/static/(.*)" => "/static/$1",
"^/[^/]*/(.*)" => "/wiki-engine/$1"
)
excerpt from farmwiki.py:
wikis = [
("one", r"^mydomain.org/one.*$"),
("two", r"^mydomain.org/two.*$"),
]
I have three wiki instances to run. Should I move to a non farm-based
solution and install each wiki independently? Then I can easily tweak
the `script_name' property on each `moin.fcg' file. It does not seems
the cleanest solution but if it is the only one I can live with it.
Thanks,
raphael
Thomas Waldmann wrote:
> On Wed, 2009-05-27 at 19:59 +1000, Phillip Pace wrote:
>> Hey guys/gals,
>>
>> I have a problem which I can't seem to figure out.
>>
>> I've created a wiki farm which is working and accessing them through
>> my site like so:
>>
>> www.website.com/wiki/user1/
>> www.website.com/wiki/user2/
>
> You are doing path-based wiki farming, this is a bit more tricky than
> host-based (wiki1.website.com, wiki2.website.com).
>
>> However when I look at the stored data files in the /data/user/pages/
>> directory for each instance it stores the pages prefixed with the
>> user-name like so:
>>
>> /data/user1/pages/user1(2f)homepage
>
> This is a misconfiguration issue. Moin does not know that user1 is part
> of the script name (it thinks it is part of the path).
>
>> Any ideas?... who knows this is probably how it should work.
>
> See there:
>
> http://master18.moinmo.in/HelpOnInstalling/ApacheOnLinux
>
> Search for script_name there.
>
>
> ------------------------------------------------------------------------------
> Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
> is a gathering of tech-side developers & brand creativity professionals. Meet
> the minds behind Google Creative Lab, Visual Complexity, Processing, &
> iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
> Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
> _______________________________________________
> Moin-user mailing list
> Moin-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/moin-user
--
Raphael Marvie
LIFL - Université Lille 1
http://www.lifl.fr/~marvie/
+33 3 20 33 59 51
More information about the Moin-user
mailing list