diff options
author | Bryan Østergaard <kloeri@gentoo.org> | 2005-02-27 02:33:23 +0000 |
---|---|---|
committer | Bryan Østergaard <kloeri@gentoo.org> | 2005-02-27 02:33:23 +0000 |
commit | b285c4e3465ef4b289f827e806737f0f1e527e8a (patch) | |
tree | e0fb0c0882db938954b353e642834af1523c5992 /dev-python/mod_python/files | |
parent | Added pygtk. (diff) | |
download | historical-b285c4e3465ef4b289f827e806737f0f1e527e8a.tar.gz historical-b285c4e3465ef4b289f827e806737f0f1e527e8a.tar.bz2 historical-b285c4e3465ef4b289f827e806737f0f1e527e8a.zip |
Fix broken configuration.
Package-Manager: portage-2.0.51-r15
Diffstat (limited to 'dev-python/mod_python/files')
-rw-r--r-- | dev-python/mod_python/files/16_mod_python-r1.conf | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/dev-python/mod_python/files/16_mod_python-r1.conf b/dev-python/mod_python/files/16_mod_python-r1.conf new file mode 100644 index 000000000000..c2df73cf8ff2 --- /dev/null +++ b/dev-python/mod_python/files/16_mod_python-r1.conf @@ -0,0 +1,40 @@ +<IfDefine PYTHON> + <IfModule !mod_python.c> + LoadModule python_module modules/mod_python.so + </IfModule> +</IfDefine> + +<IfModule mod_python.c> +# +# 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> +# <IfModule mod_mime.c> +# AddHandler python-program .spam +# </IfModule> +# 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> + +</IfModule> |