LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW webservice: redirect from server root to service

Hi Community,

 

I have developped a webservice which can be found at http://<myserver>/weatherstation

 

I would like the user to be able to type simply http://<myserver> to get to the weatherstation service, but I dont know how can I redirect him as in LabVIEW I can't find anything like a server root (such as "htdocs" when I use apache). Currently when the user types the servername only he gets a 404 page saying "Access error: 404 - not found, Can not open document for: /"

 

So how can I redirect the user to the service from the server root?

 

thanks.

0 Kudos
Message 1 of 4
(3,011 Views)
I don't have an exact answer, its been too long since I worked with this, but I seem to remember an example or tutorial that show how to do just exactly this

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 4
(2,987 Views)

well... can you be more specific?

 

BTW I assume that I need to enter some sort of a key to the niwsdebugserver.conf file under /resource/webserver

I assume this because creating a 404 page is like entering the following line to the conf file: ErrorDocument 404 /weatherstation/404/

 

But I dont know how to define the server root folder. I have tried DocumentRoot /weatherstation/ and Documents /weatherstation/ but these dont do what I want to achive.

0 Kudos
Message 3 of 4
(2,983 Views)

Ok... so the right entry is:

DocumentRoot "$LVSERVER_ROOT/weatherstation"

 

Kudos to me, I guess 🙂

0 Kudos
Message 4 of 4
(2,973 Views)