I thought I would let you know we are using a combination of G Web Server for CGI scripting, and LV Remote Panel Server to serve up the VIT's (VI clones). Here's some more detail about what's going on...
The order of events:
1) Server Application runs on port 80. This is both G web server (set to share port with LabVIEW), and the LabVIEW built-in web server.
TCP Access is enabled for all connections for both servers, and VI access is enabled for all VI's for the LV Web server. We have ensured this is also true for the built application using the appropriate settings in the application.ini file and the [application] section.
2) Client requests a CGI page. G web server catches the CGI request, runs a small CGI VI. The CGI VI (a) opens and runs a VIT (vi clone), and (b) creates and returns to the client a small HTML document which embeds the cloned VI's front panel. This method follows the structure of the NI example in "Creating Simultaneous Instances Remote Panels LabVIEW Applications".
The VI clone is running properly at the CGI request. We've added code to open the clone's panel on the server at the time of request to ensure this.
3) We *think* we understand the licensing issues surrounding the Remote Panel server. Further, we enable logging on the server (WebServer.LogEnabled=True), and we can see the license granted to client connection at time of request (timestamps/user/ip removed for clarity):
localhost - - FPP ConnAllowed - - Total licenses checked out = 1 localhost - - FPP VIReqAllowed - "Spartan Home 1.vi"
localhost - - FPP ConnClosed - -