我是apache2.4.9 配置出來(lái)的test01.com是wampserver的homepage
#
<Directory />
?
?
AllowOverride all
? ? Require all granted
</Directory>
#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#
<Directory "D:/wamp/www/">
? ? #
? ? # 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
2016-07-22
<Directory "D:/wamp/www/"> 和DocumentRoot "E:/demo"沒(méi)改吧 改成你設(shè)置的文件目錄即可