官网
下载windows版,解压到任意目录即可使用。
需要的软件包:
yum install pcre-devel
yum install openssl-devel
./configure --prefix=/opt/nginx-1.6.2 --with-http_ssl_module
make
make install
sbin/nginx [ -s stop|reload ]
server {
listen 443 ssl;
server_name localhost;
ssl_certificate /etc/pki/tls/certs/sv.crt;
ssl_certificate_key /etc/pki/tls/private/sv.key;
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
...
}
阅读(1001) | 评论(0) | 转发(0) |