5.4.10 PythonOption

Syntax: PythonOption key [value]
Context: server config, virtual host, directory, htaccess
Override: not None
Module: mod_python.c

Assigns a key value pair to a table that can be later retrieved by the req.get_options() function. This is useful to pass information between the apache configuration files (httpd.conf, .htaccess, etc) and the Python programs. If the value is omitted or empty (""), then the key is removed from the local configuration.

Reserved PythonOption Keywords

Some PythonOption keywords are used for configuring various aspects of mod_python. Any keyword starting with mod_python.* should be considered as reserved for internal mod_python use.

Users are encouraged to use their own namespace qualifiers when creating add-on modules, and not pollute the global namespace.

The following PythonOption keys are currently used by mod_python.

Key Required Value Notes
mod_python.legacy.importer * Enables the obsolete importer.
mod_python.mutex_directory
mod_python.mutex_locks
mod_python.psp.cache_database_filename
mod_python.session.session_type
mod_python.session.cookie_name
mod_python.session.application_domain
mod_python.session.application_path
mod_python.session.database_directory
mod_python.dbm_session.database_filename
mod_python.dbm_session.database_directory
mod_python.file_session.enable_fast_cleanup
mod_python.file_session.verify_session_timeout
mod_python.file_session.cleanup_grace_period
mod_python.file_session.cleanup_time_limit
mod_python.file_session.database_directory
session Deprecated in 3.3, use mod_python.session.session_type
ApplicationPath Deprecated in 3.3, use mod_python.session.application_path
session_cookie_name Deprecated in 3.3, use mod_python.session.cookie_name
session_directory Deprecated in 3.3, use mod_python.session.database_directory
session_dbm Deprecated in 3.3, use mod_python.dbm_session.database_filename
session_cleanup_time_limit Deprecated in 3.3, use mod_python.file_session.cleanup_time_limit
session_fast_cleanup Deprecated in 3.3, use mod_python.file_session.enable_fast_cleanup
session_grace_period Deprecated in 3.3, use mod_python.file_session.cleanup_grace_period
session_verify_cleanup Deprecated in 3.3, use mod_python.file_session.cleanup_session_timeout
PSPDbmCache Deprecated in 3.3, use mod_python.psp.cache_database_filename