[Trac] permissions on wiki subpages

Emmanuel Blot manu.blot at gmail.com
Mon Aug 22 17:20:30 CDT 2005


> is it possible to restrict the view of wiki subpages ? for example
> anonymous may view the startpage, but only authenticated users may view
> the subpages ?

You can't do it from the Trac permission system, however you guess you
could configure your web server to define which users can access a
given URI

Wiki subpages appear as hierarchical paths, so you can define
<Location>s in your Apache configuration file to match your
requirements

Example:
http://server/trac/wiki/ : everyone
http://server/trac/wiki/Zone1/... : authenticated users

etc.

You'll probably want to customize the "access denied" (HTTP 401) web
server pages so that they look like as a regular Trac pages, to give a
better user experience, see ErrorDocument Apache configuration
directive.

-- 
Manu


More information about the Trac mailing list