时间:2024-10-20 17:30:24
1、使用vim打开httpd-vhosts.conf
2、将你要指定IP访问的虚拟主机配置复制一份,修改其中ServerName的值为IP
3、输入命令apachectl restart,重启Apache