server {html
listen 80 default backlog=2048;linux
listen 443 ssl;spa
server_name linuxyan.com;server
root /var/www/html;htm
ssl_certificate /usr/local/Tengine/sslcrt/linuxyan.com.crt;ssl
ssl_certificate_key /usr/local/Tengine/sslcrt/linuxyan.com.key;端口
}co
把ssl on;这行去掉,ssl写在443端口后面。这样http和https的连接均可以用,完美解决。ps