How to make apache display directory
ringa_lee
ringa_lee 2017-05-16 17:00:52
0
1
531

The environment is wamp3 and apache is 2.4. When using wamp2.5 before, the documentroot was designated as h:demo (there is no index.php or the like in the main directory). Every time you open localhost, it is a directory of all projects. After updating wamp3 this time, I found that opening localhost was not found, but typing localhost/test/ can open the project (there is index.php under test), indicating that the configuration of documentroot is correct. I checked how to display the apache directory.
The answer is that in http.conf
Options Indexes FollowSymLinks
But I found that I have this item

<Directory "H:/Demo">
    #
    # 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 Indexes FollowSymLinks

    #
    # 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 all

    #
    # Controls who can get stuff from this server.
    #

#   onlineoffline tag - don't remove
    Require local
</Directory>
ringa_lee
ringa_lee

ringa_lee

reply all(1)
洪涛

Options Indexes FollowSymLinks
去掉Indexes
变为
Options FollowSymLinks

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!