Edgewall Software

Changes between Version 2 and Version 3 of TracCgi


Ignore:
Timestamp:
Aug 27, 2005, 11:16:03 PM (19 years ago)
Author:
Christopher Lenz
Comment:

Added info on authentication

Legend:

Unmodified
Added
Removed
Modified
  • TracCgi

    v2 v3  
    2424  SetEnv TRAC_ENV "/path/to/projectenv"
    2525</Location>
     26}}}
    2627
    27 # You need this to allow users to authenticate
     28''Note: If Apache complains about the !SetEnv line make sure that the mod_env module is available and enabled.''
     29
     30''Note: If you are using the [http://httpd.apache.org/docs/suexec.html Apache suEXEC] feature see [http://projects.edgewall.com/trac/wiki/ApacheSuexec ApacheSuexec] (on the main Trac site).''
     31
     32
     33== Adding Authentication ==
     34
     35The simplest way to enable authentication with Apache is to create a password file. Use the `htpasswd` program to create the password file:
     36{{{
     37$ htpasswd -c /somewhere/trac.htpasswd admin
     38New password: <type password>
     39Re-type new password: <type password again>
     40Adding password for user admin
     41}}}
     42
     43After the first user, you dont need the "-c" option anymore:
     44{{{
     45$ htpasswd /somewhere/trac.htpasswd john
     46New password: <type password>
     47Re-type new password: <type password again>
     48Adding password for user john
     49}}}
     50
     51  ''See the man page for `htpasswd` for full documentation.''
     52
     53After you've created the users, you can set their permissions using TracPermissions.
     54
     55Now, you'll need to enable authentication against the password file in the Apache configuration:
     56{{{
    2857<Location "/cgi-bin/trac.cgi/login">
    2958  AuthType Basic
     
    3463}}}
    3564
    36 ''Note: If Apache complains about the !SetEnv line make sure that the mod_env module is available and enabled.''
    37 
    38 ''Note: If you are using the [http://httpd.apache.org/docs/suexec.html Apache suEXEC] feature see [http://projects.edgewall.com/trac/wiki/ApacheSuexec ApacheSuexec] (on the main Trac site).''
    39 
    4065----
    4166See also:  TracGuide, TracInstall, TracFastCgi, TracModPython