Edgewall Software

Changes between Version 57 and Version 58 of TracOnFedoraCore


Ignore:
Timestamp:
Sep 23, 2006, 9:46:30 AM (18 years ago)
Author:
thekingant@…
Comment:

Update the example http trac.conf file for FC5

Legend:

Unmodified
Added
Removed
Modified
  • TracOnFedoraCore

    v57 v58  
    3636}}}
    3737
    38 3) Next, you need to edit (is this the exact contents of this file, or is this appended to what is already there??) the file ''/etc/httpd/conf.d/trac.conf'' to point to your new project
     383) Next, you need to edit the file ''/etc/httpd/conf.d/trac.conf'' to point to your new project
    3939environment, as in this example (using mod_python):
    4040
    4141{{{
    42  <Location /foobar>
     42<LocationMatch /cgi-bin/trac\.f?cgi>
     43   SetEnv TRAC_ENV /srv/trac/foobar
     44</LocationMatch>
     45<IfModule mod_python.c>
     46<Location /cgi-bin/trac.cgi>
    4347   SetHandler mod_python
    4448   PythonHandler trac.web.modpython_frontend
    4549   PythonOption TracEnv /srv/trac/foobar
    46    PythonOption TracUriRoot /foobar
    47  </Location>
    48  <Location "/foobar/login">
     50</Location>
     51</IfModule>
     52<Location "/cgi-bin/trac.cgi/login">
    4953   AuthType Basic
    5054   AuthName "alexandria"
    5155   AuthUserFile /opt/trac/trac.htpasswd
    5256   Require valid-user
    53  </Location>
     57</Location>
    5458}}}
    5559
    56 The example above assumes you have a trac project environment setup in ''/srv/trac/foobar/'' directory, described in step 2 and a htpasswd file in /opt/trac/trac.htpasswd (ie the file is named: /opt/trac/trac.htpasswd/.htpasswd ??)for authentication purposes (a FC5 specific example is needed here and would save countless hours)(see also wiki:TracModPython (too generic)).
     60The example above assumes you have a trac project environment setup in ''/srv/trac/foobar/'' directory, described in step 2 and an htpasswd file at /opt/trac/trac.htpasswd for authentication purposes (see also wiki:TracModPython (too generic)).
    5761
    5862You will need to tell Apache to reload configuration after editing trac.conf: