siva Posted October 2, 2007 Report Share Posted October 2, 2007 Hi Wireworkers, I want to configure the G WebServer during runtime. I want to Change "Document Root" Folder before Starting the G Web Server each time. Does anybody know how to programmatically change the "Document Root" Folder Settings? Thanks in advance. Quote Link to comment
Grampa_of_Oliva_n_Eden Posted October 3, 2007 Report Share Posted October 3, 2007 QUOTE(siva @ Oct 1 2007, 04:39 PM) Hi Wireworkers,I want to configure the G WebServer during runtime. I want to Change "Document Root" Folder before Starting the G Web Server each time. Does anybody know how to programmatically change the "Document Root" Folder Settings? Thanks in advance. It could be as easy as changing the LabVEW.ini tokens before LV launches. WebServer.Enabled=True WebServer.RootPath=C:\Program Files\National Instruments\LabVIEW 8.2\www\new There also seems to be some new twists on this Q, see http://forums.ni.com/ni/board/message?board.id=170&message.id=273531#M273531' target="_blank">this thread On NI. Is tnis what you are after? Ben Quote Link to comment
Rolf Kalbermatter Posted October 3, 2007 Report Share Posted October 3, 2007 QUOTE(Ben @ Oct 1 2007, 05:42 PM) It could be as easy as changing the LabVEW.ini tokens before LV launches.WebServer.Enabled=True WebServer.RootPath=C:\Program Files\National Instruments\LabVIEW 8.2\www\new There also seems to be some new twists on this Q, see http://forums.ni.com/ni/board/message?board.id=170&message.id=273531#M273531' target="_blank">this thread On NI. Is tnis what you are after? Ben There are also Application Properties for this but I'm not sure if they are visible in a standard LabVIEW installation. Rolf Kalbermatter Quote Link to comment
siva Posted October 4, 2007 Author Report Share Posted October 4, 2007 QUOTE(rolfk @ Oct 2 2007, 11:04 AM) There are also Application Properties for this but I'm not sure if they are visible in a standard LabVIEW installation.Rolf Kalbermatter Thank you everybody for their valuable suggestions. Finally, I got a way to change the Document_Root while run-time. Before Starting the G Server, I kept a sequence to change the required changes in Document_root. http://lavag.org/old_files/monthly_10_2007/post-4279-1191399091.jpg' target="_blank"> I used 2 VIs (HTTP Set Directive Value.vi, HTTP Get Directive Value.vi) in config.llb(Internet Toolkit) to do this. Quote Link to comment
Rolf Kalbermatter Posted October 4, 2007 Report Share Posted October 4, 2007 QUOTE(siva @ Oct 3 2007, 03:16 AM) Thank you everybody for their valuable suggestions. Finally, I got a way to change the Document_Root while run-time. Before Starting the G Server, I kept a sequence to change the required changes in Document_root. http://lavag.org/old_files/monthly_10_2007/post-4279-1191399091.jpg' target="_blank"> I used 2 VIs (HTTP Set Directive Value.vi, HTTP Get Directive Value.vi) in config.llb(Internet Toolkit) to do this. OK I see you are using the InternetToolkit Web Server. The App Properties mentioned are only present for the built in Web Server in newer LabVIEW systems. Can't do everything the Internet Toolkit server can (such as CGI) but is quite capable for more static things. Rolf Kalbermatter Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.