Nginx 配置文件详解,转载于:https://blog.csdn.net/liqi_q/article/details/78799121 Nginx403问题排查,转载于: https://blog.csdn.net/qq_37138818/article/details/82379938
搭建Nginx基于域名虚拟主机
安装nginx,需要epel源
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搭建网站的数据切分
Nginx代理服务器需要双网卡支持,后端Web服务器是httpd。
配置文件:
Nginx网站动静分离
Nginx代理服务器需要双网卡支持,后端Web服务器是httpd。
架构:
配置文件: