1,编辑hosts文件
vi /etc/hosts
123.204.13.80 www.evildoer.cc
123.204.13.80 evildoer.cc
2,进入nginx conf目录
cd /etc/nginx/conf.d
3,编辑域名conf文件
vi evildoer.conf
server {
listen 80;
server_name www
1,编辑hosts文件
vi /etc/hosts
123.204.13.80 www.evildoer.cc
123.204.13.80 evildoer.cc
2,进入nginx conf目录
cd /etc/nginx/conf.d
3,编辑域名conf文件
vi evildoer.conf
server {
listen 80;
server_name www