当前位置:   article > 正文

Linux nginx 443 缺少ngx_http_ssl_module

Linux nginx 443 缺少ngx_http_ssl_module

 

  1. nginx源码包位置 :
  2. ./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module
  3. 提示需要openssl :yum -y install openssl openssl-devel
  4. 编译 :make
  5. 用objs里的nginx替换/usr/local/nginx/sbin的nginx
  6. 重启
  7. 443变下载 : 没有配置fastcgi
  8. server {
  9. ssl on;
  10. listen 443 ssl;
  11. server_name wechat.canxingtv.com;
  12. root /data/cxtv/public;
  13. ssl_certificate /usr/local/nginx/conf/wechat.pem;
  14. ssl_certificate_key /usr/local/nginx/conf/wechat.key;
  15. ssl_session_cache shared:SSL:1m;
  16. ssl_session_timeout 5m;
  17. ssl_ciphers HIGH:!aNULL:!MD5;
  18. ssl_prefer_server_ciphers on;
  19. location / {
  20. index index.html index.htm index.php;
  21. }
  22. location ~ \.php$ {
  23. fastcgi_pass 127.0.0.1:9000;
  24. fastcgi_index index.php;
  25. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  26. include fastcgi_params;
  27. }
  28. }
  29. 关了谷歌的缓存

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/羊村懒王/article/detail/662231
推荐阅读
相关标签
  

闽ICP备14008679号