URI | Location | Run-Time Mode | Max Connections | Environment | 启用过期 | 默认过期 | 按类型过期 | Extra Headers | 索引文件 | 自动索引 | Realm | 认证名称 | Require(授权的用户/组) | 允许访问列表 | 拒绝访问列表 | Authorizer | 添加默认的字符集 | 自定义默认字符集 | Enable Rewrite | 重写继承 | 重写基准 | Rewrite Rules | 启用IP地理定位 |
Description A Rack/Rails Context provides an easy way to configure a Ruby Rack/Rails application. To add a Rack/Rails application through a Rack/Rails Context, only mounting the URL and the application's root directory is required. There is no need to go through all the troubles to define an external application, add a 404 handler, and rewrite rules, etc. |
Description Specifies the URI for this context. |
Syntax The URI can be a plain URI (starting with "/") or a Perl compatible regular expression URI (starting with "exp:"). If a plain URI ends with a "/", then this context will include all sub-URIs under this URI. If the context maps to a directory on the file system, a trailing "/" must be added. |
See Also |
Description Specifies the corresponding location of this context in the file system. |
Syntax It can be an absolute path or path relative to $SERVER_ROOT, $VH_ROOT, or $DOC_ROOT. $DOC_ROOT is the default relative path, and can be omitted. |
Example A plain URI like /examples/ with Location set to /home/john/web_examples will map the request "/examples/foo/bar.html" to file "/home/john/web_examples/foo/bar.html". |
See Also |
Description Specifies which mode Rack/Rails will be running as: "Development", "Production", or "Staging". The default is "Production". |
Syntax Select from drop down list |
Description Specifies the maximum number of concurrent connections that can be established between the server and an external application. This setting controls how many requests can be processed concurrently by an external application, however, the real limit also depends on the external application itself. Setting this value higher will not help if the external application is not fast enough or cannot scale to a large number of concurrent requests. |
Syntax 无符号整数 |
Tips [Performance] Setting a high value does not directly translate to higher performance. Setting the limit to a value that will not overload the external application will provide the best performance/throughput. |
Description Specifies extra environment variables for the external application. |
Syntax Key=value. Multiple variables can be separated by "ENTER" |
Description 指定是否为静态文件生成Expires头。如果启用,将根据 默认过期和按类型过期生成Expires头。 |
Syntax 布尔值 |
Description 指定生成Expires头的默认设置。该设置在启用过期 设为“启用”时有效。它可以被按类型过期覆盖。 除非必要,否则不要在服务器或虚拟主机级别设置该默认值。 因为它会为所有网页生成Expires头。大多数时候,应该是 为不常变动的某些目录在Context级别设置。如果没有默认设置,按类型过期中未指定的类型不会生成Expires头。 |
Syntax A|M秒数 |
Description 为各个MIME类型分别指定Expires头设置。 |
Syntax 逗号分隔的“MIME-类型=A|M秒数”的列表。 文件将在基准时间(A|M)加指定秒数的时间后失效。 |
Description Specifies extra response headers to be added. Multiple headers can be added, one header per line. Put "NONE" to disable headers inherited from parent content. |
Syntax "[HeaderName]: [HeaderValue]" in each line. |
Example Cache-control: no-cache, no-store |
Description 指定URL映射到目录时顺序查找的索引文件名称。 您可以在服务器、虚拟主机和Context级别对其进行自定义。 |
Syntax 逗号分隔的索引文件名列表。 |
Tips [性能建议] 只设置你需要的索引文件。 |
Description 在目录中,当索引文件中所列的索引文件不可用时,指定运行时是否即时生成目录索引。 |
Syntax 布尔值 |
Tips [安全建议] 建议关闭自动索引,从而尽可能防止泄露机密数据。 |
See Also |
Description 指定这个context下的realm授权。 当指定时,必须提供有效的用户和用户名来访问这个context。 Realms授权需要在Virtual Host Security部分进行设置。此设置使用每个realm的Realm名称。 |
Syntax 选项 |
Description 指定哪些用户/用户组可以访问此context。 这里允许你使用一个用户/组数据库(在 Realm中指定)访问多个context, 但只允许该数据库下特定的用户/组访问这个context。 |
Syntax 语法兼容Apache的Require指令。例如:
|
Description 指定允许访问这个context下资源的IP地址或子网。综合 拒绝访问列表项的配置以及服务器/虚拟主机级别访问控制, 可访问性将以客户端IP所符合的最小范围来确定。 |
Syntax 逗号分隔的IP地址/子网列表。 |
Example 子网络可以写成192.168.1.0/255.255.255.0, 192.168.1 或192.168.1.*。 |
Description 指定哪个IP地址或子网不被允许访问这个context下的资源。 综合允许访问列表项的配置以及服务器/虚拟主机级别访问控制, 可访问性将以客户端IP所符合的最小范围来确定。 |
Syntax 逗号分隔的IP地址/子网列表。 |
Example 子网络可以写成192.168.1.0/255.255.255.0, 192.168.1 或192.168.1.*。 |
Description Specifies an external application that can be used to generate authorized/unauthorized decisions. Currently, only the FastCGI Authorizer is available. For more details about the FastCGI Authorizer role, please visit http://www.fastcgi.com. |
Syntax Select from drop down list |
Description 指定当内容类型是"text/html"或"text/plain"且没有参数时,是否添加字符集标记到"Content-Type"响应报头中。当设置为Off时,该功能禁用。当设置为On时,将添加自定义默认字符集中指定的字符集,如果没有指定,将添加默认的"iso-8859-1"字符集。 |
Syntax 布尔值 |
Description 指定一个字符集当添加默认的字符集是On时使用。这是可选的。默认值是iso-8859-1。当添加默认的字符集是Off时本设置将不生效。 |
Syntax 字符集的名称,例如utf-8 |
Example utf-8 |
Description Specifies whether to enable LiteSpeed's URL rewrite engine. This option can be customized at the virtual host or context level, and is inherited along the directory tree until it is explicitly overridden. |
Syntax Select from radio box |
Description Specifies a list of rewrite rules at the virtual host or context level. A rewrite rule is comprised of one RewriteRule directive and optionally preceded by multiple RewriteCond directives.
|
Syntax string |