-4
當我輸入「localhost」而不是「localhost/projectname/public/index.php」時,我想從瀏覽器打開我的項目。我將如何做到這一點?Laravel不會將本地主機指向我的項目
我檢查了我的httpd.conf文件中的Apache \的conf \,並在此特定節說:
DocumentRoot "C:/xampp/htdocs/projectname"
<Directory "C:/xampp/htdocs/projectname">
#
# 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 Includes ExecCGI
#
# 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.
#
Require all granted
</Directory>
無項目名稱,你不打開直接在本地主機 – lalitpatadiya
你的項目嘗試添加/公共/您的項目名稱後。它應該指向它內部的索引。 – Enjoyted
可能重複的[Laravel:Change Projects根目錄](http://stackoverflow.com/questions/27948065/laravel-change-projects-root-directory) –