# For more information on configuration, see: # * Official English Documentation: http://nginx.org/en/docs/ # * Official Russian Documentation: http://nginx.org/ru/docs/ user nginx; worker_processes auto; error_log /var/log/nginx/error.log; pid /var/run/nginx.pid; # Load dynamic modules. See /usr/share/nginx/README.dynamic. include /usr/share/nginx/modules/*.conf; events { worker_connections 1024; } http { 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; access_log off; sendfile on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 65; types_hash_max_size 2048; include /etc/nginx/mime.types; default_type application/octet-stream; # Load modular configuration files from the /etc/nginx/conf.d directory. # See http://nginx.org/en/docs/ngx_core_module.html#include # for more information. # include /etc/nginx/conf.d/*.conf; server { listen 443; default_type 'text/html'; charset utf-8; server_name wwjres.haowan823.cn; #填写绑定证书的域名 sendfile on; autoindex off; autoindex_exact_size off; autoindex_localtime on; ssl on; ssl_certificate ./sslkey/wwjres.haowan823.cn_bundle.crt; ssl_certificate_key ./sslkey/wwjres.haowan823.cn.key; ssl_session_timeout 5m; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; #按照这个协议配置 ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;#按照这个套件配置 ssl_prefer_server_ciphers on; location / { if ($request_method = 'OPTIONS') { add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; add_header 'Access-Control-Max-Age' 86400; add_header 'Content-Type' 'text/plain charset=UTF-8'; add_header 'Content-Length' 0; } if ($request_method = 'GET') { add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; add_header 'Access-Control-Allow-Headers' 'User-Agent,X-Requested-With,Cache-Control,Content-Type'; } #if ($request_filename ~* ^.*?\.(apk|pdf|doc|xls)$){ #add_header 'Content-Disposition' 'attachment'; #} if ($request_filename ~* ^.*?\.(txt1|apk)$){ add_header Content-Disposition: 'attachment'; add_header Content-Type application/octet-stream; } root /data/www/; index index.html index.htm; } location ~ ^/apk1 { if ($request_filename ~* ^.*?.(txt1|apk)$){ add_header Content-Disposition: 'attachment'; add_header Content-Type application/octet-stream; } root /data/www/apk1/; } } server { listen 7010; default_type 'text/html'; charset utf-8; server_name csdj2.haowan823.cn; #填写绑定证书的域名 autoindex on; autoindex_exact_size off; autoindex_localtime on; ssl on; ssl_certificate /data/ssl/nginx/1_csdj2.haowan823.cn_bundle.crt; ssl_certificate_key /data/ssl/nginx/2_csdj2.haowan823.cn.key; ssl_session_timeout 5m; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; #按照这个协议配置 ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;#按照这个套件配置 ssl_prefer_server_ciphers on; location / { if ($request_method = 'OPTIONS') { add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; add_header 'Access-Control-Max-Age' 86400; add_header 'Content-Type' 'text/plain charset=UTF-8'; add_header 'Content-Length' 0; } if ($request_method = 'GET') { add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; add_header 'Access-Control-Allow-Headers' 'User-Agent,X-Requested-With,Cache-Control,Content-Type'; } root /data/www/xyxh5/csjd_vlion/; index index.html index.htm; } } server { listen 7107; default_type 'text/html'; charset utf-8; server_name csdj2.haowan823.cn; #填写绑定证书的域名 autoindex on; autoindex_exact_size off; autoindex_localtime on; ssl on; ssl_certificate /data/ssl/nginx/1_csdj2.haowan823.cn_bundle.crt; ssl_certificate_key /data/ssl/nginx/2_csdj2.haowan823.cn.key; ssl_session_timeout 5m; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; #按照这个协议配置 ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;#按照这 ssl_prefer_server_ciphers on; location / { if ($request_method = 'OPTIONS') { add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; add_header 'Access-Control-Max-Age' 86400; add_header 'Content-Type' 'text/plain charset=UTF-8'; add_header 'Content-Length' 0; } if ($request_method = 'GET') { add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; add_header 'Access-Control-Allow-Headers' 'User-Agent,X-Requested-With,Cache-Control,Content-Type'; } root /data/www/xyxh5/mrzjz_no/; index index.html index.htm; } } server { listen 7140; default_type 'text/html'; charset utf-8; server_name csdj2.haowan823.cn; #填写绑定证书的域名 autoindex on; autoindex_exact_size off; autoindex_localtime on; ssl on; ssl_certificate /data/ssl/nginx/1_csdj2.haowan823.cn_bundle.crt; ssl_certificate_key /data/ssl/nginx/2_csdj2.haowan823.cn.key; ssl_session_timeout 5m; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; #按照这个协议配置 ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;#按照这 ssl_prefer_server_ciphers on; location / { if ($request_method = 'OPTIONS') { add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; add_header 'Access-Control-Max-Age' 86400; add_header 'Content-Type' 'text/plain charset=UTF-8'; add_header 'Content-Length' 0; } if ($request_method = 'GET') { add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; add_header 'Access-Control-Allow-Headers' 'User-Agent,X-Requested-With,Cache-Control,Content-Type'; } root /data/www/xyxh5/mb3d_h5/; index index.html index.htm; } } server { listen 7150; default_type 'text/html'; charset utf-8; server_name csdj2.haowan823.cn; #填写绑定证书的域名 autoindex on; autoindex_exact_size off; autoindex_localtime on; ssl on; ssl_certificate /data/ssl/nginx/1_csdj2.haowan823.cn_bundle.crt; ssl_certificate_key /data/ssl/nginx/2_csdj2.haowan823.cn.key; ssl_session_timeout 5m; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; #按照这个协议配置 ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;#按照这 ssl_prefer_server_ciphers on; location / { if ($request_method = 'OPTIONS') { add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; add_header 'Access-Control-Max-Age' 86400; add_header 'Content-Type' 'text/plain charset=UTF-8'; add_header 'Content-Length' 0; } if ($request_method = 'GET') { add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; add_header 'Access-Control-Allow-Headers' 'User-Agent,X-Requested-With,Cache-Control,Content-Type'; } root /data/www/xyxh5/mb3d_h5_4399/; index index.html index.htm; } } server { listen 7160; default_type 'text/html'; charset utf-8; server_name csdj2.haowan823.cn; #填写绑定证书的域名 autoindex on; autoindex_exact_size off; autoindex_localtime on; ssl on; ssl_certificate /data/ssl/nginx/1_csdj2.haowan823.cn_bundle.crt; ssl_certificate_key /data/ssl/nginx/2_csdj2.haowan823.cn.key; ssl_session_timeout 5m; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; #按照这个协议配置 ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;#按照这 ssl_prefer_server_ciphers on; location / { if ($request_method = 'OPTIONS') { add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; add_header 'Access-Control-Max-Age' 86400; add_header 'Content-Type' 'text/plain charset=UTF-8'; add_header 'Content-Length' 0; } if ($request_method = 'GET') { add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; add_header 'Access-Control-Allow-Headers' 'User-Agent,X-Requested-With,Cache-Control,Content-Type'; } root /data/www/xyxh5/mb3d_h5_4399_test/; index index.html index.htm; } } server { listen 7170; default_type 'text/html'; charset utf-8; server_name xxwzh5.haowan823.cn; #填写绑定证书的域名 autoindex on; autoindex_exact_size off; autoindex_localtime on; ssl on; ssl_certificate /data/ssl/nginxh5/1_xxwzh5.haowan823.cn_bundle.crt; ssl_certificate_key /data/ssl/nginxh5/2_xxwzh5.haowan823.cn.key; ssl_session_timeout 5m; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; #按照这个协议配置 ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;#按照这 ssl_prefer_server_ciphers on; location / { if ($request_method = 'OPTIONS') { add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; add_header 'Access-Control-Max-Age' 86400; add_header 'Content-Type' 'text/plain charset=UTF-8'; add_header 'Content-Length' 0; } if ($request_method = 'GET') { add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; add_header 'Access-Control-Allow-Headers' 'User-Agent,X-Requested-With,Cache-Control,Content-Type'; } root /data/www/xyxh5/mb3d_h5_4399/; index index.html index.htm; } } }