Home |
Configuration Function http_find_string_value Function http_add_get_functions Function http_add_post_functions Function http_set_browser_list Function http_set_put_function |
ConfigurationThe Web Server relies on the following global variables for configuration data. You can modify these values before xn_rtip_init is called. CFG_WEB_ROOT_DIRRoot directory of the Web site to be published by the Web Server with a trailing backslash. The server prepends this string to all file names it receives for opening. Default is "C:\". CFG_WEB_KEEPALIVE_TMOMaximum time in seconds in a persistent connection before closing the socket. If this value is too large, displays from POST commands will be slow since many browsers wait for FIN before displaying the data. Default is 1 second. CFG_WEB_KEEPALIVE_MAXMaximum number of requests which will be processed in a persistent connection before closing the socket. Default is 5. CFG_WEB_LISTEN_BACKLOGBacklog values in the server's listen call. Default is 10. CFG_WEB_TIMEOUTNumber of seconds to wait for a response from the Web browser, i.e. to wait to send data or to wait for a command after accepting the connection from the browser. Default is 10 seconds. CFG_MOD_DATEIf set to 1, the web server will only send files to a browser which have been modified over the version the browser has in its cache. Otherwise, HTTP code 304 is returned. CFG_MOD_DATE has no effect with RTTarget-32's RAM file system which does not maintain file modification dates and times. By default, this option is 0 (off). CFG_DENY_PUTIf set to 1, the web server will deny all HTTP PUT requests. By default, this option is 0 and such requests are accepted and processed. CFG_DENY_DELETEIf set to 1, the web server will deny all HTTP DELETE requests. By default, this option is 0 and such requests are accepted and processed. CFG_WWW_PORTThis parameters specifies the TCP port number on which the Web Server listens. The default is 80. CFG_HTTPS_PORTThis parameters specifies the TCP port number on which the Web Server listens for secure connections. The default is 443.
|