Copy the certificate and key on the web
Configuration on nginx load balancing server vim /application/nginx/conf/nginx.conf worker_processes 2; error_log logs/error.log; events { worker_connections 65535; } http { include mime.types; default_type application/octet-stream; sendfile on; keepalive_timeout 65; upstream server_pools { server 10.0.0.200:443 weight=1 max_fails=3 fail_timeout=10; #server 10.0.0.8:443 weight=1 max_fails=3 fail_timeout=10; #server 10.0.0.9:443 weight=1 max_fails=3 fail_timeout=10; } server { listen 80; server_name localhost; rewrite ^(.*)$ https://$host$1 permanent; } server { listen 10.0.0.5:443; server_name www.abc.com; #Open https. Note that it should be added in the server block. Do not put ssl on in the http block; ssl_certificate /application/nginx/conf/key/server.crt; ssl_certificate_key /application/nginx/conf/key/server.key; location / { proxy_pass https://server_pools; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $remote_addr; } } } #Check nginx load balancing configuration
#Restart nginx load balancing
Browser access test Note that the hosts to be modified correspond to the IP address information of the load balancing Access Test Visit Results You may also be interested in:
|
<<: Solution to the failure of MySQL to use innobackupex to backup the connection server
>>: Solution to the Chinese garbled characters problem in MySQL under Ubuntu
It's the end of the year and there are fewer ...
React multiple ways to get the value of the input...
Sometimes you need to use links, but you don't...
Server: Ubuntu Server 16.04 LSS Client: Ubuntu 16...
Preface Normally, if we want to delete certain li...
I have just started using react to do projects, a...
XML/HTML CodeCopy content to clipboard < butto...
In the following example, when the width of the td...
The installation tutorial of MySQL 5.7.27 is reco...
Why beautify the file control? Just imagine that a...
Preparation: 192.168.16.128 192.168.16.129 Two vi...
need After the user fills out the form and clicks...
1. Check the character set 1. Check the MYSQL dat...
1. IE browser mode Hack logo 1. CSS hack logo Copy...
1. Disconnection reason There are many reasons wh...