There are several issues with your config file:

1. There are directives for CGI and for modpython, which are mutually
exclusive kinds of setup for Trac. Pick one - modpython is probably
the one you want, so get rid of
  SetEnv TRAC_ENV, ScriptAliasMatch ...

2. It seems you've defined an installation for multiple projects, but
you've used the directive for a single project. Check out the role of
TracEnv and TracEnvParentDir on TracModPython web page

I would strongly suggest that you start up with a basic configuration:
a single Trac project served w/ modpython, from a non-root URL. Once
it works as expected, you can start building up a more complex
configuration with multiple projects served from the root URL of your
virtual host

HTH,
Manu


On 7/28/07, Jeff Chastain <[EMAIL PROTECTED]> wrote:
>
> I have Apache 2.2 running on a Windows 2K3 box and I have installed
> Trac which I am looking to host multiple projects from on a single
> domain (projects.domain.net).  I also have Subversion running on this
> same Apache instance on a different domain (svn.domain.net).
>
> The SVN part is working just fine and Trac appears to be working when
> I run it using the tracd server.  However, I am having trouble getting
> it to work through Apache.  I am new to both Trac and Apache, so I
> apologize if this is something obvious, but I have been searching the
> web and tinkering for hours now and have not been able to make this
> work.
>
> I have added the following virtual host definition to my httpd-
> vhosts.conf file:
>
>
> <VirtualHost *:80>
>         ServerName      projects.domain.net
>         DocumentRoot    c:/projects
>
>         SetEnv TRAC_ENV "c:/projects"
>
>         # Route "/" to the Trac cgi processor
>         ScriptAliasMatch ^/(.*) "c:/Program Files/Apache Group/Apache2/
> cgi-bin/trac.cgi/$1"
>
>         <Location />
>                 SetHandler      mod_python
>                 PythonHandler   trac.web.modpython_frontend
>                 PythonOption TracEnv c:/projects
>                 PythonOption TracUriRoot /
>         </Location>
>         <LocationMatch /login>
>                 AuthType Basic
>                 AuthName "Projects Server"
>                 AuthUserFile c:/SVNRepositories/svn.pass
>                 Require valid-user
>         </LocationMatch>
> </VirtualHost>
>
> When I attempt to browse to projects.domain.net/TracProj, I get an
> error stating that directory listing is denied.  I put an htm file in
> the root directory and that was found, so this is sort of working -
> the problem is just with the Trac configuration.
>
> Can anybody see anything that I am obviously doing wrong here?
>
> Thanks in advance.
>
>
> >
>


-- 
Manu

--~--~---------~--~----~------------~-------~--~----~
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