第一步

先在本地环境中的Apache中找到httpd-vhosts.conf文件

<VirtualHost *:80>
    DocumentRoot "E:/scoopeAR/scoope-yii-2/backend/web/"
    ServerName   192.168.1.144
    ServerAlias  nadmin.scoope.net
    <Directory  "E:/scoopeAR/scoope-yii-2/backend/web/">
        AllowOverride All
        <IfDefine APACHE25>
            Require local
        </IfDefine>
        <IfDefine !APACHE25>
            Order Deny,Allow
 #           Deny from all
            Allow from 127.0.0.1 localhost ::1
        </IfDefine>
    </Directory>
</VirtualHost>
<VirtualHost *:80>

第二步

在C:\Windows\System32\drivers\etc 找到hosts文件 配置本机IP和自己配置的域名

192.168.1.144      nadmin.scoope.net

 

相关文章:

  • 2022-01-06
  • 2021-07-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-29
  • 2021-10-12
猜你喜欢
  • 2022-12-23
  • 2021-08-05
  • 2021-07-05
  • 2022-01-17
  • 2022-12-23
  • 2022-01-01
  • 2021-12-07
相关资源
相似解决方案