搜索

此内容没有您所选择的语言版本。

25.4.2.5. Directories

download PDF
Use the Directories page in the Performance tab to configure options for specific directories. This corresponds to the <Directory> directive.
Directories

Figure 25.9. Directories

Click the Edit button in the top right-hand corner to configure the Default Directory Options for all directories that are not specified in the Directory list below it. The options that you choose are listed as the Options directive within the <Directory> directive. You can configure the following options:
  • ExecCGI — Allow execution of CGI scripts. CGI scripts are not executed if this option is not chosen.
  • FollowSymLinks — Allow symbolic links to be followed.
  • Includes — Allow server-side includes.
  • IncludesNOEXEC — Allow server-side includes, but disable the #exec and #include commands in CGI scripts.
  • Indexes — Display a formatted list of the directory's contents, if no DirectoryIndex (such as index.html) exists in the requested directory.
  • Multiview — Support content-negotiated multiviews; this option is disabled by default.
  • SymLinksIfOwnerMatch — Only follow symbolic links if the target file or directory has the same owner as the link.
To specify options for specific directories, click the Add button beside the Directory list box. A window as shown in Figure 25.10, “Directory Settings” appears. Enter the directory to configure in the Directory text field at the bottom of the window. Select the options in the right-hand list and configure the Order directive with the left-hand side options. The Order directive controls the order in which allow and deny directives are evaluated. In the Allow hosts from and Deny hosts from text field, you can specify one of the following:
  • Allow all hosts — Type all to allow access to all hosts.
  • Partial domain name — Allow all hosts whose names match or end with the specified string.
  • Full IP address — Allow access to a specific IP address.
  • A subnet — Such as 192.168.1.0/255.255.255.0
  • A network CIDR specification — such as 10.3.0.0/16
Directory Settings

Figure 25.10. Directory Settings

If you check the Let .htaccess files override directory options, the configuration directives in the .htaccess file take precedence.
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.