01-26-2017 10:56 AM
I am developing a web service based application that implements a RESTful interface to serve plot data to a web client.
I would like to serve the javascript based HTML5 front end from the same web server.
The tricky part is that I would like to server the html front end on port 80 but the web service back end on a different port, e.g. 8123. It seems to be industry best practice to not run a web service on port 80.
Any idea how I could to that and run both on the NI Application web server?
01-27-2017 05:08 PM
hfettig,
The following KnowledgeBase article describes how to change the port from the Web Server configuration.
Default Web Service Port Change: http://digital.ni.com/public.nsf/allkb/BB927A3060E03AEC862579570064C14A
Here is also an indepth document that addresses a lot of web service considerations that you may find useful:
LabVIEW Web Services FAQ: http://www.ni.com/white-paper/7747/en/
01-30-2017 07:52 AM
Thanks for the reply. I know that I can change the port for the application web server. However, I would like to serve my HTML/Javascript application on that default port and talk to my web service on a different port.
01-31-2017 10:53 AM
The html application client front end and the web service back end are going to be on the same port for the client and server to talk to each other correctly. LabVIEW does not provide an option to differentiate ports for those parts of the web service. I'm not sure however what you mean by "best industry practice" to not use the default port. Could you give me more information on that-is there a particular reason you don't want them on the same port?