################################################################################ # # # This file is pretty much straightforward. read it and you will see. # # # ################################################################################ ####### The HTTP server settings. ####### # Server listen to port... 80 # The server will ignore requests longer then this [Byte] 2048 # how long to wait on an idle thread [mSec] (HTTP1.1 keep-alive) 5000 # how many files to keep in memory 10 ### Threads limits, and overload: ### # how many threads to handle at the same time 20 # how many threads from the same client (IP address) 4 # when too many threads - sleep for [mSec] (useful for DoS attack) 500 ### Scripting Engines: ### # The defualt script engine will be TestEngine # An idle engine can be stored in the memory for... [sec] (0 is forever) 300 ###### Hosts settings. ###### # You always have to set a host named Default-Host C:\DefaultHost # Absolute or relative to .exe index.html # For all folders # Other hosts here - name them as you like. \wwwroot default.html # Here you bind between the hosts and domain names or IP addresses. # '*' can replace entire word (*.my-site.com but not *-site.com) # The server will take the best match. <*.beesnest-server.org> Default-Host Other-Host <*> Other-Host ###### Log file settings. ###### # Log Level - 0 is lower to 5 highest # 0 - No log file. # 1 - General messages only. # 2 - Add requests for pages logging. # 3 - Add some security messages. # 4 - Add some specific threads messages. # 5 - Add debug messages. 5 # Replace log file every: "day", "week" or "month" # (if missing log file is never replaced). week # Format of request log (Template for each entry of level 2). THREADNO) TIME: TAB "URL" CLIENT-IP, HOST METHOD STATUS ERROR BR # The server will replace these words with... # THREADNO - The request thread number. # TIME - The time of the request. # IP - IP address the request came from. # CLIENT - The client user-agent. # METHOD - The request method. # URL - The requested URL. # FULL - Requested URL and all get variables. # HOST - The host this request was to (server host not alias). # STATUS - Returned status code. # ERROR - exception description if thrown. # BR - Will insert new line in log file. # TAB - Will insert tab in log file. # All the rest of charecters will stay as they in the template. ####### Define here the type of files the server will return. ###### # Every file extention you want the server to return should have an entry here # in lower-case letters. # Client-Type is the client type header filed the server will send to the # client. The server use this filed also for inner purpose. # directives will be execute just in text/html client-type, # and If-Modified/If-Not-Modified will be consider just on none text/html types. # Allow-Host - The host that allow returning this file type. You can list the # allowed hosts, or write "all". "inc" will allow to insert this type as include # but not to return it by itself (for all hosts). # D-HTML - Should be "yes" if need to execute scripts on this file type. # Do-Not-Cache - "yes" will prevent the server (not the client) from caching # this file type. text/html all # To save server resources, just *.bns files will be executed. text/html all yes # This is an entire file that will go to a script engine. text/html Default-Host yes BnPython text/css Default-Host text/plain Default-Host, Other-Host text/plain inc image/gif all image/jpeg all ico/* Default-Host application/javascript all