English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Directory location:
/usr/local/www/nginx/conf (for reference only)
server { listen 443 ssl; server_name localhost; ssl_certificate server.crt; # cert.pem; ssl_certificate_key server.key; # cert.key; ssl_session_cache shared:SSL:1m; ssl_session_timeout 5m; ssl_ciphers HIGH:!aNULL:!MD5; ssl_prefer_server_ciphers on; location / { root /home/share; autoindex on; index index.html index.htm; } }
The above is the company server
After checking that the configuration file is correct, reload Nginx
nginx -t && nginx -s reload 1 listen 443; Listen443Port 2 ssl on; Enable SSL module 3 ssl_protocols SSLv2 SSLv3 TLSv1; Specify SSL protocol used 4 ssl_ciphers HIGH:!aNULL:!MD5; Specify encryption method 5 ssl_prefer_server_ciphers on; Configure dependency on SSLv3and TLSv1The server password of the protocol takes precedence over the client password 6 ssl_session_timeout 10m; Set session timeout time 7 ssl_certificate xxx.cer; Configure the certificate 8 ssl_certificate_key xxx.key; Configure the key
The above article 'Nginx server configuration HTTPS nginx.config configuration file (Tutorial)' is all the content shared by the editor. I hope it can serve as a reference for everyone, and I also hope everyone will support the Yelling Tutorial more.
Statement: The content of this article is from the Internet, and the copyright belongs to the original author. The content is contributed and uploaded by Internet users spontaneously. This website does not own the copyright, has not been manually edited, and does not assume relevant legal liability. If you find any content suspected of copyright infringement, please send an email to: notice#oldtoolbag.com (Please replace # with @ when sending an email for reporting, and provide relevant evidence. Once verified, this site will immediately delete the content suspected of infringement.)