mod_python and file not found

Simo D simone.dalmasso at gmail.com
Mon Nov 10 05:59:13 EST 2008


Hello, I'm trying to configure the apache to handle the python scripts. My
platform is a CentOs server.
I wrote these directives in the conf.d/python.conf:
<Directory /var/www/html/my/dir>
  Options Indexes FollowSymLinks MultiViews
  AllowOverride None
  Order allow,deny
  allow from all
  AddHandler mod_python .py
  PythonHandler mod_python.publisher
  PythonDebug On
</Directory>  

The results are that if the script writes something on the server it works
fine but if the script contains only html like this:
print "Content-type: text/html\n"
print "<html>"
print "<body>"
print "<p>ok</p>"
print "</body>"
print "</html>"

it returns url not found on this server. It seems that I can't send info
back to the browser.

Can you help me?
Thanks a lot.
Simone
-- 
View this message in context: http://www.nabble.com/mod_python-and-file-not-found-tp20417611p20417611.html
Sent from the Python - python-list mailing list archive at Nabble.com.




More information about the Python-list mailing list