虚拟主机wamp laravel无法正常运行,如果您的企业交了手,]]

问题描述 投票:0回答:1

我正在尝试创建虚拟主机ecommerce.com而不是php artisan服务,但很遗憾,它知道我修改了文件D: \ wamp \ bin \ apache \ apache2.4.39 \ conf \ extra \ httpd-vhosts.confC: \ Windows \ System32 \ Drivers \ etc \ host,但无法直接传送到commerce.com网站。

主机文件

127.0.0.1 localhost
127.0.0.1 ecommerce.com
::1 localhost

httpd-vhosts.conf

# Virtual Hosts
#
<VirtualHost *:80>
  ServerName localhost
  ServerAlias localhost
  DocumentRoot "${INSTALL_DIR}/www"
  <Directory "${INSTALL_DIR}/www/">
    Options +Indexes +Includes +FollowSymLinks +MultiViews
    AllowOverride All
    Require local
  </Directory>
</VirtualHost>

<VirtualHost *:80>
  ServerName ecommerce.com
  DocumentRoot "${INSTALL_DIR}/www/ecomm/public"
  <Directory "${INSTALL_DIR}/www/">
  </Directory>
</VirtualHost>

我正在尝试创建虚拟主机ecommerce.com而不是php artisan服务,但是知道我修改了文件D:\ wamp \ bin \ apache \ apache2.4.39 \ conf \ ...

php laravel apache wamp
1个回答
0
投票

使用WAMP时,可以从Wamp面板中创建虚拟主机。在浏览器中,转到localhost,然后在wamp页面中找到create virtual host(或类似的内容)。

© www.soinside.com 2019 - 2024. All rights reserved.