mirror of
https://gitee.com/kennylee/docker.git
synced 2024-12-04 21:08:29 +08:00
42 lines
1.5 KiB
Plaintext
42 lines
1.5 KiB
Plaintext
server {
|
|
listen 8888; # 与外部映射端口一致,不然会代理后丢失端口
|
|
server_name proxy.tk;
|
|
location /nhjcw/ {
|
|
proxy_redirect off;
|
|
proxy_set_header Host $host:$server_port;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_pass http://192.168.1.96:2021/nhjcw/;
|
|
}
|
|
location /cmm/ {
|
|
proxy_redirect off;
|
|
proxy_set_header Host $host:$server_port;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_pass http://192.168.1.96:2019/cmm/;
|
|
}
|
|
location /ehospital/ {
|
|
proxy_redirect off;
|
|
proxy_set_header Host $host:$server_port;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_pass http://192.168.1.96:2001/ehospital/;
|
|
}
|
|
location /fishport/ {
|
|
proxy_redirect off;
|
|
proxy_set_header Host $host:$server_port;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_pass http://192.168.1.96:2032/fishport/;
|
|
}
|
|
location /ts {
|
|
proxy_redirect off;
|
|
proxy_set_header Host $host:$server_port;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_pass http://192.168.1.96:8001/;
|
|
}
|
|
access_log /var/log/nginx/http_proxy.tk_access.log;
|
|
}
|
|
|