web2ldap - standalone.pyThe configuration module for stand-alone mode |
|
This module contains configuration options solely needed if running as stand-alone web server.
[access_allowed] [access_log] [base_url] [bind_address] [debug_log] [dir_listing_allowed] [document_root] [error_log] [mime_types] [pid_file] [reverse_lookups] [run_username] [server_admin] [server_signature]Examples:
listen on port 1760 solely on the loopback interface, setbind_address = '127.0.0.1:1760'
bind_address = '0.0.0.0:8080'
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']Example:
server_signature = """%(SERVER_SOFTWARE)s at %(SERVER_NAME)s Port %(SERVER_PORT)s """