|
@@ -37,7 +37,7 @@ server {
|
|
|
}
|
|
|
server {
|
|
|
listen 10166;
|
|
|
- server_name backend;
|
|
|
+ server_name cops.uniquecharge.cn;
|
|
|
|
|
|
#charset koi8-r;
|
|
|
access_log /var/log/nginx/host.access.log main;
|
|
@@ -51,19 +51,16 @@ server {
|
|
|
gzip_disable "MSIE [1-6]\.";
|
|
|
|
|
|
location / {
|
|
|
- proxy_pass http://$backend;
|
|
|
+ proxy_pass http://cops.uniquecharge.cn:2526;
|
|
|
proxy_set_header Host $host;
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
}
|
|
|
- upstream backend {
|
|
|
- server cops.uniquecharge.cn:2526;
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
server {
|
|
|
listen 10121;
|
|
|
- server_name ftp1;
|
|
|
+ server_name cssyunwei.sinexcel.com;
|
|
|
|
|
|
#charset koi8-r;
|
|
|
access_log /var/log/nginx/host.access.log main;
|
|
@@ -77,19 +74,16 @@ server {
|
|
|
gzip_disable "MSIE [1-6]\.";
|
|
|
|
|
|
location / {
|
|
|
- proxy_pass http://$ftp1;
|
|
|
+ proxy_pass http://cssyunwei.sinexcel.com:21;
|
|
|
proxy_set_header Host $host;
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
}
|
|
|
- upstream ftp1 {
|
|
|
- server cssyunwei.sinexcel.com:21;
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
server {
|
|
|
listen 10122;
|
|
|
- server_name ftp2;
|
|
|
+ server_name 120.78.184.165;
|
|
|
|
|
|
#charset koi8-r;
|
|
|
access_log /var/log/nginx/host.access.log main;
|
|
@@ -103,12 +97,9 @@ server {
|
|
|
gzip_disable "MSIE [1-6]\.";
|
|
|
|
|
|
location / {
|
|
|
- proxy_pass http://$ftp2;
|
|
|
+ proxy_pass http://120.78.184.165:21;
|
|
|
proxy_set_header Host $host;
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
}
|
|
|
- upstream ftp2 {
|
|
|
- server 120.78.184.165:21;
|
|
|
- }
|
|
|
}
|