Hosting a Web Application on the NI Web Server

To make your application available to other users, host your build output on a web server that is accessible to other users.

Note This topic demonstrates hosting WebVIs as simple static files with limited access control options. Instead it is recommended to leverage the Web Applications service for permissioned access with configurable security settings. See Hosting a WebVI with the Web Applications service.
Before you upload your application or WebVI on NI Web Server, you must complete the following:
  • Remove the URL, username, and password from the panel and the diagram to maximize the security of your web application. Refer to the Hosting Authentication Credentials Securely section of Security in NI Web Technology for more information.

NI SystemLink and G Web Development Software both use NI Web Server. Complete the following steps to host your web application on NI Web Server.

  1. Open your web application project (.gwebproject).
  2. Locate the NI Web Server root directory.
    Open File » Preferences on the Web Server tab of the NI Web Server option note the root directory path.
    Here is an example of a root directory path: C:\Program Files\National Instruments\Shared\Web Server\htdocs\.
  3. Copy your entire web application output directory into the root directory.
    To navigate to your web application output on your machine, open your web application component and on the Document tab click the path shown under Build Information » Output directory.
  4. Open a web browser and navigate to http://localhost/WebApp_Web%20Server/Main.html, localhost is the IP address of the server and Main.html is the file name of the top-level WebVI in your web application.