Jllin

nginx配置反向代理
worker_processes 1; events { worker_connections 1024; ...
扫描右侧二维码阅读全文
11
2018/10

nginx配置反向代理

worker_processes 1;
 events {
  worker_connections 1024;
 }
stream {
 server {
  listen 25;
  proxy_pass mailserver;
 }
 upstream mailserver {
  server smtp.mail.com:25;
 }
 server {
  listen 2222;
  proxy_pass shterm;
 }
 upstream shterm {
  server 192.168.2.222:2222;
 }
}

Last modification:October 14th, 2018 at 10:09 am
If you think my article is useful to you, please feel free to appreciate

Leave a Comment