On Feb 1, 2006, at 3:41 PM, Manuzhai wrote:

I don't think this error has anything to do with the use of
PostgreSQL-database or the Trac user store. It seems more like a
problem with mod_python, or something not sending out the right
headers. Can you show us the relevant sections of your httpd.conf
(anything containing Python* directives, or something to do with
Trac)?


The trac specific part is as described on the ModPython setup wiki page under the Multiple Projects section:

<Location /projects>
  SetHandler mod_python
  PythonHandler trac.web.modpython_frontend
  PythonOption TracEnvParentDir /data/www/html/trac
  PythonOption TracUriRoot /projects
</Location>

In httpd.conf, the python.conf is loaded as part of everything in the conf.d directory. python.conf is as follows:

#
# Mod_python is a module that embeds the Python language interpreter
# within the server, allowing Apache handlers to be written in Python.
#

LoadModule python_module modules/mod_python.so

# Override type-map handler for /var/www/manual
<Directory "/var/www/manual/mod/mod_python">
        <Files *.html>
                SetHandler default-handler
        </Files>
</Directory>

# This will cause files beneath /var/www/html with the extension .spam
# to be handled by the Python script /var/www/html/eggs.py
#
#<Directory /var/www/html>
#    AddHandler python-program .spam
#    PythonHandler eggs
#</Directory>

# This will cause all requests to the /python heirachy of your
# webserver to be handled by the python script /path/to/myhandler.py
#
#<Location /python>
#    SetHandler python-program
#    PythonPath "sys.path + ['/path/to']"
#    PythonHandler myhandler
#</Location>

# This will cause all requests to the /python heirachy of your
# webserver to be handled by mod_python's Publisher handler
# (see http://localhost/manual/mod/mod_python/hand-pub.html)
#
#<Location /python>
#    SetHandler python-program
#    PythonHandler mod_python.publisher
#</Location>

# This will cause the output of all requests to files beneath
# /var/www/html with the extension .flt to be filtered through
# the Python script /var/www/html/filter.py
#
#<Directory /var/www/html>
#    PythonOutputFilter filter MYFILTER
#    AddOutputFilter MYFILTER .flt
#</Directory>

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

Reply via email to