美文网首页
apache建立虚拟目录

apache建立虚拟目录

作者: 40dd4b561abe | 来源:发表于2017-06-13 10:47 被阅读9次
sudo vim  /etc/apache2/httpd.conf  “mac下的httpd.conf目录”
//增加虚拟目录权限
直接在DocumentRoot "/Library/WebServer/Documents"下面加入
<Directory "/Library/WebServer/Documents"> #这里改成你新的目录地址
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.4/mod/core.html#options
    # for more information.
    #
    Options FollowSymLinks Multiviews
    MultiviewsMatch Any

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   AllowOverride FileInfo AuthConfig Limit
    #
    AllowOverride None

    #
    # Controls who can get stuff from this server.

    Require all granted
</Directory>





相关文章

网友评论

      本文标题:apache建立虚拟目录

      本文链接:https://www.haomeiwen.com/subject/efkdqxtx.html