Hosting a Web Application on the NI Web Server
- 更新日2024-05-31
- 2分で読める
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.
- 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.
- Open your web application project (.gwebproject).
-
Locate the NI Web Server root directory.
Open Web Server tab of the NI Web Server option note the root directory path.on theHere is an example of a root directory path: C:\Program Files\National Instruments\Shared\Web Server\htdocs\.
-
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 .
- 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.
関連コンテンツ
- Choosing Remote Settings
- Hosting a WebVI with the Web Applications Service
Host a WebVI on the NI Web Server with the Web Applications Service to securely share it with users on the server.