nginx nginx强制跳转https

本项目 nginx 作为代理服务项目上线,客户说要加个安全证书 ,于是安全证书是加上了,可是htttp和https都能访问网站,客户要求不行必须强制用带有https的地址访问开整这是 http 和https 都能...

2023-03-24 291 阅读

nginx Nginx报错“The plain HTTP request was sent to HTTPS port”问题解决办法

转载自:https://blog.yoodb.com/yoodb/article/detail/1527Nginx HTTP服务器的报错“400 Bad Request: The plain HTTP request was sent to HTTPS port”,本文将讲解如何解决这个问题。简单...

2023-03-24 388 阅读

nginx This request has been blocked; the content must be served over HTTPS

在 HTTPS 承载的页面上不允许出现 http 请求,一旦出现就是提示或报错:This request has been blocked; the content must be served over HTTPS解决方案:html:<meta http-equiv="...

2023-03-24 671 阅读

nginx nginx-rtmp多房间和授权实现

nginx-rtmp多房间和授权实现本篇为nginx-rtmp的进阶篇,实现多房间直播和观看直播并且添加推流的授权验证(用java实现的授权验证)。在阅读时您需要去看简单推流实现,传送门, 如果您已经做...

2023-02-03 440 阅读

nginx Nginx的启动、停止与重启

启动 启动代码格式:nginx安装目录地址 -c nginx配置文件地址例如:# /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf 停止 nginx的停止有...

2023-01-05 284 阅读

中间件 Nginx-缓存配置

缓存就是数据交换的缓冲区(称作:Cache),当用户要获取数据的时候,会先从缓存中去查询获取数据,如果缓存中有就会直接返回给用户,如果缓存中没有,则会发请求从服务器重新查询数据,将数据返...

2022-12-21 326 阅读

中间件 nginx静态资源缓存和gzip压缩

其实这章主要就是优化访问时间和减少宽带问题优化访问时间,一般css,js,woff还有图片都是静态文件,是一般都不用更改得,如果每次请求都要走tomcat,都是要耗时一些的,那么可以第一次访问的...

2022-12-21 474 阅读

nginx Linux-026-Centos Nginx 配置 pid 文件路径解决 service nginx status 提示:Can't open PID file /var/run/nginx.pid (yet?) after start: No such file or directory

在使用 service nginx status 命令查看 nginx 的运行状态时,提示:Can't open PID file /var/run/nginx.pid (yet?) after start: No such file or directory 导致 nginx 服务关闭,服务不可...

2022-12-10 572 阅读

tomcat Nginx tomcat集群 转发后端口丢失

场景: 阿里云主机 docker 搭建nginx集群,访问项目端口丢失 配置如下: 丢失的可能原因: proxy_set_header Host设置不对,修改如下:  proxy_set_header Host $http_host;  ...

2022-12-10 408 阅读

nginx nginx配置https,重定向后https变成了http

nginx配置https如下 nginx 后面应用是对应的tomcat应用 server { listen 80; server_name xxxx.com; rewrite ^(.*) https://$server_name$1 permanent; } server...

2022-12-10 492 阅读