http.conf 240 line
授权文件
<Directory/>
Options FollowSymLinks
AllowOverride All
Order deny,allow
Allow from all
</Directory>
<VirtualHost *:80>
DocumentRoot "F:/workspace/GrayPig/public"
ServerName api1.zhuyk.cn
</VirtualHost>
端口配置
Listen 8081
<VirtualHost *:8081>
DocumentRoot "F:/xm/shop"
</VirtualHost>
Listen 8082
<VirtualHost *:8082>
DocumentRoot "F:/xm/sq"
</VirtualHost>
host 给端口配置域名
127.0.0.1 api1.zhuyk.cn
来源:CSDN
作者:北辰_
链接:https://blog.csdn.net/qq_21774371/article/details/104040493