您的位置 首页 nginx

nginx 代理转发(普通常见)

nginx 代理转发(普通常见)

 

        location /api/ {
          

          proxy_set_header Host $http_host;
          proxy_set_header X-Real-IP $remote_addr;
          proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
          proxy_set_header REMOTE-HOST $remote_addr;
          proxy_pass http://192.168.1.209:31021/;
          proxy_read_timeout 3600s;
          proxy_connect_timeout 3600;
          }

2

         location / {
          proxy_pass http://192.168.1.209:31022;
          proxy_set_header Host $proxy_host;
          proxy_set_header X-Real-IP $remote_addr;
          proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
          }

 

欢迎来撩 : 汇总all

白眉大叔

关于白眉大叔linux云计算: 白眉大叔

热门文章