1
jjeyz 2020-10-14 10:45:44 +08:00 via Android
“listen 怎么都不可以”报错信息是什么?
|
2
fangMu 2020-10-14 13:38:45 +08:00
三个 listen 改成下面试试
listen 80; listen 443 ssl; |
3
masker 2020-10-14 13:59:30 +08:00 via Android
挺难的,贴错误日志
|
4
seers 2020-10-14 14:16:38 +08:00
你在 80 端口加个 301 跳转
|
5
ssbg2 OP @jjeyz 看 access_log 是这样:
192.168.20.252 - - [14/Oct/2020:10:55:39 +0800] "\x16\x03\x01\x02\x00\x01\x00\x01\xFC\x03\x03\x89%\x07\xE2\xA9\x05\x8B\xF5\x98\x1A\xBCz\xEDs\x13T\x07m\xF1\xF17\xA5\xBB\x1C\xECo0G\x05G\x94q h\xA8\xDF>U^\xD0\x86\xBA\xA8\xF6\x022\x84x\xCBc1\x19\x07\xCB\x9B\xA5\xC5\x22OE\xD0-.\xF9l\x00\x22" 400 157 "-" "-" "-" 192.168.20.252 - - [14/Oct/2020:10:55:39 +0800] "\x16\x03\x01\x02\x00\x01\x00\x01\xFC\x03\x03\x8E\x04\x12\xD2\x9D\x5Cmjz\xF6u\x85\x03\xCD\xB1\xC6\xF8#\xA5\xE4d\xD24\x91\x05t\xC9\x03\xEE\xD9/\xE8 h\xA8\xDF>U^\xD0\x86\xBA\xA8\xF6\x022\x84x\xCBc1\x19\x07\xCB\x9B\xA5\xC5\x22OE\xD0-.\xF9l\x00\x22\x8A\x8A\x13\x01\x13\x02\x13\x03\xC0+\xC0/\xC0,\xC00\xCC\xA9\xCC\xA8\xC0\x13\xC0\x14\x00\x9C\x00\x9D\x00/\x005\x00" 400 157 "-" "-" "-" 192.168.20.252 - - [14/Oct/2020:10:55:40 +0800] "\x16\x03\x01\x02\x00\x01\x00\x01\xFC\x03\x03\x15jBHy{\x03" 400 157 "-" "-" "-" 看错误信息是这样: 2020/10/14 01:13:08 [debug] 28989#0: epoll: fd:14 ev:2001 d:00007F1D66D6F2E1 2020/10/14 01:13:08 [debug] 28989#0: *103 http check ssl handshake 2020/10/14 01:13:08 [debug] 28989#0: *103 http recv(): 0 2020/10/14 01:13:08 [info] 28989#0: *103 client closed connection while SSL handshaking, client: 192.168.20.252, server: 0.0.0.0:80 2020/10/14 01:13:08 [debug] 28989#0: *103 close http connection: 14 2020/10/14 01:13:08 [debug] 28989#0: *103 event timer del: 14: 28423684 2020/10/14 01:13:08 [debug] 28989#0: *103 reusable connection: 0 2020/10/14 01:13:08 [debug] 28989#0: *103 free: 000055CC9FDA3450, unused: 232 2020/10/14 01:13:08 [debug] 28989#0: timer delta: 0 2020/10/14 01:13:08 [debug] 28989#0: worker cycle 2020/10/14 01:13:08 [debug] 28989#0: epoll timer: -1 2020/10/14 01:14:01 [debug] 28987#0: epoll: fd:7 ev:0001 d:00007F1D66D6F100 2020/10/14 01:14:01 [debug] 28988#0: epoll: fd:7 ev:0001 d:00007F1D66D6F100 2020/10/14 01:14:01 [debug] 28991#0: epoll: fd:7 ev:0001 d:00007F1D66D6F100 2020/10/14 01:14:01 [debug] 28990#0: epoll: fd:7 ev:0001 d:00007F1D66D6F100 2020/10/14 01:14:01 [debug] 28984#0: epoll: fd:7 ev:0001 d:00007F1D66D6F100 2020/10/14 01:14:01 [debug] 28985#0: epoll: fd:7 ev:0001 d:00007F1D66D6F100 2020/10/14 01:14:01 [debug] 28987#0: accept on 0.0.0.0:80, ready: 0 2020/10/14 01:14:01 [debug] 28988#0: accept on 0.0.0.0:80, ready: 0 2020/10/14 01:14:01 [debug] 28983#0: epoll: fd:7 ev:0001 d:00007F1D66D6F100 2020/10/14 01:14:01 [debug] 28991#0: accept on 0.0.0.0:80, ready: 0 2020/10/14 01:14:01 [debug] 28990#0: accept on 0.0.0.0:80, ready: 0 2020/10/14 01:14:01 [debug] 28992#0: epoll: fd:7 ev:0001 d:00007F1D66D6F100 2020/10/14 01:14:01 [debug] 28984#0: accept on 0.0.0.0:80, ready: 0 2020/10/14 01:14:01 [debug] 28985#0: accept on 0.0.0.0:80, ready: 0 2020/10/14 01:14:01 [debug] 28983#0: accept on 0.0.0.0:80, ready: 0 2020/10/14 01:14:01 [debug] 28992#0: accept on 0.0.0.0:80, ready: 0 2020/10/14 01:14:01 [debug] 28986#0: epoll: fd:7 ev:0001 d:00007F1D66D6F100 2020/10/14 01:14:01 [debug] 28991#0: accept() not ready (11: Resource temporarily unavailable) 2020/10/14 01:14:01 [debug] 28990#0: accept() not ready (11: Resource temporarily unavailable) 2020/10/14 01:14:01 [debug] 28986#0: accept on 0.0.0.0:80, ready: 0 2020/10/14 01:14:01 [debug] 28984#0: accept() not ready (11: Resource temporarily unavailable) 2020/10/14 01:14:01 [debug] 28983#0: accept() not ready (11: Resource temporarily unavailable) 2020/10/14 01:14:01 [debug] 28987#0: posix_memalign: 000055CC9FDA3450:512 @16 2020/10/14 01:14:01 [debug] 28988#0: accept() not ready (11: Resource temporarily unavailable) 2020/10/14 01:14:01 [debug] 28991#0: timer delta: 53074 2020/10/14 01:14:01 [debug] 28985#0: accept() not ready (11: Resource temporarily unavailable) 2020/10/14 01:14:01 [debug] 28992#0: accept() not ready (11: Resource temporarily unavailable) 2020/10/14 01:14:01 [debug] 28990#0: timer delta: 53074 2020/10/14 01:14:01 [debug] 28984#0: timer delta: 53074 2020/10/14 01:14:01 [debug] 28983#0: timer delta: 53074 2020/10/14 01:14:01 [debug] 28987#0: *104 accept: 192.168.20.252:25694 fd:20 2020/10/14 01:14:01 [debug] 28986#0: accept() not ready (11: Resource temporarily unavailable) |