On May 23, 7:38 am, ewk_elwa <[EMAIL PROTECTED]> wrote:
> I have multiple projects in my Trac setup with the TRAC_PARENT_ENV and
> Apache2.
> When I connect to servername/trac it presents me a page with the list
> of projects. I can click on a project and go to the project Trac site.
>
> I want to:
> 1. make the project listing page invisible or restricted. I don't want
> people on project XYZ knowing that there exist a project ABC because
> both are listed on the servername/trac page.
>
> servername/trac should produce a restricted or no page
> severname/trac/projectXYZ should put the user at projectXYZ login
> dialog box
> servername/trac/projectABC should put the user at projectABC login
> dialog box

You can customise the page. See:

  http://trac.edgewall.org/wiki/TracInterfaceCustomization

Alternatively, if using mod_wsgi, relatively easy to setup the
equivalent of using TRAC_ENV_PROJECT_DIR, but where no project index
page available.

See:

  http://code.google.com/p/modwsgi/wiki/IntegrationWithTrac

Look for example:

  WSGIDaemonProcess sites processes=3 threads=25 maximum-requests=1000

  RewriteEngine On

  RewriteCond %{REQUEST_URI} ^/trac/([^/]+)
  RewriteCond /usr/local/trac/sites/%1/conf/trac.ini !-f
  RewriteRule . - [F]

  RewriteCond %{REQUEST_URI} ^/trac/([^/]+)
  RewriteRule . - [E=trac.env_path:/usr/local/trac/sites/%1]

  WSGIScriptAliasMatch ^/trac/([^/]+) /usr/local/trac/apache/trac.wsgi

  <Directory /usr/local/trac/apache>
  WSGIProcessGroup sites
  WSGIApplicationGroup %{GLOBAL}
  Order deny,allow
  Allow from all
  </Directory>

Get creative and you could use a custom WSGI application to create an
alternate index page based on what ever criteria you want.

Graham
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to