2015-04-28 50 views
-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> 
+0

无项目名称,你不打开直接在本地主机 – lalitpatadiya

+0

你的项目尝试添加/公共/您的项目名称后。它应该指向它内部的索引。 – Enjoyted

+0

可能重复的[Laravel:Change Projects根目录](http://stackoverflow.com/questions/27948065/laravel-change-projects-root-directory) –

回答

相关问题