1. 程式人生 > >apache 新增虛擬機器

apache 新增虛擬機器

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