Jetbrains全系列IDE使用 1年只要46元 售后保障 童叟无欺
1.首先在“/etc/hosts”文件中加入当前主机的IP地址和需要设置的虚拟主机名:
如:192.168.0.143 www.moyaping2.com
2.在“/etc/apache2/sites-available”目录下有“000-default.conf”
将000-default.conf 复制一份叫做 redis.conf
3 进入redis.conf
修改 ServerName 和 DocumentRoot
![Ubuntu16.04 apache2配置虚拟主机[通俗易懂]](https://javaforall.net/wp-content/uploads/2020/11/2020110817443450.jpg)
4 ln -s /etc/apache2/sites-available/redis.conf ../sites-enabled/
5 sudo /etc/init.d/apache2 restart
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/192220.html原文链接:https://javaforall.net