2004-07-17 03:11:36 +02:00
|
|
|
===========================================================================
|
2014-02-17 18:20:28 +01:00
|
|
|
$NetBSD: MESSAGE,v 1.2 2014/02/17 17:20:28 adam Exp $
|
|
|
|
|
|
|
|
In order to use this module in your Apache installation, you need to
|
|
|
|
add the following to your httpd.conf file:
|
|
|
|
|
|
|
|
LoadModule python_module lib/httpd/mod_python.so
|
2004-07-17 03:11:36 +02:00
|
|
|
|
|
|
|
Also remember to add to your Apache configuration in the appropriate context:
|
|
|
|
|
2014-02-17 18:20:28 +01:00
|
|
|
PythonPath "['/path/to/foo', '/path/to/bar']"
|
|
|
|
AddHandler python-program .py
|
|
|
|
PythonHandler foobar
|
|
|
|
PythonDebug On
|
2004-07-17 03:11:36 +02:00
|
|
|
|
|
|
|
For more information, see http://www.modpython.org/.
|
|
|
|
|
|
|
|
And, if you built apache without thread support, you may need to add the
|
2014-02-17 18:20:28 +01:00
|
|
|
following lines to ${PREFIX}/sbin/envvars:
|
2004-07-17 03:11:36 +02:00
|
|
|
|
2014-02-17 18:20:28 +01:00
|
|
|
LD_PRELOAD=/usr/lib/libc_r.so # or libpthread.so
|
|
|
|
export LD_PRELOAD
|
2004-07-17 03:11:36 +02:00
|
|
|
|
|
|
|
===========================================================================
|