【发布时间】:2019-03-04 14:38:55
【问题描述】:
我有一个问题,我想在没有 cmd 命令 php artisan serve 的情况下运行我的 laravel 项目,我想要通常在 php 项目 localhost/projectName 中的东西,当我执行所有步骤时,比如在 System32/driver/etc/ 中更改主机主机 并使用所有推荐的选项更改 E:\wamp\bin\apache\apache2.4.33\conf\extra\httpd-vhosts.conf 我重新启动 wamp 但是当我输入 url projectname.dev 时,浏览器上方的 cercle 仍然旋转并且没有显示在浏览器中!!!! 有人有任何想法
配置是
<VirtualHost *:80>
ServerAdmin webmaster@ahssanstore.dev
DocumentRoot "E:\wamp\www\AhssanStore\public"
ServerName ahssanstore.dev
ServerAlias www.ahssanstore.dev
ErrorLog logs/ahssanstore.dev-error.log
CustomLog logs/ahssanstore.dev-access.log common
<Directory "E:\wamp\www\AhssanStore\public">
AllowOverride all
Require all granted
</Directory>
</VirtualHost>
在 C:\Windows\System32\drivers\etc 中 我添加 127.0.0.1 ahssanstore.dev
然后我重新启动 wamp,然后我导航到 localhost/ahssanstore.dev
【问题讨论】:
-
请显示您使用的配置。
-
我放了配置兄弟,你现在可以看到它们了