Setting method of forced HTTPS jump in Apache / nginx server environment

Dazzle Yi Three years ago (2017-09-21) one thousand and twenty-two
 Setting method of forced HTTPS jump in Apache / nginx server environment
Although we have seen all kinds of news or so-called authoritative suggestions, websites are required to enable the HTTPS encryption format, but many large websites have not been started. Of course, the form of HTTPS encryption has advantages, but it can not force all websites to be enabled. For example, simple personal website, in fact, there is no need to use, but it will increase some costs and technical difficulties. In the general web server environment, Apache or nginx environment driver will be adopted, and several scripts can be used to enforce the encryption of HTTP address. Of course, the premise is that we are already serving
Call for istwar