Nginx http to https upgrade

Is the difference between http and https

Some sites, http opened, page prompts insecurity, such as you click on the website below http://www.511easy.com/bug/login 

 

How can I get rid of this insecurity prompted it? Upgrading from http to https chant

Look at the final results:

 

 

If you currently have a website, how to upgrade it to https

Domain Name: 511easy.com

There you can apply for a domain name for free ssl certificate, the following screenshot, each certificate-based Web server, I was here with Nginx

It would then need to configure nginx.conf configuration, and probably with the following third, the first two that I use to save.

 http and https compared to more secure, not at all, with jmeter / charles / wireshark / fiddle, etc., to generate a certificate on https sites can be easily Ethereal

		upstream tomcatserver1 {
			server 127.0.0.1:8083;
			}
		upstream tomcatserver2 {
			server 127.0.0.1:8085;
			}
			
			
			
	server {
			listen       80;
			server_name  511easy.com;
	 
	 
			location / {
				proxy_pass   http://tomcatserver1;
				index  index.html index.htm;
			}     
		}
	server {
			listen       80;
			server_name  511easy.com;
	  
			location / {
				proxy_pass   http://tomcatserver2;
				index  index.html index.htm;
			}        
		}

  

worker_processes  1;

events {
    worker_connections  1024;
}


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

	sendfile        on;

    keepalive_timeout  65;

    server {
        listen       80;
        server_name  88bugs;
		location / {
            proxy_pass http://localhost:8083;
        }
     }

	server {
        listen       80;
        server_name  jenkins;
		location / {
            proxy_pass http://localhost:8080;
        }
     }
}

  

 

worker_processes  1;

events {
    worker_connections  1024;
}


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

	sendfile        on;

    keepalive_timeout  65;

 
	 server { 
	 listen 443 ssl; 
	 server_name www.511easy.com; 
	 
	 ssl 					on; 
	 ssl_certificate 		1_511easy.com_bundle.crt; 
	 ssl_certificate_key 	        2_511easy.com.key; 
	 ssl_session_timeout 	5m; 
		 
	 location / {
            proxy_pass http://localhost:8083;
        }
 
	 }
}

  

Guess you like

Origin www.cnblogs.com/qianjinyan/p/10964545.html