[mod_python] Scripts in separate directory

Diener, Edward Edward.Diener at loyaltyworks.com
Fri May 7 10:23:09 EST 2004


Using mod_python and publisher, if I place my python scripts in the same
directory as my HTML files, everything works fine. If I place my scripts
in a separate script directory to which I add an Apache ScriptAlias,
mod_python does not handle the request and Apache gives me an error:
 
[Fri May 07 10:05:32 2004] [error] [client 127.0.0.1] C:/Program
Files/Apache Group/Apache2/python-bin/regreport.py is not executable;
ensure interpreted scripts have "#!" first line, referer.
 
In other words, despite the fact that I do have:
 
AddHandler mod_python .py .psp
PythonHandler mod_python.publisher | .py
PythonHandler mod_python.psp | .psp
PythonDebug On
 
for the directory of my HTML file, mod_python never handles the request
if my script is in another directory.
 
Is this a bug or am I missing something in order to get mod_python to
work properly with scripts in a separate directory ?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.modpython.org/pipermail/mod_python/attachments/20040507/db636a26/attachment.html


More information about the Mod_python mailing list