Actions
Feature #3150
closedSetting the appRoot parameter under nginx
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)?
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