User Manual

Web Server
6 WebServer
TheWebServeraddsthepossibilitytouseaserver-sideApplicationProgramming
Interface (API) to interact with a running project. The API operates over the
HyperText Transfer Protocol (HTTP) and can be accessed from any compatible
device. In addition, the web server can host web pages and related media to be
consumed by web browsers.
The bundled Javascript Software Development Kit (SDK) makes it easy to build
interactive web pages that utilize the API.
Login settings for the web ser ver are available from Server group on the System
ribbon tab.
6.1 WebServerCongura tion
The web server can be configured for hosting web pages. It also provides a login
form for authentication.
6.1.1 WebSiteConguration
For the web server to be able to host web pages, the content of the web site must
be transferred using FTP to a folder named WebSite residing in the FTP root
directory.
The FTP server must be enabled and the web content can only be transferred after
the application has been deployed and started on the panel.
6.1.2 LoginForm
The web server provides a default login form that is used for clients to
authenticate. Itisalsopossibletooverridethedefaultandprovideacustomweb
page that matches your overall design.
To override the login form, create an HTML file called “login.html” and place it in
a folder named “Website” in the root of the FTP root directory.
Thisfilewillbeusedinsteadofthedefaultwhenclientsaccesstheaddress“/login”.
The Javascript SDK provides tools for creating the form using a few conventions.
Note that this only applies if you have authentication enabled in the web server
settings.
AuthenticationScript
Reference the authentication script
UsernameandPasswordField
Mark the username and password field with the predefined id’s login.username
and login.password”:
BeijerElectronics, MAEN831P
141