是否有完整的uwsgi神话魔术变量列表?

时间:2012-09-14 01:01:41

标签: uwsgi

我正在尝试用uwsgi做一些非常复杂的配置。从长远来看,我正在努力让自己变得更轻松,自然而然地,这样做,我正在努力使事情变得非常困难

无论如何,我正在寻找完整的魔术变量列表。我在Emperor page上找到的那些不是我所追求的。该页面(和其他人)表明那里有一个更大的魔法词典。某处。

%v = the vassals dir
%o = the original config filename as specified in the command line
%p = the absolute path of the config filename
%s = the filename of the config file
%d = the absolute path of the directory containing the config file
%e = the extension of the config file
%n = the filename without extension

2 个答案:

答案 0 :(得分:4)

唯一缺少的变量是%c,它报告了包含配置文件的目录的名称:

/foo/bar/test/one.ini将返回'test'

答案 1 :(得分:4)

自提出此问题以来,uwsgi文档似乎已更新。这是一个更长的魔术变量列表的链接:

http://uwsgi-docs.readthedocs.org/en/latest/Configuration.html#magicvars