but there is some problem in development environment built.
"Apache/2.2.4 (Win32) DAV/2 mod_python/3.3.1 Python/2.5.2 mod_ssl/2.2.4 OpenSSL/0.9.8e mod_autoindex_color PHP/5.2.2 Server at 127.0.0.1"
This is my development environment.
but when i open the .py files , the file's source code will appear in the browser.
the python.py file's source code:
- Code: Select all
from mod_python import apache
def handler(req):
req.content_type = "text/html"
req.write("<html><head></head><body>")
req.write("<h1>Python is running with mod_python...</h1>")
return apache.OK
Some configuration information:
#httpd.conf
LoadModule python_module modules/mod_python.so
Include conf/extra/httpd-python.conf
#httpd-python.conf
LoadModule python_module modules/mod_python.so
<Directory "/htdocs/python">
AddHandler mod_python .py
PythonHandler python
PythonDebug On
</Directory>
Thank you for your help , and sorry for my poor english.