http://my.oschina.net/scriptboy/blog/78503
./configure
--with-ipv6 --with-http_ssl_module --without-http_gzip_module --without-http_ssi_module --without-http_userid_module \
--without-http_access_module --without-http_auth_basic_module --without-http_geo_module \
--without-http_map_module --without-http_split_clients_module --without-http_referer_module \
--without-http_proxy_module \
--without-http_memcached_module --without-http_upstream_ip_hash_module --without-mail_pop3_module \
--without-mail_imap_module --without-mail_smtp_module --without-http_uwsgi_module --without-http_scgi_module
支持ipv6:
listen [::]:80;
ssl{
openssl genrsa -des3 -out ca.key 2048
openssl req -new -x509 -days 7305 -key ca.key -out ca.crt
openssl rsa -in ca.key -out server.key #nginx免密码SSL
}