目录

配置反向代理

配置反向代理

建立一个简单的反向http代理

nginx 配置情况

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
upstream tunnel{
   server 127.0.0.1:8080;
}
server {
   listen 80;
   server_name <url>;
   
   location /{
   proxy_set_header Host $http_host;
   proxy_pass tunnel;
   }
}
#ssh reverse 
ssh -R 8080:localhost:<port> <user_name>@<server>
#port is your local application used ,and url is the url you will to visit public