Simon Eilting schrieb: > Hi. Hallo,
> ---snip--- > <Directory /var/www/> > Options Indexes FollowSymLinks -MultiViews > AllowOverride None > Order allow,deny > allow from all > AddHandler mod_python .py > PythonHandler mptest > PythonDebug On > </Directory> > ---snip--- Bist du sicher, daß mod_python beim Apache start geladen wird? Bzw. hast du nach dem install von mod_python den Apache mal neu gestartet? > Die mptest.py sieht folgendermaßen aus: > > ---snip--- > from mod_python import apache > > def handler(req): > req.write("Hello World!") > return apache.OK > ---snip--- Das ist die Standarddatei aus der mod_python installation. Die muß, so wie sie da steht funktionieren, und im Browser muß dann "Hello, world!" stehen. > Wenn ich das "Hello World!" ändere in "Content-Type: text/html\n\nHello > World!", passiert dasselbe... Das klingt eben nach nicht geladenem Modul... > Simon Eilting MfG Jan -- OpenPGP Public-Key Fingerprint: 0E9B 4052 C661 5018 93C3 4E46 651A 7A28 4028 FF7A
pgpX5b7ry7EhU.pgp
Description: PGP signature