user root; worker_processes 8; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; #pid logs/nginx.pid; worker_rlimit_nofile 204800; events { use epoll; worker_connections 204800; } http { include mime.types; default_type application/octet-stream; client_max_body_size 100m; #log_format main '$remote_addr - $remote_user [$time_local] "$request" ' # '$status $body_bytes_sent "$http_referer" ' # '"$http_user_agent" "$http_x_forwarded_for"'; #access_log logs/access.log main; sendfile on; #tcp_nopush on; #keepalive_timeout 0; keepalive_timeout 65; #gzip on; fastcgi_buffers 8 128K; fastcgi_buffer_size 128K; proxy_buffer_size 128k; proxy_buffers 32 256k; proxy_busy_buffers_size 256k; send_timeout 900s; #proxy_connect_timeout 900s; #proxy_send_timeout 900s; #proxy_read_timeout 900s; fastcgi_connect_timeout 900s; fastcgi_send_timeout 900s; fastcgi_read_timeout 900s; upstream webserver { #ip_hash; server 172.16.32.240:4444 weight=5 max_fails=2 fail_timeout=60; #server 172.16.32.65:4444 weight=5 max_fails=2 fail_timeout=30; } upstream webservernew { ip_hash; server 172.16.32.240:5555 weight=5 max_fails=2 fail_timeout=30; server 172.16.32.65:5555 weight=5 max_fails=2 fail_timeout=30; } ########云构平台############ upstream ccpwebserver { ip_hash; server 172.16.32.65:6666 weight=5 max_fails=2 fail_timeout=30; server 172.16.32.240:6666 weight=5 max_fails=2 fail_timeout=30; } ########云构平台############ upstream datacenterserver{ ip_hash; server 172.16.32.65:7777 weight=5 max_fails=2 fail_timeout=30; server 172.16.32.240:7777 weight=5 max_fails=2 fail_timeout=30; } server { listen 80; charset utf-8; server_name vbim.vanke.com; location / { root /home/vkapp/webdata/old_vbim; index index.html index.htm; } location /vanke-vbim-api { root html; index index.html index.htm; proxy_pass http://webserver/vanke-vbim-api; } location /vanke-vbim-users { root html; index index.html index.htm; proxy_pass http://webserver/vanke-vbim-users; } location /vanke-vbim-design-examine { root html; index index.html index.htm; proxy_pass http://webserver/vanke-vbim-design-examine; } location /vanke-vbim-quality { root html; index index.html index.htm; proxy_pass http://webserver/vanke-vbim-quality; } location /vanke-vbim-designsyn { root html; index index.html index.htm; proxy_pass http://webserver/vanke-vbim-designsyn; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_connect_timeout 1800s; proxy_send_timeout 1800s; proxy_read_timeout 1800s; send_timeout 1800s; proxy_buffer_size 128k; proxy_buffers 32 256k; proxy_busy_buffers_size 256k; } location /uploadserver { root html; index index.html index.htm; proxy_pass http://webserver/uploadserver; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_connect_timeout 1800s; proxy_send_timeout 1800s; proxy_read_timeout 1800s; send_timeout 1800s; proxy_buffer_size 128k; proxy_buffers 32 256k; proxy_busy_buffers_size 256k; } location /vanke-vbim-webservice { root html; index index.html index.htm; proxy_pass http://webserver/vanke-vbim-webservice; } location /bimplus-checkToolServer { root html; index index.html index.htm; proxy_pass http://webserver/bimplus-checkToolServer; } } ###########################云构平台################## # server # { # listen 8082; # charset utf-8; # server_name ccc.vanke.com; # location / { # root /home/vkapp/webdata/vbim_ccp; # index index.html index.htm; # } # location /user-orgAuthServer { # root html; # index index.html index.htm; # proxy_pass http://ccpwebserver/user-orgAuthServer; # } # location /user-postAuthServer { # root html; # index index.html index.htm; # proxy_pass http://ccpwebserver/user-postAuthServer; # } # location /user-userAuthServer { # root html; # index index.html index.htm; # proxy_pass http://ccpwebserver/user-userAuthServer; # } # location /componentlib-server { # root html; # index index.html index.htm; # proxy_pass http://ccpwebserver/componentlib-server; # } # location /uploadserver { # root html; # index index.html index.htm; # proxy_pass http://ccpwebserver/uploadserver; # } # } ###########################云构平台################## ###########################云构平台 80################## server { listen 80; charset utf-8; server_name ccc.vanke.com; location / { root /home/vkapp/webdata/vbim_ccp; index index.html index.htm; } location /user-orgAuthServer { root html; index index.html index.htm; proxy_pass http://ccpwebserver/user-orgAuthServer; } location /user-postAuthServer { root html; index index.html index.htm; proxy_pass http://ccpwebserver/user-postAuthServer; } location /user-userAuthServer { root html; index index.html index.htm; proxy_pass http://ccpwebserver/user-userAuthServer; } location /componentlib-server { root html; index index.html index.htm; proxy_pass http://ccpwebserver/componentlib-server; } location /uploadserver { root html; index index.html index.htm; proxy_pass http://ccpwebserver/uploadserver; } location /websocket { proxy_pass http://172.16.32.149:8021/messagepush/websocket/; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Host $Server_name; proxy_connect_timeout 4s; proxy_read_timeout 36000s; proxy_send_timeout 36000s; } } ###########################云构平台################## ###########################云构平台 443################## server { listen 443 ssl; charset utf-8; server_name ccc.vanke.com; ssl_certificate /home/vkapp/webdata/SSL/_.vanke.com.crt; ssl_certificate_key /home/vkapp/webdata/SSL/_.vanke.com.key; ssl_session_cache shared:SSL:1m; ssl_session_timeout 5m; fastcgi_param HTTPS on; fastcgi_param HTTP_SCHEME https; server_tokens off; location / { root /home/vkapp/webdata/vbim_ccp; index index.html index.htm; } location /user-orgAuthServer { root html; index index.html index.htm; proxy_pass http://ccpwebserver/user-orgAuthServer; } location /user-postAuthServer { root html; index index.html index.htm; proxy_pass http://ccpwebserver/user-postAuthServer; } location /user-userAuthServer { root html; index index.html index.htm; proxy_pass http://ccpwebserver/user-userAuthServer; } location /componentlib-server { root html; index index.html index.htm; proxy_pass http://ccpwebserver/componentlib-server; } location /uploadserver { root html; index index.html index.htm; proxy_pass http://ccpwebserver/uploadserver; } } ###########################云构平台################## ###########################管理中心 80################## server { listen 80; charset utf-8; server_name plm.vanke.com; location /pcLogin { alias /home/vkapp/webdata/vbim_pc/; index index.html index.htm; } location /vbim-pcServer { root html; index index.html index.htm; proxy_pass http://webservernew/vbim-pcServer; } location / { root /home/vkapp/webdata/vbim_bcm; index index.html index.htm; } location /user-orgAuthServer { root html; index index.html index.htm; proxy_pass http://webservernew/user-orgAuthServer; } location /user-postAuthServer { root html; index index.html index.htm; proxy_pass http://webservernew/user-postAuthServer; } location /user-userAuthServer { root html; index index.html index.htm; proxy_pass http://webservernew/user-userAuthServer; } location /browser-componentServer { root html; index index.html index.htm; proxy_pass http://webservernew/browser-componentServer; } location /browser-modelServer { root html; index index.html index.htm; proxy_pass http://webservernew/browser-modelServer; } location /browser-projectServer { root html; index index.html index.htm; proxy_pass http://webservernew/browser-projectServer; } location /vbim-appApiServer { root html; index index.html index.htm; proxy_pass http://webservernew/vbim-appApiServer; } location /filecenter { root /home/vkapp/webdata/vbim_filecenter/; index index.html index.htm; } location /filesystem-server { root html; index index.html index.htm; proxy_pass http://ccpwebserver/filesystem-server; } ##############设计审查##################### location /vanke-vbim-design-examine { root html; index index.html index.htm; proxy_pass http://webservernew/vanke-vbim-design-examine; } location /designLogin { root /home/vkapp/webdata/vbim_design; index index.html index.htm; } ##############设计审查##################### } ###########################管理中心################## ###########################管理中心 443################## server { listen 443; charset utf-8; server_name plm.vanke.com; ssl_certificate /home/vkapp/webdata/SSL/_.vanke.com.crt; ssl_certificate_key /home/vkapp/webdata/SSL/_.vanke.com.key; ssl_session_cache shared:SSL:1m; ssl_session_timeout 5m; fastcgi_param HTTPS on; fastcgi_param HTTP_SCHEME https; server_tokens off; location /pcLogin { root /home/vkapp/webdata/vbim_pc/; index index.html index.htm; } location /vbim-pcServer { root html; index index.html index.htm; proxy_pass http://webservernew/vbim-pcServer; } location / { root /home/vkapp/webdata/vbim_bcm; index index.html index.htm; } location /user-orgAuthServer { root html; index index.html index.htm; proxy_pass http://webservernew/user-orgAuthServer; } location /user-postAuthServer { root html; index index.html index.htm; proxy_pass http://webservernew/user-postAuthServer; } location /user-userAuthServer { root html; index index.html index.htm; proxy_pass http://webservernew/user-userAuthServer; } location /browser-componentServer { root html; index index.html index.htm; proxy_pass http://webservernew/browser-componentServer; } location /browser-modelServer { root html; index index.html index.htm; proxy_pass http://webservernew/browser-modelServer; } location /browser-projectServer { root html; index index.html index.htm; proxy_pass http://webservernew/browser-projectServer; } location /vbim-appApiServer { root html; index index.html index.htm; proxy_pass http://webservernew/vbim-appApiServer; } location /filesystem-server { root html; index index.html index.htm; proxy_pass http://webservernew/filesystem-server; } ##############设计审查##################### location /vanke-vbim-design-examine { root html; index index.html index.htm; proxy_pass http://webservernew/vanke-vbim-design-examine; } location /designLogin { root /home/vkapp/webdata/vbim_design; index index.html index.htm; } ##############设计审查##################### } ###########################管理中心################## ######################DATA-CENTER####################### server { listen 80; charset utf-8; server_name ws.bp.vanke.com; location /vbim-thirdparty-server { root html; index index.html index.htm; proxy_pass http://datacenterserver/vbim-thirdparty-server; } } server { listen 80; charset utf-8; server_name api.bp.vanke.com; location /datacenter-projectserver { root html; index index.html index.htm; proxy_pass http://datacenterserver/datacenter-projectserver; } } server { listen 80; charset utf-8; server_name bp.vanke.com; location / { root /home/vkapp/webdata/vbim_bp; index index.html index.htm; } location /datacenter-projectserver { root html; index index.html index.htm; proxy_pass http://datacenterserver/datacenter-projectserver; } } server { listen 443; charset utf-8; server_name bp.vanke.com; ssl_certificate /home/vkapp/webdata/SSL/_.vanke.com.crt; ssl_certificate_key /home/vkapp/webdata/SSL/_.vanke.com.key; ssl_session_cache shared:SSL:1m; ssl_session_timeout 5m; fastcgi_param HTTPS on; fastcgi_param HTTP_SCHEME https; server_tokens off; location / { root /home/vkapp/webdata/vbim_bp; index index.html index.htm; } location /datacenter-projectserver { root html; index index.html index.htm; proxy_pass http://datacenterserver/datacenter-projectserver; } } server { listen 80; charset utf-8; server_name ge.vanke.com; location / { root /home/vkapp/webdata/vbim_browser_new; index index.html index.htm; } location /user-orgAuthServer { root html; index index.html index.htm; proxy_pass http://webservernew/user-orgAuthServer; } location /user-postAuthServer { root html; index index.html index.htm; proxy_pass http://webservernew/user-postAuthServer; } location /user-userAuthServer { root html; index index.html index.htm; proxy_pass http://webservernew/user-userAuthServer; } location /browser-server { root html; index index.html index.htm; proxy_pass http://webservernew/browser-server; } location /uploadserver { root html; index index.html index.htm; proxy_pass http://webservernew/uploadserver; } } server { listen 443; charset utf-8; server_name ge.vanke.com; ssl_certificate /home/vkapp/webdata/SSL/_.vanke.com.crt; ssl_certificate_key /home/vkapp/webdata/SSL/_.vanke.com.key; ssl_session_cache shared:SSL:1m; ssl_session_timeout 5m; fastcgi_param HTTPS on; fastcgi_param HTTP_SCHEME https; server_tokens off; location / { root /home/vkapp/webdata/vbim_browser_new; index index.html index.htm; } location /user-orgAuthServer { root html; index index.html index.htm; proxy_pass http://webservernew/user-orgAuthServer; } location /user-postAuthServer { root html; index index.html index.htm; proxy_pass http://webservernew/user-postAuthServer; } location /user-userAuthServer { root html; index index.html index.htm; proxy_pass http://webservernew/user-userAuthServer; } location /browser-server { root html; index index.html index.htm; proxy_pass http://webservernew/browser-server; } location /uploadserver { root html; index index.html index.htm; proxy_pass http://webservernew/uploadserver; } } ######################DATA-CENTER####################### }