Rumah  >  Soal Jawab  >  teks badan

Bagaimana untuk membuat direktori paparan apache

Persekitaran adalah wamp3 dan apache ialah 2.4 Apabila saya menggunakan wamp2.5 sebelum ini, documentroot ditetapkan sebagai h:demo (tidak ada index.php atau sebagainya dalam direktori utama. Setiap kali saya membuka localhost, ia adalah direktori semua projek Kali ini Selepas mengemas kini wamp3, saya mendapati bahawa pembukaan localhost tidak dijumpai, tetapi projek itu boleh dibuka dengan menaip localhost/test/ (terdapat index.php di bawah ujian), menunjukkan bahawa konfigurasi documentroot adalah betul . Saya menyemak cara memaparkan direktori apache.
Jawapannya ialah dalam http.conf
Indeks Pilihan FollowSymLinks
Tetapi saya mendapati bahawa saya mempunyai item ini

<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_leeringa_lee2713 hari yang lalu527

membalas semua(1)saya akan balas

  • PHP中文网

    PHP中文网2017-05-16 17:02:52

    Options Indexes FollowSymLinks
    去掉Indexes
    变为
    Options FollowSymLinks

    balas
    0
  • Batalbalas