Installation guide
5: Interfacing with the SRA
DC 900-1325I 77
5.4 Web Browser Interface
The Freeway can easily be configured as a web server to allow a standard web browser
on any client system to access Freeway menu functions. If you are proficient in HTML
and PHP, you can design a similar web browser interface to access your SRA. You may
use a web browser interface to do such functions as:
• Modify your SRA configuration files
• Access a structure within your SRA using a memory-mapped file
• Send data to your SRA using TCP/IP sockets
The Freeway can support both normal (http) and secure (https) web access, though to
protect the data which flows between the Freeway and web browsers, Protogate recom-
mends that you only use secure web access. You can do that simply by putting all of your
web pages underneath the
/usr/local/www/dataS/ subdirectory. Also, for added security,
be sure to use the
check_auth_user() function in all of your web pages. This function is
located in the
required_fns.php file.
You can start a browser interface for your SRA by creating a subdirectory within the
existing secure web server area as in the following example:
cd /usr/local/www/dataS
mount -u -o rw /usr
mkdir mysra
cd mysra
pwd
/usr/local/www/dataS/mysra
[Place your html and php files in this directory.]
chown -R www:www /usr/local/www/dataS/mysra
chmod -R 555 /usr/local/www/dataS/mysra
mount -u -o ro /usr
You may use the existing html files in /usr/local/www/dataS as examples. Once you have
created your web pages, a client system can access them with the following URL:
https://<server IP address>/mysra/