0 votes
by (120 points)

Dear,
thanks for this useful piece of software.

I'm struggling with attempting to change the path to "webRootDir".

NB : i'm on a windows PC
The exe file is here : C:_ARBORPRO\05SoftwarePackagesDatas\WebServerApps\RebexTinyWebServer

Your default initial setting is :

I tried :
value=".../71Config/LTFLocalHost/RebexTinyWebServer/localhost-wwwroot-2023a"
but also (simpler, less error prone) :

I restarted often the server, I tested from a second browser.
Whatever I do, it seems that the value of webRootDir does never change, I'm still with the out-of-the-box path, no other does work.

Where is the error?

Thanks on forward.

Pierre-Yves

1 Answer

0 votes
by (72.3k points)

I have just tried specifying webRootDir with different kinds of values. Everything is working correctly for me.

Relative path to the location of RebexTinyWebServer.exe:

<add key="webRootDir" value="wwwroot" />

Relative path with dot notation:

<add key="webRootDir" value="./wwwroot" />

Relative path with double dot notation:

<add key="webRootDir" value="../wwwroot" />

Full path on the same disk:

<add key="webRootDir" value="c:\data\wwwroot" />

Full path on another disk:

<add key="webRootDir" value="z:\data\wwwroot" />
  • Did you get some error or is it just not working?
  • What path is displayed on GUI after starting the app? You should see something like:

    • Web root directory: c:\temp\wwwroot
  • Please, make sure you specify path to an existing directory.
  • Please, make sure you modify the config file at the same location as you are executing the RebexTinyWebServer.exe app.
by (100 points)
Hi Lukas - I have the same problem as Pierre-Yves. This is the line in the config file that I changed to point to my directory: <add key="webRootDir" value="C:\Users\gerry\Documents\TestHome\index.html" />

When I access localhost on my Windows 11 machine, I get a long series of error messages that start: "Handler terminated abnormally: System. Timeout Exception..."

The app worked perfectly on my old Windows 10 machine.

Any ideas? Thanks in advance, Lukas.

Cheers
Gerry
by (72.3k points)
Hi Gerry, the key is named "webRootDir" which means path to a directory. However, it seems you are giving path to a file: ...\index.html

Please try to change the value to:

<add key="webRootDir" value="C:\Users\gerry\Documents\TestHome" />
...