[Moin-user] Solved, in a way anyway, secure edit and unseure public access.
Henryk Gerlach
hgerlach at gmx.de
Tue Jun 26 12:29:52 EDT 2007
Hi,
Why don't you just use wiki 2 configs that point to the same directory:
/etc/moin/farmconfig.py:
#...
wikis = [
("readonly", r"^www.xxx.de/public/.*$"),
("readwrite", r"^www.xxx.de/private/.*$"),
]
#...
note that www.xxx.de:80 and ssl.xxx.de:443 can be served by two different webservers.
So you can make sure that /private/ is a legal script-alias only for the ssl protected one (you still may tweak with rewrites).
/etc/moin/readonly.py:
#...
class Config(FarmConfig)
#...
acl_rights_before= u""
acl_rights_default= u"All:read"
#
#...
/etc/moin/readwrite.py:
import readonly
class Config(readonly.Config):
auth = [http]
acl_rights_before= u"AdminGroup:read,write,revert"
acl_rights_default= u"TrustedGroup:read,write"
This way your read/write wiki inherits the config from the readonly wiki. I don't see, why you have to copy files...
(didn't test the code, but it should work)
Cheers,
Henryk
--
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail
More information about the Moin-user
mailing list