mod_python and file not found

S

Simo D

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,968
Messages
2,570,153
Members
46,699
Latest member
AnneRosen

Latest Threads

Top