1.  apache配置文件httpd.conf,vhosts.conf

2.  在vhosts.conf下添加虚拟机

<VirtualHost *:80>
    DocumentRoot "D:\www\mxhy\backend\web"
    ServerName mxhy_b.com
    ServerAlias mxhy_b.com
  <Directory "D:\www\mxhy\backend\web">
      Options FollowSymLinks ExecCGI
      AllowOverride All
      Order allow,deny
      Allow from all
      Require all granted
  </Directory>
</VirtualHost>

3. httpd.conf中包含vhosts.conf

apache 添加虚拟机


相关文章:

  • 2022-01-06
  • 2022-01-23
  • 2021-12-25
  • 2022-01-25
  • 2022-12-23
  • 2022-01-07
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-12
  • 2022-01-01
  • 2022-01-07
  • 2021-09-30
相关资源
相似解决方案