Laravel不会将localhost指向我的项目

时间:2015-04-28 08:49:25

标签: php laravel localhost

当我输入“localhost”而不是“localhost / projectname / public / index.php”时,我想从浏览器打开我的项目。我该怎么做?

我在apache \ conf \中检查了我的httpd.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>

1 个答案:

答案 0 :(得分:0)

正如其他用户所建议的那样,更简单的方法可能就是使用built in php server