Mercurial > hg > nginx-site
comparison xml/en/docs/http/ngx_http_ssl_module.xml @ 801:b95a6d779c89
Documented that "listen ... ssl" is preferred over "ssl on".
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Thu, 27 Dec 2012 17:16:39 +0000 |
parents | cd581dbdaf76 |
children | 4fecf0715bbf |
comparison
equal
deleted
inserted
replaced
800:015981070efd | 801:b95a6d779c89 |
---|---|
8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> | 8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> |
9 | 9 |
10 <module name="Module ngx_http_ssl_module" | 10 <module name="Module ngx_http_ssl_module" |
11 link="/en/docs/http/ngx_http_ssl_module.html" | 11 link="/en/docs/http/ngx_http_ssl_module.html" |
12 lang="en" | 12 lang="en" |
13 rev="5"> | 13 rev="6"> |
14 | 14 |
15 <section id="summary"> | 15 <section id="summary"> |
16 | 16 |
17 <para> | 17 <para> |
18 The <literal>ngx_http_ssl_module</literal> module provides the | 18 The <literal>ngx_http_ssl_module</literal> module provides the |
66 http { | 66 http { |
67 | 67 |
68 ... | 68 ... |
69 | 69 |
70 server { | 70 server { |
71 listen 443; | 71 listen 443 ssl; |
72 <emphasis>keepalive_timeout 70;</emphasis> | 72 <emphasis>keepalive_timeout 70;</emphasis> |
73 | 73 |
74 ssl on; | |
75 ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2; | 74 ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2; |
76 ssl_ciphers AES128-SHA:AES256-SHA:RC4-SHA:DES-CBC3-SHA:RC4-MD5; | 75 ssl_ciphers AES128-SHA:AES256-SHA:RC4-SHA:DES-CBC3-SHA:RC4-MD5; |
77 ssl_certificate /usr/local/nginx/conf/cert.pem; | 76 ssl_certificate /usr/local/nginx/conf/cert.pem; |
78 ssl_certificate_key /usr/local/nginx/conf/cert.key; | 77 ssl_certificate_key /usr/local/nginx/conf/cert.key; |
79 <emphasis>ssl_session_cache shared:SSL:10m;</emphasis> | 78 <emphasis>ssl_session_cache shared:SSL:10m;</emphasis> |
95 <context>http</context> | 94 <context>http</context> |
96 <context>server</context> | 95 <context>server</context> |
97 | 96 |
98 <para> | 97 <para> |
99 Enables the HTTPS protocol for the given virtual server. | 98 Enables the HTTPS protocol for the given virtual server. |
99 <note> | |
100 It is recommended to use the <literal>ssl</literal> parameter of the | |
101 <link doc="ngx_http_core_module.xml" id="listen"/> directive instead | |
102 of this directive. | |
103 </note> | |
100 </para> | 104 </para> |
101 | 105 |
102 </directive> | 106 </directive> |
103 | 107 |
104 | 108 |