服务器变量列表或 <allowedServerVariables> 在哪里?
Where is there a list of Server Variables or <allowedServerVariables>?
我想知道是否有一个地方列出了我的服务器变量。
我正在使用 Rewrite Url,我很好奇我会产生什么效果。
我发现这个 blog article 在网页上列出了变量。如果有其他方法,我真的不想将其添加到网站。
我也研究过 Rewrite Url,他们只说:
ALLOWED SERVER VARIABLES LIST
Global rewrite rules can be used to set any request headers and server
variables, as well as overwrite any existing ones. Distributed rewrite
rules can only set/overwrite the request headers and server variables
that are defined in the allowed list for server variables
<allowedServerVariables>. If a distributed rewrite rule attempts to
set any server variable or an HTTP header that is not listed in the
<allowedServerVariables> collection a runtime error will be generated
by URL Rewrite Module. The <allowedServerVariables> collection by
default is stored in applicationHost.config file and can be modified
only by an IIS server administrator.
在哪里可以找到我的服务器变量列表?
如果我没有服务器管理员权限,是否有我可以尝试的常用服务器变量列表?
通过搜索特定的服务器变量,我找到了这两个页面。这正是我要找的。
ASP Server Variables(W3Schools)
还值得注意的是,当您在 IIS URL 重写功能中添加条件,然后开始在 "Condition Input" 框中键入时,将显示完整的变量列表...
我想知道是否有一个地方列出了我的服务器变量。
我正在使用 Rewrite Url,我很好奇我会产生什么效果。
我发现这个 blog article 在网页上列出了变量。如果有其他方法,我真的不想将其添加到网站。
我也研究过 Rewrite Url,他们只说:
ALLOWED SERVER VARIABLES LIST
Global rewrite rules can be used to set any request headers and server variables, as well as overwrite any existing ones. Distributed rewrite rules can only set/overwrite the request headers and server variables that are defined in the allowed list for server variables <allowedServerVariables>. If a distributed rewrite rule attempts to set any server variable or an HTTP header that is not listed in the <allowedServerVariables> collection a runtime error will be generated by URL Rewrite Module. The <allowedServerVariables> collection by default is stored in applicationHost.config file and can be modified only by an IIS server administrator.
在哪里可以找到我的服务器变量列表?
如果我没有服务器管理员权限,是否有我可以尝试的常用服务器变量列表?
通过搜索特定的服务器变量,我找到了这两个页面。这正是我要找的。
ASP Server Variables(W3Schools)
还值得注意的是,当您在 IIS URL 重写功能中添加条件,然后开始在 "Condition Input" 框中键入时,将显示完整的变量列表...