server {

    listen 80 default backlog=2048;

    listen 443 ssl;

    server_name linuxyan.com;

    root /var/www/html;

    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的链接都可以用,完美解决。

相关文章:

  • 2021-05-02
  • 2022-12-23
  • 2021-05-18
  • 2022-12-23
  • 2021-09-21
  • 2021-05-26
  • 2021-12-30
  • 2021-08-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-20
  • 2021-12-13
  • 2021-10-22
  • 2021-12-10
  • 2021-08-03
相关资源
相似解决方案