https base port 443. It is used for something called a key. Don't think you can do it without understanding these things. It's impossible. 1. Generate the key first. Let's generate it directly under Linux, assuming that the nginx directory is /usr/local/nginx-1.2.9 Next Steps
2. In the second step, let's build a site. The configuration file is as follows. (If you don't know how to write a configuration file, you can refer to this forum) server { listen 443; ssl on; #Note the path and file extension ssl_certificate /usr/local/nginx-1.2.9/conf/ssl/server.crt; ssl_certificate_key /usr/local/nginx-1.2.9/conf/ssl/server.key; server_name domain name; root website root directory; location / { index index.html index.php; } #Support PHP location ~ \.php{ include fastcgi_params; fastcgi_split_path_info ^(.+\.php)(.*)$; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; } } OK, restart nginx with nginx -s reload and see. You can access it using https The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: Javascript to achieve the drag effect of the login box
>>: Html easily implements rounded rectangle
mysql dirty pages Due to the WAL mechanism, when ...
Rendering After looking up relevant information o...
Preface The general methods are not listed here, ...
Table of contents 0x0 Introduction 0x1 RBAC Imple...
Table of contents 1. Always use key in v-for loop...
1. When the width of the adjacent floating layer o...
Table of contents 1. MHA 1. Concept 2. Compositio...
This article shares the specific code of JavaScri...
Database stored procedures DROP PROCEDURE IF EXIS...
Note: This article has been translated by someone ...
1. Install tomcat8 with docker 1. Find the tomcat...
I've been playing with the remote development...
1. Go to the GraphVis official website to downloa...
1. Application of multimedia in HTML_falsh animat...
Simply pull the image, create a container and run...