yum install epel-* -y
yum install nginx -y
vim /etc/nginx/nginx.conf
mkdir /html/{jf1,jf2}
检查配置文件语法是否有误:nginx -t -c /etc/nginx/nginx.conf
重启nginx:systemctl restart nginx
宿主机hosts文件中绑定ip,主机名
Web浏览器访问:

Nginx代理服务器需要双网卡支持,后端Web服务器是httpd。
配置文件:
Nginx代理服务器需要双网卡支持,后端Web服务器是httpd。
架构:
配置文件:
原文:https://blog.51cto.com/12191098/2382102