Browse Source

add more detect for nginx mode

neilpang 8 years ago
parent
commit
674790a511
1 changed files with 2 additions and 1 deletions
  1. 2 1
      acme.sh

+ 2 - 1
acme.sh

@@ -2665,7 +2665,8 @@ _isRealNginxConf() {
 
         _debug "_seg_n" "$_seg_n"
 
-        if [ "$(echo "$_seg_n" | _egrep_o "^ *ssl  *on *;")" ]; then
+        if [ "$(echo "$_seg_n" | _egrep_o "^ *ssl  *on *;")" ]
+          || [ "$(echo "$_seg_n" | _egrep_o "listen .* ssl[ |;]")" ]; then
           _debug "ssl on, skip"
           return 1
         fi