Allow for root directory content

The "to-do" list for Virtual Radar Server is as long as my arm, but if you want to pile more work onto it then this is for you.
Posts: 4
Joined: Wed Mar 01, 2017 10:32 pm

Allow for root directory content

Postby tinjaw » Tue Mar 28, 2017 5:44 pm

Add an item to the settings to choose a directory. That directory will serve the root directory.

So, if the url is for the VRS feed, the the files in the chosen directory will be served up by

Posts: 1883
Joined: Fri Feb 17, 2012 3:20 am

Re: Allow for root directory content

Postby agw » Mon Apr 17, 2017 6:54 pm

VRS uses the built-in web server in Windows (HTTP.SYS). More than one program might want to use the web server at the same time, so to let them all run concurrently they can each tell HTTP.SYS that they're only interested in requests that start with a particular prefix. As long as each program uses a different prefix they can all share the server and not get in each other's way.

In the case of VRS the prefix is /VirtualRadar. This means that if you send a request for / then VRS doesn't get to see that request, HTTP.SYS will not forward it on to VRS for processing. It'll only forward on requests that start with /VirtualRadar.

You could register a listener with HTTP.SYS that listens to / but when you do that you block out everything else from HTTP.SYS on that port, which makes conflicts with other listeners much more likely. If VRS was a full-blown web server like IIS or Apache then it would be fair enough, but it's not, I think it should try to play nicely with other programs and not hog the server.

Posts: 4
Joined: Wed Mar 01, 2017 10:32 pm

Re: Allow for root directory content

Postby tinjaw » Wed Apr 19, 2017 2:03 am

I suspect that most people that are running VRS on a box are not running any other web servers on that box. Can you at least add the option to be able to serve up root? I guess the thing I should do is code it up and post a pull request. :-/

Posts: 3
Joined: Tue Aug 01, 2017 9:12 am

Re: Allow for root directory content

Postby ernieek » Tue Aug 01, 2017 12:47 pm


i have a solution found.

install MS iis server.

remove all files in the root folder of the default website in iis

put a web.config with the following:

<?xml version="1.0" encoding="UTF-8"?>
<httpRedirect enabled="true">
<add wildcard="/" destination="/virtualradar" />
<httpErrors errorMode="Custom" defaultResponseMode="Redirect">
<remove statusCode="404" subStatusCode="-1" />
<error statusCode="404" prefixLanguageFilePath="" path="/" responseMode="ExecuteURL" />

you can place in C:\inetpub\wwwroot you own stuf and website the virtual radar will be still availeblo on http://<hostname>/virtualradar

Kind regards Erwin

Return to “Feature Suggestions”

Who is online

Users browsing this forum: No registered users and 1 guest