3 editing the configuration file, 4 configuration file auto-update, 4 security – Campbell Scientific CSI Web Server for Linux Installation Guide User Manual

Page 11: Editing the configuration file, Configuration file auto-update, Security

Advertising
background image

CSI Web Server for Linux Installation Guide

interval

This attribute specifies the interval, in milliseconds, at which
the log files will get baled. If this attribute is not specified, it
will default to a value of 86400000 (one day in milliseconds).
The server will not honour any interval that is less than 10
seconds (it will clamp it to this minimum interval). This
parameter will be ignored unless the mode attribute is set to
time.

bale-size

This attribute specifies the maximum size, in bytes, that the
active log file will be allowed to reach before baling occurs.
It will be ignored unless the mode attribute is set to size.

bale-count

Specifies the maximum number of baled files that will be
kept by the web server before the oldest baled file is
overwritten during a baling event.

report-headers Specifies that HTTP headers that are sent or received should

be written in the log files. This can be a useful
troubleshooting tool but can increase the amount of data
logged per web transaction dramatically.

4.3.3 Editing the Configuration File

On those platforms where CSIWebAdmin is available, the configuration file
can be edited using CSIWebAdmin as explained in Section 1, CSI Web Server
Administrator
, in the CSI Web Server manual.

For those platforms that do not include CSIWebAdmin, the config.xml file
must be edited directly using a text editor.

4.3.4 Configuration File Auto-Update

When the web server reads the configuration file, it will also save the date/time
when that file was last changed. It will check the file approximately every
fifteen seconds to see if the file has changed since the last time that it was read.
If its has changed, the server will read the file again and reinitialise itself with
its contents.

4.4 Security

Users and their website access rights are controlled through .csipasswd files.

Each user can be given one of the following access levels (the numbers in
parentheses are used when editing the configuration file manually):

None (0) – No access is allowed. The account is disabled.

Read Only (3) – Allowed to view data. No values can be changed.

Read/Write (2) – Allowed to view data, make changes to writeable values
in a datalogger’s Public or Status table or a virtual data source, and set a
datalogger’s clock.

7

Advertising