LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DocumentRoot in niwebserver.conf (LabVIEW 2009)

Solved!
Go to solution

I'm using the LV2009 built-in web server and trying to pick my way through building a stand-alone application.  So far I have done fairly well, but I have some questions regarding directives in the web server configuration file.  There seems to be some conflicting information in the forum regarding the path directives, so I'd like to pin it down here.

 

The two posts I found that seem to relate to this directly are:

http://forums.ni.com/ni/board/message?board.id=170&message.id=434722#M434722

http://forums.ni.com/ni/board/message?board.id=170&message.id=393057#M393057

So, can the path used for DocumentRoot be relative?  And if so, relative to what?

 

Ideally, I'd like to have this relative to the configuration file (this seems to be indicated in the first post above).  However, it may be that the path is relative to the web server engine itself (as inidicated in the second post).

 

Thanks for any clarification!

 

James

0 Kudos
Message 1 of 3
(3,467 Views)
Solution
Accepted by james brunner

Hi James,

 

I believe that your first link to the post by NathanK is correct. He says there that "In 2009 all relative paths in niwebserver.conf are relative to the location of the config file itself." So the path can be relative, and relative to the path of the webserver.conf file.

 

I think that the difference in his two posts is because the post in your second link is talking about LabVIEW 8.6, while the post in your first link is about LabVIEW 2009, along with information about the differences between the two versions.

 

Regards,

Stephen S.

National Instruments
Applications Engineering
Message 2 of 3
(3,428 Views)

Thanks Stephen,

 

I have confirmed that this seems to be the case.  If I locate a document root folder (e.g., 'www') right below the folder containing the configuration file, then everything works if I set DocumentRoot = ".\www" in the configuration file.

 

*** I have verified this behavior with LabVIEW 2009 only ***

 

I believe that the paths behavior is different as indicated by the previous posters.

 

Thanks all!

 

James

0 Kudos
Message 3 of 3
(3,425 Views)