06-15-2015 03:38 PM
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.
06-15-2015 06:47 PM
06-15-2015 06:56 PM
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.
06-15-2015 07:13 PM
Ok... so the right entry is:
DocumentRoot "$LVSERVER_ROOT/weatherstation"
Kudos to me, I guess 🙂