123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- server {
- listen 80;
- server_name localhost;
- #charset koi8-r;
- access_log /var/log/nginx/host.access.log main;
- gzip on;
- gzip_min_length 1k;
- gzip_buffers 4 16k;
- gzip_comp_level 8;
- gzip_types text/plain application/javascript application/x-javascript text/css application/json text/javascript application/x-httpd-php image/jpeg image/gif image/png;
- gzip_vary off;
- gzip_disable "MSIE [1-6]\.";
- location / {
- root /usr/share/nginx/html;
- try_files $uri $uri/ /index.html;
- index start.html index.html;
- }
-
- location /api {
- proxy_read_timeout 300;
- proxy_pass http://192.168.3.251:8080;
- }
- # location /ws {
- # proxy_read_timeout 300;
- # proxy_pass http://192.168.3.177:8080/ws;
- # }
- # proxy the PHP scripts to Apache listening on 127.0.0.1:80
-
- # location /api {
- # proxy_pass http://api-server:8082;
- # }
- }
- server {
- listen 10166;
- server_name backend;
- #charset koi8-r;
- access_log /var/log/nginx/host.access.log main;
- gzip on;
- gzip_min_length 1k;
- gzip_buffers 4 16k;
- gzip_comp_level 8;
- gzip_types text/plain application/javascript application/x-javascript text/css application/json text/javascript application/x-httpd-php image/jpeg image/gif image/png;
- gzip_vary off;
- gzip_disable "MSIE [1-6]\.";
- location / {
- proxy_pass http://$backend;
- 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;
- #charset koi8-r;
- access_log /var/log/nginx/host.access.log main;
- gzip on;
- gzip_min_length 1k;
- gzip_buffers 4 16k;
- gzip_comp_level 8;
- gzip_types text/plain application/javascript application/x-javascript text/css application/json text/javascript application/x-httpd-php image/jpeg image/gif image/png;
- gzip_vary off;
- gzip_disable "MSIE [1-6]\.";
- location / {
- proxy_pass http://$ftp1;
- 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;
- #charset koi8-r;
- access_log /var/log/nginx/host.access.log main;
- gzip on;
- gzip_min_length 1k;
- gzip_buffers 4 16k;
- gzip_comp_level 8;
- gzip_types text/plain application/javascript application/x-javascript text/css application/json text/javascript application/x-httpd-php image/jpeg image/gif image/png;
- gzip_vary off;
- gzip_disable "MSIE [1-6]\.";
- location / {
- proxy_pass http://$ftp2;
- 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;
- }
- }
|