Nginx下升级https踩到的坑

由于项目业务升级,全站升级https协议。 导致了资源跨域 https下无法访问http协议的资源,项目原本有很多图片存储在数据库url使用ht

Linux 用户安全策略

记录下在管理Linux服务器的时候,一些用户安全策略 1. sshd 强制使用V2安全协议 修改/etc/ssh/sshd_config # The default requires explicit activation of protocol 1 #

Nginx 限制http请求方法,防止HTTP动词篡改

在Server段中新增一段代码 if ($request_method !~ ^(GET|POST|DELETE|PUT|PATCH|HEAD|OPTIONS)$ ) { return 444; } 还有一种方式就是在location里面添加限制方式 location / { limit_except GET POST { # 限制除了get,post的