server {
listen ;
listen ssl;
server_name localhost;
#ssl on;
ssl_certificate /usr/local/Tengine/sslcrt/linuxyan.com.crt;
ssl_certificate_key /usr/local/Tengine/sslcrt/linuxyan.com.key;
}
把ssl on这行注释掉,ssl写在443端口后面。这样http和https的链接都可以用
server {
listen ;
listen ssl;
server_name localhost;
#ssl on;
ssl_certificate /usr/local/Tengine/sslcrt/linuxyan.com.crt;
ssl_certificate_key /usr/local/Tengine/sslcrt/linuxyan.com.key;
}
把ssl on这行注释掉,ssl写在443端口后面。这样http和https的链接都可以用