123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181 |
- #user nobody;
- worker_processes 1;
-
- #error_log logs/error.log;
- #error_log logs/error.log notice;
- #error_log logs/error.log info;
-
- pid logs/nginx.pid;
-
-
- events {
- worker_connections 1024;
- }
-
-
- http {
- include mime.types;
- default_type application/octet-stream;
-
- server_names_hash_bucket_size 128;
- client_header_buffer_size 32k;
- large_client_header_buffers 4 32k;
- client_max_body_size 1024m;
- client_body_buffer_size 10m;
- sendfile on;
- tcp_nopush on;
- keepalive_timeout 120;
- server_tokens off;
- tcp_nodelay on;
- fastcgi_connect_timeout 300;
- fastcgi_send_timeout 300;
- fastcgi_read_timeout 300;
- fastcgi_buffer_size 64k;
- fastcgi_buffers 4 64k;
- fastcgi_busy_buffers_size 128k;
- fastcgi_temp_file_write_size 128k;
- fastcgi_intercept_errors on;
- #Gzip Compression
- gzip on;
- gzip_buffers 16 8k;
- gzip_comp_level 6;
- gzip_http_version 1.1;
- gzip_min_length 256;
- gzip_proxied any;
- gzip_vary on;
- gzip_types
- text/xml application/xml application/atom+xml application/rss+xml application/xhtml+xml image/svg+xml
- text/javascript application/javascript application/x-javascript
- text/x-json application/json application/x-web-app-manifest+json
- text/css text/plain text/x-component
- font/opentype application/x-font-ttf application/vnd.ms-fontobject
- image/x-icon;
- gzip_disable "MSIE [1-6]\.(?!.*SV1)";
- 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 /var/log/nginx/access.log main;
- #gzip on;
-
-
- server {
- listen 80;
- server_name localhost;
-
- proxy_buffer_size 1024k;
- proxy_buffers 16 1024k;
- proxy_busy_buffers_size 2048k;
- proxy_temp_file_write_size 2048k;
-
- location / {
- index index.html index.htm;
- }
- ## 苏南api
- location /industryParkApi {
- proxy_pass http://127.0.0.1:9012/;
- }
-
- ## 苏南web
- location /industryPark {
- proxy_pass http://127.0.0.1:8080/industryPark;
- }
-
- ## 苏南管理
- location /industryParkApp {
- proxy_pass http://127.0.0.1:8080/industryParkApp;
- }
-
- ## 苏南官网
- location /sunanWebsite {
- proxy_pass http://127.0.0.1:8080/sunanWebsite;
- }
-
- ## 苏南小程序验证文件
- location /V3WtBEtsEL.txt {
- alias /home/file/V3WtBEtsEL.txt;
- }
- }
-
-
-
- # server {
- # listen 443 ssl;
- # server_name lifeline.idea-sf.com;
- #
- # proxy_buffer_size 50m;
- # proxy_buffers 16 50m;
- # proxy_busy_buffers_size 100m;
- # proxy_temp_file_write_size 100m;
- #
- # #root html;
- # index index.html index.htm;
- # ssl_certificate cert/lifeline.idea-sf.com.pem; #需要将cert-file-name.pem替换成已上传的证书文件的名称。
- # ssl_certificate_key cert/lifeline.idea-sf.com.key; #需要将cert-file-name.key替换已上传的证书密钥文件的名称。
- # ssl_session_timeout 5m;
- # ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
- # ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
- # ssl_prefer_server_ciphers on;
- # location /home {
- # index index.html index.htm;
- # proxy_pass http://10.206.0.16:9091/;
- # }
- # location / {
- # index index.html index.htm;
- # proxy_pass http://10.206.0.16:9092;
- # }
- # location /zhjg {
- # alias /home/projects/zhjg/dist;
- # index index.html index.htm;
- # }
- # location /homeH5 {
- # index index.html index.htm;
- # proxy_pass http://10.206.0.16:9098/homeH5;
- # }
- # # location ^~/api/ {
- # # proxy_pass http://127.0.0.1:7777;
- # # }
- #
- # location ^~/api/ {
- # root html;
- # index index.html index.htm;
- # proxy_pass http://localhost:7777;
- # }
- #
- # location /pdf {
- # alias /home/project/idea_home/upload; # 指定实际目录绝对路径
- # autoindex on; # 开启目录浏览功能
- # }
- #
- # location /ganqApi {
- # root html;
- # index index.html index.htm;
- # proxy_pass http://10.206.0.16:9101/;
- # }
- #
- # location /ganq {
- # root html;
- # index index.html index.htm;
- # proxy_pass http://10.206.0.16:8080/ganq;
- # }
- #
- # # 生命线
- # location /lifelineApi {
- # root html;
- # index index.html index.htm;
- # proxy_pass http://10.206.0.16:9001/;
- # }
- #
- # location /lifeline {
- # root html;
- # index index.html index.htm;
- # proxy_pass http://10.206.0.16:8080/lifeline;
- # }
- # }
- }
|