alrighty, i've confirmed that mod_python functions with a really
simple test program here http://trac.htglimited.com/test.py; however,
i still can't seem to get anything other than a 404 whenever i do a
<location /trac>
from httpd.conf:
... ...
#LoadModule scoreboard_send_module libexec/mod_scoreboard_send.so
#LoadModule extract_forwarded_module libexec/mod_extract_forwarded.so
#LoadModule gzip_module libexec/mod_gzip.so
LoadModule perl_module libexec/libperl.so
LoadModule python_module libexec/mod_python.so
...
...
...
#AddModule mod_scoreboard_send.c
#AddModule mod_extract_forwarded.c
#AddModule mod_gzip.c
AddModule mod_perl.c
AddModule mod_python.c
from the virtual hosts site.conf:
<VirtualHost ...>
<IfModule mod_php4.c>
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
</IfModule>
<IfModule mod_php5.c>
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
</IfModule>
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
AddHandler mod_python .py
ScriptAlias /cgi-bin
"/hsphere/local/home/htglimit/trac.htglimited.com/cgi-bin"
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\""
TransferLog
/hsphere/local/home/htglimit/logs/trac.htglimited.com/trac.htglimited.com
<DIRECTORY /hsphere/local/home/htglimit/trac.htglimited.com>
AddHandler python-program .py
PythonHandler test
OPTIONS Indexes ExecCGI FollowSymLinks
AllowOverride All
</DIRECTORY>
<Location /trac>
SetHandler mod_python
PythonHandler trac.web.modpython_frontend
PythonOption TracEnv /opt/trac/projects/test
PythonOption TracUriRoot /trac
</Location>
IndexOptions FancyIndexing
</VirtualHost>
the test.py program that looks like this:
from mod_python import apache
def handler(req):
req.content_type = "text/plain"
req.send_http_header()
req.write("Hello World!")
return apache.OK
any thoughts on how I can make this work?
wyatt
Quoting Noah Kantrowitz <[EMAIL PROTECTED]>:
>
> On Nov 4, 2006, at 9:57 PM, [EMAIL PROTECTED] wrote:
>> Has anyone had any success at all using mod_python and trac? I've
>> been
>> hitting this for about 10 days have had no success in any way shape or
>> form.
>
> I run quite a few mod_python-based Tracs. It may be easier if you ask
> on #trac (on irc.freenode.net), but at the very least post your
> Apache config somewhere.
>
> --Noah
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---