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.

Matt
_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac

Reply via email to