Table Of Contents

Hosting a Web Application on the NI Web Server

Last Modified: August 11, 2021

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

Before you upload your application or WebVI on NI Web Server, you must complete the following tasks:
  • 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), navigate to SystemDesigner, and open Design view.
  2. Select Web Server on the diagram. In the configuration pane under Item»NI Web Server, you will find the NI Web Server root directory path. The root directory path populates SystemDesigner based on your configuration settings in the NI Web Server Configuration Utility. 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 web server directory. To navigate to your web application output on your machine, click Locate directory in Windows Explorer on the Document tab of your web application component document.
  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.

Recently Viewed Topics