Nginx.conf modified configuration add the following code
Enter the cert
make cert.pem. and fill in the relevant information
Then copy the file to cert.pem user / local go
Then create a file / web
And write
Then check whether the correct rewrite
Page test
Apache achieve the function