mod_python mime type question

U

Uwe Mayer

Hi,

I have a little mime-type problem running python with apache using
mod_python.
I'm on a Debian unstable system with Apache v1.3.31 and mod_python
v2:2.7.10-3:

I installed mod_python the debian way, checked that
LoadModule python_module /usr/lib/apache/1.3/mod_python.so

is in the modules.conf file, added the "AddHandler python-program .py" line
and set up an example as in the www-documentation.

When browsing to .../myscript.py Mozilla pops up with "Don't know how to
handle text/x-python mime type". Changing this in mime.types to "text/html"
everything works fine.
Also the documentation sets the mime type to text/x-python.

Now, which setting is wrong?

Ciao
Uwe
--
 

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

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top