NI Linux Real-Time Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Webserver home page on RT Linux

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

0 Kudos
Message 1 of 6
(4,211 Views)

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.

0 Kudos
Message 2 of 6
(3,638 Views)

Hi.

Is page created with node.js an option for you?

0 Kudos
Message 3 of 6
(3,638 Views)

Thank you Haris.

Yes, node.js is an option. Is this enabled by default?

0 Kudos
Message 4 of 6
(3,638 Views)

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.

0 Kudos
Message 5 of 6
(3,638 Views)

Thanks!

0 Kudos
Message 6 of 6
(3,638 Views)