搭建onlyoffice community server添加ssl时证书格式错误导致自动脚本出错引发此nginx配置错误(nginx -t)报错为
nginx: [warn] duplicate MIME type "text/html" in /etc/nginx/includes/onlyoffice-communityserver-common.conf:19
解决方法:

vi /etc/nginx/includes/onlyoffice-communityserver-common.conf

可以使用:set nu显示行数找到报错的19行,删除text/html即可,再次运行

nginx -t

报错消失.

THE END
最后修改:2018 年 08 月 18 日 18 : 05
本文链接:https://www.j000e.com/linux/nginxerrortext-html.html
版权声明:本文『nginx: [warn] duplicate MIME type "text/html" in /etc/nginx/includes/onlyoffice-communityserver-common.conf:19』为『Joe』原创。著作权归作者所有。
转载说明:nginx: [warn] duplicate MIME type "text/html" in /etc/nginx/includes/onlyoffice-communityserver-common.conf:19 || Joe's Blog』转载许可类型见文末右下角标识。允许规范转载时,转载文章需注明原文出处及地址。
Last modification:August 18, 2018
If you think my article is useful to you, please feel free to appreciate