02-11-2016 03:47 PM
Hello, I'm using a RTLinux platform in a product and I want to use the existing webserver to display my own WebUI and completly eliminate the built-in Silverlight pages. I believe I've tracked down the exe location to /usr/local/natinst/share/NIWebServer/SystemWebServer, however I'm not sure where to put an index.html and what files to delete to get rid of the existing pages.
For security purposes do I need to create a WebServer user account and restrict user permissions to a few directories?
Any help is appreciated,
Richard
02-11-2016 04:41 PM
Hi Richard,
On Linux RT systems, HTML/silverlight files are at /var/local/natinst/www/. Anything you place under that directory gets hosted by SystemWebServer. The index file is called WIF.html instead of index.html, so you may need to adjust your HTML accordingly. And you probably want to use admin:admin ownership and 0755 (rwxr-xr-x) permissions.
02-12-2016 02:22 PM
Hi.
Is page created with node.js an option for you?
02-12-2016 03:22 PM
Thank you Haris.
Yes, node.js is an option. Is this enabled by default?
02-14-2016 03:13 AM
As far as I know - no.
You have to add it by yourself. Take a look at this presentation: https://decibel.ni.com/content/docs/DOC-43593 - you can find example of node applicaiton.
02-14-2016 12:35 PM
Thanks!