Nginx Log Rotation

Nginx 日志切割,在网上查了很多教程。还不如直接看 Ubuntu / CentOS 打包的 Nginx 日志切割配置靠谱。 CentOS 8 Ubuntu 20.10 参考: https://www.nginx.com/resources/wiki/start/topics/examples/logrotation/ https://www.digitalocean.com/community/tutorials/how-to-configure-logging-and-log-rotation-in-nginx-on-an-ubuntu-vps  395 total views,  1 views today

 395 total views,  1 views today

Published

400 Bad Request The plain HTTP request was sent to HTTPS port

配置 https 的时候遇到这样一个问题,直接访问 https://www.domain.com 正常,访问 http://www.domain.com 报错:400 Bad Request The plain HTTP request was sent to HTTPS port。 nginx 配置如下: 有两种解决方案:  922 total views,  1 views today

 922 total views,  1 views today

Published