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
After setting the table width in the page to width...
This article shares the specific code of JavaScri...
Table of contents 1. Introduction 2. Detailed exp...
<br />How can I remove the scroll bar on the...
Table of contents Overview 1. RangeError 2. Refer...
When connecting to the local database, navicat fo...
Copy code The code is as follows: <iframe id=&...
Browser compatibility is nothing more than style ...
Preface Tomcat is an excellent Java container, bu...
In general applications, we use timestamp, dateti...
Table of contents 1. What is 2. Use Numeric Enume...
<br />Original text: http://www.mikkolee.com...
When you log in to MySQL remotely, the account yo...
The mini program implements a complete shopping c...
Port 80 is also configured. First enter the firew...