[Trac] multiple projects -- fubar!!

Frazier, Stephen frazier at ugs.com
Thu Mar 3 15:05:56 EST 2005


Bruce,

The one thing I noticed is you are using Location instead of
LocationMatch. That may make a difference. Based on your settings, all
the trac projects should in the /var/projects directory. That looks to
be what you have done.

If you change the location from / to /projects, do not forget to also
change the TracUriRoot to match.

So, using this:
----------------------------------------
Alias /trac/ /usr/share/trac/htdocs/
<Directory "/usr/share/trac/htdocs">
   Options Indexes MultiViews
   AllowOverride None
   Order allow,deny
   Allow from all
</Directory>

<LocationMatch />
   SetHandler mod_python
   PythonHandler trac.ModPythonHandler
   PythonOption TracUriRoot "/"
   PythonOption TracEnvParentDir "/var/projects"
</LocationMatch>
------------------------------------------------

A project listing should be presented by http://192.168.1.52/ or the
Trac start page for project_1 with http://192.168.1.52/project_1.

Changing the LocationMatch block to this:

<LocationMatch /projects>
   SetHandler mod_python
   PythonHandler trac.ModPythonHandler
   PythonOption TracUriRoot "/projects"
   PythonOption TracEnvParentDir "/var/projects"
</LocationMatch>

Will change the URLs to http://192.168.1.52/projects and
http://192.168.1.52/projects/project_1.

Steve

-----Original Message-----
From: bruce [mailto:bedouglas at earthlink.net] 
Sent: Thursday, March 03, 2005 2:54 PM
To: Frazier, Stephen; trac at lists.edgewall.com
Subject: RE: [Trac] multiple projects -- fubar!!

stephen..

i tried what you suggested.. no luck!!

doing a http://192.168.1.52/project_1 gives a server error..

ls /var/projects/project_1
 htdocs   project_1_svn

is this correct? should there be something else in this dir?

also, when i change the <Location /> --><Location /projects>

i get an error when i do http://192.168.1.52/projects/project_1..

something simple's wrong....

can someone tell me what there dir structure looks like for a multiple
proj configuration... ?????

-bruce


-----Original Message-----
From: Frazier, Stephen [mailto:frazier at ugs.com]
Sent: Thursday, March 03, 2005 11:10 AM
To: trac at lists.edgewall.com; bedouglas at earthlink.net; Matthew Good; Brad
Anderson
Subject: RE: [Trac] multiple projects -- fubar!!


Bruce,

Based on your settings, you should access the project listing by
http://192.168.1.52/. To access project_1's trac, use
http://192.168.1.52/project_1.

The directory listing you are getting from http://192.168.1.52/trac is
the common Trac files(Clearsilver templates, etc.).

If you wanted to use a URL of the form
http://192.168.1.52/projects/project_1, you need to change the Location
block from / to /projects.

Steve

-----Original Message-----
From: trac-bounces at lists.edgewall.com
[mailto:trac-bounces at lists.edgewall.com] On Behalf Of bruce
Sent: Thursday, March 03, 2005 1:40 PM
To: 'Matthew Good'; 'Brad Anderson'; trac at lists.edgewall.com
Subject: [Trac] multiple projects -- fubar!!

i've blown something!!

when i have just the following in the httpd.conf file, i can display a
trac site using the --> http://192.1681.52/cgi-bin/trac.cgi

Alias /trac/ /usr/share/trac/htdocs/
<Directory /usr/share/trac/htdocs>
   Options Indexes MultiViews
   AllowOverride None
  Order allow,deny
  Allow from all
</Directory>
<Location "/cgi-bin/trac.cgi">
  SetEnv TRAC_ENV "/var/projects/project_1/htdocs"
</Location>

<Location "/cgi-bin/trac.cgi/login">
AuthType Basic
AuthName "Project 1"
AuthUserFile /var/projects/project_1/htdocs/trac.htpasswd
Allow from all
#Require valid-user
</Location>


when i comment out the above, and add the following... i can no longer
get trac via the above, which is what i expected. however, i can't seem
to find anyway to gte trac to come up at all. when i do
http://192.168.1.52/trac i get an error stating the 'page can't be
found'. if i do http://192.168.1.52/trac/ i get the dir listing which is
not what i want... if i do http://192.168.1.52/trac/projects i get a
'page can't be found'


Alias /trac/ /usr/share/trac/htdocs/
<Directory "/usr/share/trac/htdocs">
   Options Indexes MultiViews
   AllowOverride None
   Order allow,deny
   Allow from all
</Directory>

<Location />
   SetHandler mod_python
   PythonHandler trac.ModPythonHandler
   PythonOption TracUriRoot /
   PythonOption TracEnvParentDir "/var/projects"
</Location>



so, obviously i'm screwing something up...

here's what my system looks like regarding trac...

ls /var/projects
 project_1

(i don't have a '/var/trac' dir)

ls /usr/share/trac
 cgi-bin  htdocs  templates   wiki-default


any ideas/thoughts.... 


thanks..

bruce

i'm dealing with a situation where i'm not quite sure what should be in
the config file, if my system/dirs is/are setup correctly, combined with
what i should be entering as the correct URL to access the site!!!

once i get this up/running, i'm definitely writing it up!!!


More information about the Trac mailing list