b2科目四模拟试题多少题驾考考爆了怎么补救
b2科目四模拟试题多少题 驾考考爆了怎么补救

directoryindex?ip指向本地文件夹?java heap size 设置?Apache HTTP Serve

电脑杂谈  发布时间:2016-09-03 16:00:08  来源:网络整理

你是否正在寻找关于directoryindex的内容?让我把最有价值的东西奉献给你:

Please note

This document refers to the 2.0 version of Apache httpd, which is no longer maintained. Upgrade, and refer to the current version of httpd instead, documented at:

  • Current release version of Apache HTTP Server documentation
  • You may follow this link to go to the current version of this document.

    Apache Module mod_dir

    Available Languages: en | ja | ko | tr

    Provides for "trailing slash" redirects and serving directory index files

    Base

    dir_module

    mod_dir.c

    Summary

    The index of a directory can come from one of two sources:

  • A file written by the user, typically called index.html. The directive sets the name of this file. This is controlled by mod_dir.
  • Otherwise, a listing generated by the server. This is provided by mod_autoindex.
  • The two functions are separated so that you can completely remove (or replace) automatic index generation should you want to.

    A "trailing slash" redirect is issued when the server receives a request for a URL where dirname is a directory. Directories require a trailing slash, so mod_dir issues a redirect to .

    Directives

  • directoryindex Directive

    List of resources to look for when the client requests a directory

    directoryindex local-url [local-url] ...

    directoryindex index.html

    server config, virtual host, directory, .htaccess

    Indexes

    Base

    mod_dir

    The directoryindex directive sets the list of resources to look for, when the client requests an index of the directory by specifying a / at the end of the directory name. Local-url is the (%-encoded) URL of a document on the server relative to the requested directory; it is usually the name of a file in the directory. Several URLs may be given, in which case the server will return the first one that it finds. If none of the resources exist and the Indexes option is set, the server will generate its own listing of the directory.

    Example

    directoryindex index.html

    then a request for would return if it exists, or would list the directory if it did not.

    Note that the documents do not need to be relative to the directory;

    directoryindex index.html index.txt /cgi-bin/index.pl

    would cause the CGI script /cgi-bin/index.pl to be executed if neither index.html or index.txt existed in a directory.

    DirectorySlash Directive

    Toggle trailing slash redirects on or off

    DirectorySlash On|Off

    DirectorySlash On

    server config, virtual host, directory, .htaccess

    Indexes

    Base

    mod_dir

    Available in version 2.0.51 and later

    The DirectorySlash directive determines, whether mod_dir should fixup URLs pointing to a directory or not.

    Typically if a user requests a resource without a trailing slash, which points to a directory, mod_dir redirects him to the same resource, but with trailing slash for some good reasons:

  • The user is finally requesting the canonical URL of the resource
  • mod_autoindex works correctly. Since it doesn't emit the path in the link, it would point to the wrong path.
  • will be evaluated only for directories requested with trailing slash.
  • Relative URL references inside html pages will work correctly.
  • Well, if you don't want this effect and the reasons above don't apply to you, you can turn off the redirect with:

    # see security warning below!
    <Location /some/path>
    DirectorySlash Off
    SetHandler some-handler

    以上就是关于directoryindex的全部内容,相信你一定会非常满意,。


    本文来自电脑杂谈,转载请注明本文网址:
    http://www.pc-fly.com/a/jisuanjixue/article-15820-1.html

      相关阅读
        发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

        • 孙大利
          孙大利

          地产商不行贿能拿到地吗

        热点图片
        拼命载入中...