[Trac] multiple projects -- fubar!!

Frazier, Stephen frazier at ugs.com
Thu Mar 3 14:10:09 EST 2005


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