Mailing List Archive

mod_python not working
I have my mod_python section setup as follows:

<LocationMatch /trac>
SetHandler mod_python
PythonHandler trac.ModPythonHandler
PythonOption TracUriRoot /trac
PythonOption TracEnvParentDir "/usr/local/www/data/trac"

SSLRequireSSL

AuthType Basic
AuthName "Trac"
AuthUserFile /usr/svn/svn-users-file
Require valid-user
</LocationMatch>

but whenever I goto http://127.0.0.1/trac/testproject I just get an index
listing the files in the trac directory, and my one project:

index.html
trac.cgi
testproject

I get this no matter what I do. What am I missing here? Did I forget to set
something up?

Thanks,
Steve
mod_python not working [ In reply to ]
> I have my mod_python section setup as follows:
>
> <LocationMatch /trac>
> SetHandler mod_python
> PythonHandler trac.ModPythonHandler
> PythonOption TracUriRoot /trac
> PythonOption TracEnvParentDir "/usr/local/www/data/trac"
>
> SSLRequireSSL
>
> AuthType Basic
> AuthName "Trac"
> AuthUserFile /usr/svn/svn-users-file
> Require valid-user
> </LocationMatch>
>
> but whenever I goto http://127.0.0.1/trac/testproject I just get an index
> listing the files in the trac directory, and my one project:
>
> index.html
> trac.cgi
> testproject
>
> I get this no matter what I do. What am I missing here? Did I
> forget to set
> something up?

Does anyone out there have any input on this? Is anyone even using
mod_python? I don't really see any mention of it in the archives.

Steve
mod_python not working [ In reply to ]
> > I have my mod_python section setup as follows:
> >
> > <LocationMatch /trac>
> > SetHandler mod_python
> > PythonHandler trac.ModPythonHandler
> > PythonOption TracUriRoot /trac
> > PythonOption TracEnvParentDir "/usr/local/www/data/trac"
> >
> > SSLRequireSSL
> >
> > AuthType Basic
> > AuthName "Trac"
> > AuthUserFile /usr/svn/svn-users-file
> > Require valid-user
> > </LocationMatch>
> >
> > but whenever I goto http://127.0.0.1/trac/testproject I just
> get an index
> > listing the files in the trac directory, and my one project:
> >
> > index.html
> > trac.cgi
> > testproject
> >
> > I get this no matter what I do. What am I missing here? Did I
> > forget to set
> > something up?

After some more poking, I got to a point where I if I go to the URL I posted
above, I get what seems to be a project overview page. The only problem is
that there is no formatting. Further inspection shows that I cannot access
the various files that the page is looking for "/trac/trac.js" for example.
If I try to access that JS file, I just get the project listing I mentioned
in the my first message. Is mod_python somehow usurping any and all requests
inside of my /trac directory?

Steve
mod_python not working [ In reply to ]
Steve <trac@digitalnothing.com> [2004-07-27/16:22]:
> [...] I cannot access the various files that the page is looking for
> "/trac/trac.js" for example. If I try to access that JS file, I just
> get the project listing I mentioned in the my first message. [...]

Check htdocs_location in trac.ini, and make sure it points to the URI
where your static trac htdocs are accessible. The default installation
uses /trac for the static htdocs, but you've put your dynamic trac
content at /trac, so you have to move the static htdocs to some other
URI (/share, /htdocs, or whatever).

HTH,
Dan


--
. o . Daniel Roethlisberger <daniel@roe.ch>
. . o 144D 6A5E 0C88 E5D7 0775 FCFD 3974 0E98 804A 06B1
o o o Life would be much easier if I had the source code
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : /archive/trac/attachments/20040728/2316fa58/attachment.pgp
mod_python not working [ In reply to ]
> Steve <trac@digitalnothing.com> [2004-07-27/16:22]:
> > [...] I cannot access the various files that the page is looking for
> > "/trac/trac.js" for example. If I try to access that JS file, I just
> > get the project listing I mentioned in the my first message. [...]
>
> Check htdocs_location in trac.ini, and make sure it points to the URI
> where your static trac htdocs are accessible. The default installation
> uses /trac for the static htdocs, but you've put your dynamic trac
> content at /trac, so you have to move the static htdocs to some other
> URI (/share, /htdocs, or whatever).

Well I changed the alias to /trachtdocs/ and updated the trac.ini file for
the project in question. Going to http://localhost/trachtdocs/ yields the
index of files, and I am able to view them and such, so that is now working.
I did not touch any other part of my configuration, and now I am back to
just getting the listing that I described before. Why all of a sudden the
behavior has changed, even though I didn't touch any part of the
configuration is incredibly frustrating. Any thoughts?

Steve
mod_python not working [ In reply to ]
Steve wrote:
>>Steve <trac@digitalnothing.com> [2004-07-27/16:22]:
>>
>>>[...] I cannot access the various files that the page is looking for
>>>"/trac/trac.js" for example. If I try to access that JS file, I just
>>>get the project listing I mentioned in the my first message. [...]
>>
>>Check htdocs_location in trac.ini, and make sure it points to the URI
>>where your static trac htdocs are accessible. The default installation
>>uses /trac for the static htdocs, but you've put your dynamic trac
>>content at /trac, so you have to move the static htdocs to some other
>>URI (/share, /htdocs, or whatever).
>
>
> Well I changed the alias to /trachtdocs/ and updated the trac.ini file for
> the project in question. Going to http://localhost/trachtdocs/ yields the
> index of files, and I am able to view them and such, so that is now working.
> I did not touch any other part of my configuration, and now I am back to
> just getting the listing that I described before. Why all of a sudden the
> behavior has changed, even though I didn't touch any part of the
> configuration is incredibly frustrating. Any thoughts?

What about your Apache-Error-Log?

Paul