In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
The difference between http and https is
For some websites, when http opens, the page indicates that it is not safe, for example, if you click on the website below [it is actually the same website]
Http://www.511easy.com/bug/login
Http://www.88bugs.com/bug/login
How can I get rid of this unsafe hint? Upgrade from http to https.
Take a look at the final effect:
If there is a website at present, how to upgrade to https?
Domain name: 511easy.com
If you have a domain name, you can apply for a free ssl certificate. The screenshot below is based on the certificate of each Web server. I use Nginx here.
Then you need to configure the nginx.conf configuration, probably using the third one below, the first two of which I used to save.
Compared with http, https is more secure, not necessarily, using jmeter/charles/wireshark/fiddle, etc., to generate a certificate, https websites can easily grab packages, most websites and app, I can grab packages
Upstream tomcatserver1 {server 127.0.0.1 upstream tomcatserver2 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 1room511easy.comeasy.crt; ssl_certificate_key 511easy.com.key; ssl_session_timeout 5m; location / {proxy_pass http://localhost:8083;}
Consolidate the meaning of these abbreviated nouns
HTTP-Hyper Text Transfer Protocol, Hypertext transfer Protocol, is a stateless connection established on TCP. The whole basic workflow is for the client to send a HTTP request.
HTTPS-Hyper Text Transfer Protocol over Secure Socket Layer or Hypertext Transfer Protocol Secure
The full name is: hypertext secure transfer Protocol, which can be simply understood as the HTTP protocol that uses SSL encryption to transmit.
The default port of HTTP is 80th HTTPS, and the default port of HTTPS is 443.
SSL is a security protocol that provides security and data integrity for network communication.
Why use HTTPS
In order to protect the security of information transmission, data integrity. Let visitors feel that the website can be trusted, and for the domestic network environment, it can also prevent broadband operators from putting up advertisements on the website.
If you want two ports on a server to execute different ports with unused domain names, Nginx can be configured like this
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.88bugs.com; ssl_certificate 1room88bugs.com.crt; ssl_certificate_key 2fol88bugs.com.key; ssl_session_timeout 5m; location / {proxy_pass http://localhost:8083;}} server {listen 443 ssl Server_name www.511easy.com; ssl_certificate 511easy.comedibundle.crt; ssl_certificate_key 511easy.com.key; ssl_session_timeout 5m; location / {proxy_pass http://localhost:8085;}
Https://www.88bugs.com/bug/login
Https://www.511easy.com/ [currently modified to point to another port project]
Summary
The above is the whole content of this article. I hope the content of this article has a certain reference and learning value for everyone's study or work. Thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.