[www-apache/mod_python] fork to fix bug 4828
Gentoo bug 531154
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
<IfDefine PYTHON>
|
||||
LoadModule python_module modules/mod_python.so
|
||||
|
||||
# Mod_python is a module that embeds the Python language interpreter
|
||||
# within the server, allowing Apache handlers to be written in Python.
|
||||
|
||||
# This will cause files beneath /home/httpd/htdocs with the extension .spam
|
||||
# to be handled by the Python script /home/httpd/htdocs/eggs.py
|
||||
#
|
||||
#<Directory /home/httpd/htdocs>
|
||||
# AddHandler python-program .spam
|
||||
# PythonHandler eggs
|
||||
#</Directory>
|
||||
|
||||
# This will cause all requests to the /python heirachy of your
|
||||
# webserver to be handled by the python script /path/to/myhandler.py
|
||||
#
|
||||
#<Location /python>
|
||||
# SetHandler python-program
|
||||
# PythonPath "sys.path + ['/path/to']"
|
||||
# PythonHandler myhandler
|
||||
#</Location>
|
||||
|
||||
# This will cause all requests to the /python heirachy of your
|
||||
# webserver to be handled by mod_python's Publisher handler
|
||||
#
|
||||
#<Location /python>
|
||||
# SetHandler python-program
|
||||
# PythonHandler mod_python.publisher
|
||||
#</Location>
|
||||
</IfDefine>
|
||||
|
||||
# vim: ts=4 filetype=apache
|
||||
Reference in New Issue
Block a user