Project

General

Profile

Actions

Feature #3150

closed

Setting the appRoot parameter under nginx

Added by Alan Finley almost 10 years ago. Updated almost 10 years ago.

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

0%

Estimated time:

Description

Here I was told that the appRoot parameter is read from the application environment variable WT_APP_ROOT.

Apache allows to set it using the FcgidInitialEnv directive.

But unlike Apache, nginx can't manage a backend process environment. There is only an option to set a CGI variable using fastcgi_param.

Is it possible to add an option to Wt to read the WT_APP_ROOT parameter from CGI variables (maybe as the least priority variant)?

Actions #1

Updated by Wim Dumon almost 10 years ago

  • Status changed from New to Feedback

The more options we add to set approot, the more confusing it will become, so I'd like to avoid this. Does this work:

WT_APP_ROOT=/my/app/root spawn-fcgi -n -f ../../build/examples/hello/hello.wt -a 0.0.0.0 -p 9091

BR,

Wim.

Actions #2

Updated by Alan Finley almost 10 years ago

Yes, this works. Thank you.

Actions #3

Updated by Wim Dumon almost 10 years ago

  • Status changed from Feedback to Closed
Actions

Also available in: Atom PDF