我最近购买了一台新电脑,我正试图让我的网站找到laravel。我已经安装了wamp和composer。我能够使用composer create-project创建一个新的laravel项目......我已经创建了一个VirtualHost和一个主机名..
<VirtualHost *:80>
DocumentRoot /wamp/www/jaycousins/public
ServerName jaycousins
<Directory "/wamp/www/jaycousins/public">
Options +Indexes
AllowOverride All
Require all granted
ErrorLog "logs/dummy-host2.example.com-error.log"
CustomLog "logs/dummy-host2.example.com-access.log" common
</VirtualHost>
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
127.0.0.1 localhost
127.0.0.1 jaycousins
但我只是通过搜索http://jaycousins/
来找到laravel我是通过http://localhost/jaycousins/public找到的......我该如何解决这个问题?
答案 0 :(得分:0)
您提供目录的完整路径
<Directory "<< Directory Full path >>">
<强> E.g。强>
<Directory "c:/wamp/www/jaycousins/public">
Wamp配置参考 https://www.kristengrote.com/blog/articles/how-to-set-up-virtual-hosts-using-wamp