Matthew Gillen wrote:
Brad Fuller wrote:
Thanks for the help, I appreciate it. Here's what I've tried that
doesn't work:
<VirtualHost *:8000>
DocumentRoot /var/trac
ServerName my.domain.com
<Directory />
SetHandler mod_python
PythonHandler trac.web.modpython_frontend
PythonOption TracEnv /var/trac
PythonOption TracUrlRoot /
</Directory>
<Location /project>
SetHandler mod_python
PythonHandler trac.web.modpython_frontend
PythonOption TracEnvParentDir /var/trac/project
</Location>
</VirtualHost>
/var/trac is just an empty dir
/var/trac/project is a trac enabled project
svn is at: /var/svn/project
If I try to access: http://my.domain.com:8000/ or
http://my.domain.com:8000/project I get internal server error 500.
I didn't notice before, but you've got what looks like two configurations there.
Try this:
<VirtualHost *:8000>
DocumentRoot /var/trac
ServerName my.domain.com
<Location />
SetHandler mod_python
PythonHandler trac.web.modpython_frontend
PythonOption TracEnvParentDir /var/trac/
</Location>
</VirtualHost>
Note the TracEnvParentDir and DocumentRoot are the same.
If you want both http://my.domain.com:8000/ and
http://my.domain.com:8000/project to point to the same place you could then use
an alias line.
Alright, this works:
<VirtualHost *:8000>
DocumentRoot /var/trac
ServerName my.domain.com
<Location /project1>
SetHandler mod_python
PythonHandler trac.web.modpython_frontend
PythonOption TracEnvParentDir /var/trac
PythonOption TracUriRoot /
</Location>
<Location /project2>
SetHandler mod_python
PythonHandler trac.web.modpython_frontend
PythonOption TracEnvParentDir /var/trac
PythonOption TracUriRoot /
</Location>
</VirtualHost>
I can only assume that apache appends "/project1" at the end of
"/var/trac" to get to the right directory.
That was throwing me and what I didn't understand.
Maybe this example should be added to the WIKI
now on to authorization...
Thanks everyone for the help!
brad
|
_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac