On 01/15/2008 12:14 PM, Jason Winnebeck spoke thusly:
> Will this technique work if running a multi-project environment? I saw there 
> that the configuration and trac-admin use referenced a specific trac instance.

I can confirm it works in a multi-project setup, however, some 
clarification of what is 'static' is necessary:

- The files that are copied appear to be a merge of the shared Trac 
images into /common/ and the current project htdocs into /site/. If so, 
the base reference in Apache should be the htdocs_location, not with the 
/common/ added.

However, as Jason noted, it is currently necessary.

I think *two* static locations should be made--one site-wide for all 
shared Trac images, css, js, etc... and one for project-specific files.

- Second, I noticed references to /<project-name>/chrome/common/ which 
appeared to reference same 'static' files. I created another AliasMatch 
to the same location and all seems fine. Though I suspect usage should 
be standardized.

I also added a SetHandler None to the /static/ Location to make sure 
Apache handled the files instead of mod_python.

Here is my Apache config:

==================
Alias /static/ /var/trac/communitypm/static/common/
AliasMatch ^/.*/chrome(.*) /var/trac/communitypm/static$1

<Location />
  SetHandler mod_python
  PythonInterpreter main_interpreter
  PythonHandler trac.web.modpython_frontend
  PythonOption TracEnvParentDir /var/trac
  PythonOption TracUriRoot /
</Location>

<Location /static/>
  SetHandler None
</Location>

<Directory /var/trac/communitypm/static/common/>
  Order allow,deny
  Allow from all
</Directory>
=================

Note, <Directory> was necessary since my location is outside document root.

-Dan


-- 
C. Daniel Chase                                      [EMAIL PROTECTED]
Web Systems Analyst                                     (423) 425-4003
The University of Tennessee at Chattanooga         http://www.utc.edu/
Get Firefox!   http://www.spreadfirefox.com/?q=affiliates&id=58708&t=1
HighEdWebDev 2007                           http://highedweb.org/2007/ 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected]
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