Support #2593
closed"wthttpd" config file on Windows
0%
Description
Following this doc:
http://www.webtoolkit.eu/wt/doc/reference/html/overview.html#config_wthttpd
I've place the following into a file "wthttpd"
http-address=0.0.0.0
http-port=8080
docroot="."
I've copied this file to
- the location of the exe
- the location of the wt dll's
- /etc/wt on the windows file-system
When i start the exe, it seems the configuration is not picked up, from non of this locations.
What am I doing wrong?
Updated by Wim Dumon over 11 years ago
- Status changed from New to Resolved
From CMakeCache.txt:
//Path for the wthttpd configuration file
WTHTTP_CONFIGURATION:PATH=c:/witty/wthttpd
Or if you run the executable with ---help, the last line reads:
Settings may be set in the configuration file c:/witty/wthttpd
Updated by I. Lazaridis over 11 years ago
Wim Dumon wrote:
From CMakeCache.txt:
//Path for the wthttpd configuration file
WTHTTP_CONFIGURATION:PATH=c:/witty/wthttpdOr if you run the executable with ---help, the last line reads:
Settings may be set in the configuration file c:/witty/wthttpd
Is there any interest to simplify this, thus a newcomer does not hit on this problem?
If yes, I can workout some suggestions and open an issue.
Updated by I. Lazaridis over 11 years ago
Note that my CMakeCache.txt does not contain "WTHTTP_CONFIGURATION:PATH=c:/witty/wthttpd"
The help text of my exe shows:
Settings may be set in the configuration file c:/pau/winstng/build2010-x86/prefix/etc/wt/wthttpd
I used the wt windows binaries installer.
Updated by Wim Dumon over 11 years ago
Ah precompiled Wt. I will fix that.
I forgot one method: you can set it yourself, by not using WRun, but instantiating the server yourself. How your own MyWRun should look like is documented here:
http://www.webtoolkit.eu/wt/doc/reference/html/classWt_1_1WServer.html
The third parameter of setServerConfiguration is the path to the filename.
Updated by Koen Deforche about 11 years ago
- Status changed from Resolved to Closed