Project

General

Profile

Can we set the approot port etc programatically rather setting it while runtime.

Added by Naveen A.N almost 12 years ago

Hello,

Can we set the runtime arguments (---docroot . ---http-address 0.0.0.0 ---http-port 8090 ---approot . )programatically rather setting it in runtime


Replies (2)

RE: Can we set the approot port etc programatically rather setting it while runtime. - Added by Wim Dumon almost 12 years ago

You can:

  1. Set them in a configuration file (by default /etc/wthttpd)
  2. Specify them at the command line
  3. Pass them manually as parameters to WRun (construct the proper argc and argv in your main)

You cannot modify the Configuration class manually, we should probably make this API public one day.

Wim.

Example config file:

docroot = .
http-address = 0.0.0.0
http-port = 9090

RE: Can we set the approot port etc programatically rather setting it while runtime. - Added by Jonathan Greig almost 12 years ago

I'm interested in setting docroot and approot programmatically too.

    (1-2/2)