一.问题描述
nginx使用xquic协议一切安装正常,nginx -s reload也正常,但就是访问不了网页
[emerg] 12342#0: |xquic|xqc_engine_create: fail|
[emerg] 12342#0: |xquic|ngx_xquic_process_init|engine_init fail|
[emerg] 12341#0: |xquic|xqc_engine_create: fail|
[emerg] 12341#0: |xquic|ngx_xquic_process_init|engine_init fail|
[alert] 18034#0: worker process 12341 exited with fatal code 2 and cannot be respawned
[alert] 18034#0: worker process 12342 exited with fatal code 2 and cannot be respawned
[notice] 18340#0: signal process started
二.解决办法
在http块加入
xquic_ssl_certificate /home/cert/xxx.com.pem;
xquic_ssl_certificate_key /home/cert/xxx.com.key;
这里的证书自己去申请nginx ssl证书,域名任意,无需和server块的域名对应起来,有时虽然写上了,但是仍然报这个错,那就说明申请的nginx ssl证书有问题,可用去大公司去申请