【NGINX】配置修改方式--https版本

#user nobody;
worker_processes 4;
worker_rlimit_nofile 65535;

#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;

#pid logs/nginx.pid;


events {
worker_connections 4096;
}

 

http {
include mime.types;
default_type application/octet-stream;

#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;


upstream lsam1_2 {
server 192.168.200.2:15601 weight=1 max_fails=1 fail_timeout=30s;
server 192.168.200.3:15601 weight=1 max_fails=1 fail_timeout=30s;
keepalive 32;

}

upstream lsam3_4 {
server 192.168.200.4:15601 weight=1 max_fails=1 fail_timeout=30s;
server 192.168.200.5:15601 weight=1 max_fails=1 fail_timeout=30s;
keepalive 32;
}

upstream lsam5_6 {
server 192.168.200.6:15601 weight=1 max_fails=1 fail_timeout=30s;
server 192.168.200.7:15601 weight=1 max_fails=1 fail_timeout=30s;
keepalive 32;
}

upstream lsam7_8 {
server 192.168.200.8:15601 weight=1 max_fails=1 fail_timeout=30s;
server 192.168.200.9:15601 weight=1 max_fails=1 fail_timeout=30s;
keepalive 32;
}

upstream guangdong {
server 10.188.35.38:15601 weight=1 max_fails=1 fail_timeout=30s;
keepalive 32;
}

upstream xizang {
server 10.184.15.123:15601 weight=1 max_fails=1 fail_timeout=30s;
keepalive 32;
}

upstream chongqing{
server 10.192.141.57:15601 weight=1 max_fails=1 fail_timeout=30s;
keepalive 32;
}

upstream sichuan {
server 10.187.166.102:15601 weight=1 max_fails=1 fail_timeout=30s;
keepalive 32;
}

upstream henan {
server 10.188.186.86:15601 weight=1 max_fails=1 fail_timeout=30s;
keepalive 32;
}

upstream shannxi {
server 10.191.50.150:15601 weight=1 max_fails=1 fail_timeout=30s;
keepalive 32;
}

upstream hunan {
server 10.193.106.25:15601 weight=1 max_fails=1 fail_timeout=30s;
keepalive 32;
}

upstream guangxi {
server 10.187.16.120:15601 weight=1 max_fails=1 fail_timeout=30s;
keepalive 32;
}


server {
listen 15601 ssl;
server_name localhost;
ssl_certificate /utxt/soft/nginx/server.crt;
ssl_certificate_key /utxt/soft/nginx/server.key;
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;

location / {
proxy_pass https://lsam1_2;
proxy_set_header HOST $http_host;

}

error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}

server {
listen 15603 ssl;
server_name localhost;
ssl_certificate /utxt/soft/nginx/server.crt;
ssl_certificate_key /utxt/soft/nginx/server.key;
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;

ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;

location / {
proxy_pass https://lsam1_2;
proxy_set_header HOST $http_host;

}

error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}

server {
listen 15605 ssl;
server_name localhost;
ssl_certificate /utxt/soft/nginx/server.crt;
ssl_certificate_key /utxt/soft/nginx/server.key;
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;

location / {
proxy_pass https://lsam3_4;
proxy_set_header HOST $http_host;
# root html;
# index index.html index.htm;
}

error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}

server {
listen 15607 ssl;
server_name localhost;
ssl_certificate /utxt/soft/nginx/server.crt;
ssl_certificate_key /utxt/soft/nginx/server.key;
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;

ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;

location / {
proxy_pass https://lsam3_4;
proxy_set_header HOST $http_host;
proxy_connect_timeout 600;
proxy_read_timeout 600;
proxy_send_timeout 600;
}

error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}


server {
listen 15609 ssl;
server_name localhost;
ssl_certificate /utxt/soft/nginx/server.crt;
ssl_certificate_key /utxt/soft/nginx/server.key;
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;

location / {
proxy_pass https://lsam5_6;
proxy_set_header HOST $http_host;

}

error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}

server {
listen 15611 ssl;
server_name localhost;
ssl_certificate /utxt/soft/nginx/server.crt;
ssl_certificate_key /utxt/soft/nginx/server.key;
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;

ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;

location / {
proxy_pass https://lsam5_6;
proxy_set_header HOST $http_host;

}

error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}

server {
listen 15613 ssl;
server_name localhost;
ssl_certificate /utxt/soft/nginx/server.crt;
ssl_certificate_key /utxt/soft/nginx/server.key;
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;

location / {
proxy_pass https://lsam7_8;
proxy_set_header HOST $http_host;
# root html;
# index index.html index.htm;
}

error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}

server {
listen 15615 ssl;
server_name localhost;
ssl_certificate /utxt/soft/nginx/server.crt;
ssl_certificate_key /utxt/soft/nginx/server.key;
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;

ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;

location / {
proxy_pass https://lsam7_8;
proxy_set_header HOST $http_host;
proxy_connect_timeout 600;
proxy_read_timeout 600;
proxy_send_timeout 600;
}

error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}

 

server {
listen 15602 ssl;
server_name localhost;
ssl_certificate /utxt/soft/nginx/server.crt;
ssl_certificate_key /utxt/soft/nginx/server.key;
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;

ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;

location / {
proxy_pass https://guangdong;
proxy_set_header HOST $http_host;

}

error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}

server {
listen 15604 ssl;
server_name localhost;

ssl_certificate /utxt/soft/nginx/server.crt;
ssl_certificate_key /utxt/soft/nginx/server.key;
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;

ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;

location / {
proxy_pass https://xizang;
proxy_set_header HOST $http_host;
# root html;
# index index.html index.htm;
}

error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}


server {
listen 15606 ssl;
server_name localhost;

ssl_certificate /utxt/soft/nginx/server.crt;
ssl_certificate_key /utxt/soft/nginx/server.key;
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;

ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;

location / {
proxy_pass https://chongqing;
proxy_set_header HOST $http_host;
# root html;
# index index.html index.htm;
}

error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}

server {
listen 15608 ssl;
server_name localhost;


ssl_certificate /utxt/soft/nginx/server.crt;
ssl_certificate_key /utxt/soft/nginx/server.key;
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;

location / {
proxy_pass https://sichuan;
proxy_set_header HOST 10.193.106.22:15608;
#proxy_set_header HOST $http_host;
proxy_connect_timeout 600;
proxy_read_timeout 600;
proxy_send_timeout 600;
}

error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}

 

server {
listen 15610 ssl;
server_name localhost;
ssl_certificate /utxt/soft/nginx/server.crt;
ssl_certificate_key /utxt/soft/nginx/server.key;
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;

ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;

location / {
proxy_pass https://henan;
proxy_set_header HOST $http_host;

}

error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}

server {
listen 15612 ssl;
server_name localhost;

ssl_certificate /utxt/soft/nginx/server.crt;
ssl_certificate_key /utxt/soft/nginx/server.key;
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;

ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;

location / {
proxy_pass https://shannxi;
proxy_set_header HOST $http_host;
# root html;
# index index.html index.htm;
}

error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}


server {
listen 15614 ssl;
server_name localhost;

ssl_certificate /utxt/soft/nginx/server.crt;
ssl_certificate_key /utxt/soft/nginx/server.key;
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;

ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;

location / {
proxy_pass https://hunan;
proxy_set_header HOST $http_host;
# root html;
# index index.html index.htm;
}

error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}

server {
listen 15616 ssl;
server_name localhost;


ssl_certificate /utxt/soft/nginx/server.crt;
ssl_certificate_key /utxt/soft/nginx/server.key;
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;

location / {
proxy_pass https://guangxi;
proxy_set_header HOST 10.193.106.22:15608;
#proxy_set_header HOST $http_host;
proxy_connect_timeout 600;
proxy_read_timeout 600;
proxy_send_timeout 600;
}

error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}

 

}

posted @ 2022-02-14 17:38  新茶煮酒  阅读(114)  评论(0编辑  收藏  举报