产品型号:Thinkpad E15
系统版本:centos8
nginx反向代理配置
安装nginx服务
[root@xuegod63 ~]# yum Install -y epel-release #安装yum扩展源,扩展源中有nginx安装包
[root@xuegod63 ~]# yum install -y nginx
我们可以通过 Proxy_pass 配置反向代理
[root@xuegod63 ~]# vim /etc/nginx/nginx.conf
改:
47location / {
48}
为:
47location / {
48proxy_pass http://www.163.com;
49}
[root@xuegod63 ~]# systemctl start nginx
查看IP地址
[root@xuegod63 ~]# ifconfig ens33
ens33: flags=4163
inet 192.168.1.63 netmask 255.255.255.0 broadcast 192.168.1.255
访问web服务:http://192.168.1.63/
当我们访问192.168.1.63,直接跳转到163网站,说明我们配置的反向代理有效 。
总结:
1、安装nginx服务
[root@xuegod63 ~]# yum install -y epel-release #安装nginx yum源
[root@xuegod63 ~]# yum install -y nginx
2、我们可以通过 proxy_pass 配置反向代理
[root@xuegod63 ~]# vim /etc/nginx/nginx.conf
改:
47location / {
48}
为:
47location / {
48proxy_pass http://www.163.com;
49}
【Thinkpad E15系统 nginx反向代理配置】
- 华为MateBook X系统 ps怎么栅格化图层
- 华为MateBook X系统 cad圆的直径标注
- 华为MateBook X系统开启快速启动 win10快速启动要不要打开
- 华为官网刷机指南:更新你的设备操作系统
- 文职将军和现役将军有什么区别,请系统讲解一下。
- oa办公系统软件哪家好
- 华为鸿蒙系统使用体验
- 联想ThinkPad开机黑屏怎么办?
- 努比亚系统官网下载使用指南
- 苹果XR目前最适合的系统
