web2ldap - standalone.py

The configuration module for stand-alone mode
General
<Download> <News> <Demo> <Related>
Support
<Commercial> <Feedback> <FAQ>
Documentation
<Features> <Installing> <Configuration> <Compability> <Security> <Changes> <Files> <Roadmap>

This module contains configuration options solely needed if running as stand-alone web server.

[access_allowed] [access_log] [debug_log] [dir_listing_allowed] [document_root] [error_log] [mime_types] [pid_file] [run_username] [server_admin] [server_signature]

Misc. options

run_username
User account name to setuid after being started as root. This options might be overriden by command-line option -u.
server_admin
Contact mail address of the server admin when running stand-alone.
server_signature
This is the server's signature which can be appended to every HTML page. You can use a dictionary string-formatting of all environment vars.

Example:

server_signature = """
%(SERVER_SOFTWARE)s at %(SERVER_NAME)s Port %(SERVER_PORT)s
"""
access_allowed
List of accepted address/net mask strings of accepted client addresses.

Example for accepting all client IP addresses:

access_allowed = ['0.0.0.0/0.0.0.0']

Example for accepting only clients from loopback network:

access_allowed = ['127.0.0.1/255.0.0.0']

Path names

Path names of needed files and directories.
pid_file
Path name for file the PID of the main thread is written to.
access_log
Path name of access log file.
error_log
Path name of error log file.
debug_log
Path name of debug log file. stdout and stderr are redirected to this file for redirecting debug messages of underlying modules.
document_root
Where the static documents reside.
mime_types
Path name of IANA mime.types file.
dir_listing_allowed
Allow listing of directories. Set to 0 to disable, set 1 to enable the directory listings.

Page last modified: Monday, 16-Sep-2002 13:31:14 CEST, sponsored by stroeder.com