Server Configuration Keywords
The PL/BWeb Server program information file (PLBWEBSRV.INI) file contains information that allows the user to tailor the runtime.
The .ini file name processing occurs as follows:
The runtime qualifies and uses an INI file when the file contains any section header. A section header is an INI file record that starts with '[' and is terminated with a ']'.
The runtime looks for and uses an INI filename found in three possible directories. The runtime always processes the INI files in the same order giving the user the ability to override globally defined parameters. The file name searching is as follows:
First, the runtime looks for an INI filename in the current working directory. This allows someone doing very specific and local program execution using keyword controls that override default keyword controls specified in (b) or (c) below.
Second, the runtime looks for an INI filename in the current user Windows directory. If the INI filename is found, it becomes the local keyword controls for the runtime. This allows someone to define workstation INI file controls. The local INI file controls can override (c) below.
Third, the runtime looks for an INI filename in the directory where PLBWEBSRV.EXE is found. If the INI filename is found, it becomes the global (default) keyword controls for the runtime.
If the PLB Web Server is started without specifying an alternate INI file name on the command line, the server looks for the default INI file named 'PLBWEBSRV.INI' in the three possible areas. Any PLBWEBSRV.INI files found in the three directories are then used to locate requested INI file keywords in the order as described in (B).
If the PL/B Web server is started by a command line that specifies an alternate INI file name that does not include a path, the server looks for the alternate INI file name in the three possible directories defined in (B) above. The server only processes the user named INI file from the three directories defined in (b.) above. In this case, the 'PLBWEBSRV.INI' is NOT used.
If the PL/B Web server is started by a command line that specifies an alternate INI file name that includes path, the server looks for and uses the single specified INI file if found. This case disables the server from processing multiple INI files as described in (B) above.
Keywords with an associated value are placed in sections. The sections are indicated by surrounding the section name with square brackets. The [version] and [environment] sections are required and at a minimum should contain the following keywords and values:
[version]
plbwebsrv=10.7
[environment]
PLB_PATH=regular pathing information
PLBWEB_PORTNUM=2100
PLBWEB_LOGNAME=PLBWEBSRV.log
PLBWEB_HOSTNAME=aaa.bbb.ccc.ddd
PLBWEB_LOCALIP=aaa.bbb.ccc.ddd
PLBWEB_ADDRESS=aaa.bbb.ccc.ddd:8081
PLBWEB_ROOT=c:\Sunbelt\Plbwebsrv.97\http_root
PLBWEB_MENU=master.plc
PLBWEB_ERROR=master.plc
Within the [environment] section, the user may specify additional runtime keywords as documented in the PLBWIN Runtime Keywords topic of the PL/B Runtime Reference. Additional keywords of interest to PL/B Web Server users are the following:
|
Keyword |
Specifies the ... |
|
PLB_<keyword> |
A PL/B runtime keyword. See the Sunbelt PL/B Runtime Reference for a full list of keywords. |
|
optional the maximum number of concurrent SSL accept logons. | |
|
the seconds to wait when an SSL logon accept connection is being made. | |
|
optionally restricts information returned to the browser. | |
|
optionally restricts information returned to the browser using an ipv6 address. | |
|
PWS server behavior when processing unexpected focus events for the Android NEXT button. | |
|
server does not put the server name in the HTTP header for responses. | |
|
Sunbelt Web applications should download and apply the current CSS styles from a PL/B Web Server to a PL/B Web App client. | |
|
optional PICTURE or ICON when running under a Cordova application client. | |
|
optional PICTURE or ICON when running under a Cordova application client. | |
|
disable support of App clients. | |
|
optional PRINT and SPLOPEN control directives. | |
|
optional authorization number. | |
|
optional temporary authorization number. | |
|
file used to pre-load the blacklist IP addresses used for non-SSL IP filtering. | |
|
file used to output the current non-SSL blacklist IP addresses. | |
|
error details to be incuded in a HTTP 500 error response | |
|
PL/B Web Server ability to capture CGI (Common Gateway Interface) data. | |
|
PLBWEB_CGI_KEEP |
temporary cgi work files should not be automatically deleted. |
|
elapse time the REST PWS child thread waits for a response. | |
|
default PLB program name to be executed when a client connects. | |
|
optional default current working directory. | |
|
optional error behavior value. | |
|
optional error locking timeout value. | |
|
optionally includes additional information in response headers.. | |
|
optional image extraction behavior. | |
|
required host name or IP address. | |
|
required host name or IP address. | |
|
Enables the collection of extended debug data. | |
|
optional idle termination Web page invoked at the next child UI interaction after the idle child task is terminated. | |
|
optional timeout before an idle task is terminated. | |
|
optional timeout before a task is determined to be idle. | |
|
directory for extracted images. | |
|
control error dialog information. | |
|
control error dialog information. | |
|
IP filter for client connections. | |
|
optional seconds that an OS socket close operation lingers if unsent data is present. | |
|
optional local IP address. | |
|
optional server log file name. | |
|
optional server logging values. | |
|
optional key used to define the maximum log file record length. | |
|
optional key used to enable variable length log records. | |
|
optional maximum log file size. | |
|
optional keyword that limits the client virtual memory size. | |
|
optional keyword that limits the number of simultaneous PL/B Web Client users. | |
|
optional program termination behavior value. | |
|
Defines how long to wait for a program to reconnect. | |
|
optional message buffering behavior. | |
|
optional message buffer size. | |
|
the PWS server 'Deflate Compression' support. | |
|
optional checkpoint monitoring function. | |
|
use original behavior for EDITTEXT ( numeric type) and EDITNUMBER objects. | |
|
required IP port number to use. | |
|
default PLB program name to be executed when a PL/B Web client connects. | |
|
optional root directory for non-SSL urls. | |
|
optional key used to encrypt messages to and from all PL/B Web Client workstations. | |
|
the {OsPath} directory where the PL/B Web Server control sub-directories must exist. | |
|
the directory to which Save As client operations are performed. | |
|
optional maximum time that a suspended child can exist before being terminated. | |
|
optional number of seconds to wait during a server shutdown before clients are forced off. | |
|
assignment of virtual memory. | |
|
enable 99a jquery-ui support. | |
|
enables the BootStrap 5 framework. | |
| |
|
define the user CSS directory. | |
|
define the file upload directory. | |
|
controls the type of datalist created by the browser. | |
|
controls the sorting a datalist. | |
|
optional main window of the client is to be hidden. |
Administrative Access Keywords
|
Keyword |
Specifies the ... |
|
optional data items kept by the administrative task. | |
|
optional data items kept by the administrative task. | |
|
optional administrative task host name. | |
|
optional administrative task host name in ipv6 format. | |
|
optional administrative task IP filtering file name. | |
|
optional administrative task logon key file name. | |
|
ability of an ADMLOGON instruction to logon to the administrative server task using the 'local' I/P address. | |
|
optional administrative task logging of a child task. | |
|
optional administrative task logging level of a child task. | |
|
optional administrative task logon encryption key. | |
|
Enable or disable administrative emails | |
|
Defines the blind carbon copy recipients of the administrative email. | |
|
Defines the carbon copy recipients of the administrative email. | |
|
Provides delivery confirmation of the administrative emails. | |
|
server send an email when the Web Server encounters a FCGI error that causes either a PHP or REST task to be locked using a specified port number. | |
|
Defines the administrative email sender | |
|
Triggers an email when the maximum users has been reached. | |
|
Reports receipt of the administrative emails. | |
|
Defines the administrative email outgoing mail server | |
|
Configures the user password for the email server | |
|
Defines the port for the email server. | |
|
Defines the administrative email Reply To address | |
|
Defines the administrative email return address. | |
|
Sends an email when theWeb Server has been stopped. | |
|
Enables SSL for the email server. | |
|
Enables TLS for the email server. | |
|
Sends an email when theWeb Server has been started. | |
|
Defines the subject of the administrative emails. | |
|
Defines a timeout value when communicating with the email server. | |
|
Configures the administrative email receipients | |
|
Provides debug tracing via email. | |
|
Provides debug tracing via email. | |
|
Configure the user login for the email server. | |
|
ability to log in to the administrative services of the server via the PLBWEB_PORTNUM port. | |
|
optional administrative task port number. | |
|
optional administrative task public encryption key. | |
|
optional display in the Windows taskbar icon area. | |
|
optional descriptive server name string. | |
|
optional administrative task control value. |
REST Access Keywords
|
Keyword |
Specifies the ... |
|
the basic authentication identifying the web client user. | |
|
the base URL used by a web application to access the PL/B REST web service. | |
|
the command line to be formatted and executed by the PWS when a PL/B REST service is found in a client browser URL. | |
|
the maximum number of active REST tasks. | |
|
the starting port number for the REST FastCGI interface. | |
|
the type of protocol available when accessing the PWS REST service. | |
|
the REST parameter passing. | |
|
the REST task interface. |
SSL Access Keywords
|
Keyword |
Specifies the ... |
|
maximum number of concurrent SSL accept logons. | |
|
elapsed time out given in seconds to wait when an SSL logon accept connection is being made. | |
|
optional Secure Sockets Layer (SSL) support. | |
|
file used to pre-load the blacklist IP addresses used for SSL IP filtering. | |
|
file used to output the current SSL blacklist IP addresses. | |
|
optional SSL certificate specification. | |
|
optional SSL certificate chaining. | |
|
optional default PLB program name to be executed when a client connects using SSL. | |
|
control error dialog information. | |
|
optional SSL certificate key specification. | |
|
maximum number of SSL IP logon accept timeout events that can occur before a specific IP address is added to the SSL blacklist. | |
|
control error dialog information. | |
|
PLBWEB_SSL_PROGRAM_ROOT |
root directory for SSL urls. |
|
minimum SSL protocol version. | |
|
optional {OsPath} directory where the PL/B Web Server control SSL sub-directories must exist. | |
|
use a self-signed SSL certificate. | |
|
specify the SSL cipher. | |
|
specify a special shutodwn behavior. | |
|
specify the version of SSL libraries to use. | |
|
loads SSL 1.1 libraries. |
PHP Access Keywords
|
Keyword |
Specifies the ... |
|
path to the PHP software. | |
|
the maximum number of active PHP tasks. | |
|
the port number for the PHP FastCGI interface. | |
|
the type of protocol available | |
|
enable use of Fast CGI. |
FTP Keywords
|
Keyword |
Specifies the ... |
|
listening port for FTP clients connecting to the server. | |
|
requirment for the anonymous user's password. | |
|
number of mnutes a session can remain inactive. | |
|
the number of seconds that an OS socket close operation lingers if unsent data is present. | |
|
ftp logging values. | |
|
base port number for passive connections. | |
|
directory that is the default virtual root directory used for FTP operations. | |
|
maximum number of FTP child threads. | |
|
AUTH command is required for SSL. | |
|
required use of an SSL connection. | |
|
use of OpenSSL 1.1.x is required | |
|
FTP SSL blacklist file. | |
|
name of the SSL certificate file. | |
|
use of a certificate chain file. | |
|
file name containing SSL certificate key(s) | |
|
SSL protocol version. | |
|
use of self-signed certificates. | |
|
SSL cipher for SSL FTP connections. | |
|
SSL versionr for SSL FTP connections. | |
|
user name, password, permissions, and optional path for accessing the PWS FTP Server. |
To allow simultaneous support of normal Windows and CE Windows clients, the PLBWEBSRV.INI may have specialized sections named to support CE and non-CE clients. The PLBWEBSRV.INI sections can be named as follows:
[environment]
This section contains the basic startup keywords required to specify the TCP/IP communication parameters to access the PL/B program server. This section also includes the required runtime keywords required (PLB_TERM, PLB_PATH, etc) to execute a program for a normal Windows PL/B Web Client.
[mapdrives]
This section contains the mapped drive assignments. The PLBWEBSRV runtime uses the mapped drive settings to redirect either network drives or local DOS drives.
Format:
{drv}:=[~]{redir}[,{username},{password}]
Where:
Notes:
1. When the {redir} string starts with the '\' character, it identifies a network UNC path name. In this case, the {drv} is redirected as a network drive. If the {drv} already exists, the mapped drive redirection does not occur and no changes are made.
2. When the {redir} string is a DOS drive path string, the mapped drive redirection is executed as a local DOS drive device. If the {drv} already exists, the mapped drive redirection does not occur and no changes are made. The local DOS drive substitution is not supported for the Windows 95, 98, and ME OS versions. The mapped drives are ignored for these Windows versions.
3. The mapped drives redirection support can declare drive specifications when an NT service is started. This is the original intended use for mapped drives.
4. By default, the runtime removes the {drv} mapped drive when the runtime process is terminated. If the '~' character is specified as the leading character before the {redir} string, the runtime does not remove the {drv} when the runtime process is terminated.
5. The {username} and {password} exist as raw text strings. Care should be taken to protect the ini file from unauthorized access since the user name and password are stored in plane text. Limited access to anWeb Server or Data Manager should be considered when the {username} and {password} parameters are used.
6. When the Web Server starts and terminates, the mapped drives are logged.
Example:
[mapdrives]
f:=c:\temp
g:=\\server\sharename\directory
h:=~c:\sunbelt
i:=~\\server\sharename\directory
j:=\\server\sharename\directory;myname;mypassword
See Also: Clients
![]() |