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