Project

General

Profile

Actions

Support #2593

closed

"wthttpd" config file on Windows

Added by I. Lazaridis over 11 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
01/23/2014
Due date:
% Done:

0%

Estimated time:

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?

Actions #1

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

Actions #2

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/wthttpd

Or 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.

Actions #3

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.

Actions #4

Updated by I. Lazaridis over 11 years ago

See #2602

Actions #5

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.

Actions #6

Updated by Koen Deforche about 11 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF