• nginx配置之代理功能


    nginx代理功能

        至少需要两台主机:

          代理机配置----如下:

              yum安装的/etc/nginx/nginx.conf          

                location / { 

                  #服务机的ip端口 

                  proxy_pass http://192.168.160.132:80; 

                }

              注意停用防火墙:

                -----systemctl stop firewalld    关闭防火墙

                -----systemctl disable firewalld  禁止开机自启

           服务机-------正常配置

        访问代理机的ip,自动转发到服务器

  • 相关阅读:
    冒泡排序
    跑马(行转列,列转行)
    选择排序
    day06-迭代器
    day05-装饰器作业
    day07-生成器
    day08-内置函数和匿名函数
    day09-正侧表达式
    144-SpringBoot的编码问题?
    143-SprinBoot如何使用Servlet?
  • 原文地址:https://www.cnblogs.com/open-yang/p/11255885.html
Copyright © 2020-2023  润新知