Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Web Server: Configuration Options Page

Select Tools»Options to display the Options dialog box and select Web Server: Configuration from the Category list to display this page.

Use this page to enable and configure the Web Server.

This page includes the following components:

  • Enable Web Server—Enables the Web Server to publish front panel images and HTML documents. This checkbox is unchecked by default. You also can use the Web Server:Server Active property to enable the Web Server programmatically.
  • Root Directory—Indicates the directory where the Web Server HTML files are located. The default path is labview\www. You also can use the Web Server:Root Directory Path property to specify the root directory programmatically.
  • HTTP Port—Indicates the TCP/IP port the Web Server uses. If another server already uses the port specified by HTTP Port on the computer or if you are on a computer where you do not have permission to use reserved ports, such as 80, remove the checkmark from the Use default checkbox and replace the value of HTTP Port with the port you want to use. Place a checkmark in the Use default checkbox to return to the default value of 80.

    You also can use the Web Server:HTTP Port property to set the port to which the built-in Web Server listens for HTTP requests.

    Note  If you use a port other than 80, such as 8000, you must specify the port on URLs that refer to the server, as shown in the following example:

    http://hostname:8000/index.htm
    • Use defaultWindows Sets HTTP Port to its default value of 80. Mac OS and Linux Sets HTTP Port to its default value of 8000. This checkbox is checked by default. To edit HTTP Port, remove the checkmark from the checkbox.
  • Timeout—Indicates the number of seconds the Web Server waits while reading a request before the Web Server times out. The default is 60 seconds. If Use default is checked, you cannot edit this field. You also can use the Web Server:Read Timeout property to determine programmatically how long the built-in Web Server waits for read operations to complete.
    • Use default—Sets Timeout to its default value of 60 seconds. This checkbox is checked by default. To edit Timeout, remove the checkmark from the checkbox.
  • Use Log File—Enables the log file. This checkbox is unchecked by default. You also can use the Web Server:Logging Enabled property to enable the log file programmatically.
    • Log File Path—Indicates the path of the file where LabVIEW saves Web connections information. The default path is labview\www.log. You also can use the Web Server:Logging File Path property to determine programmatically where the built-in Web Server places the log file.

Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit