allowed nginx 405 not

nginx 一个域名区分pc和手机!

location / { set $root '/usr/share/nginx/html/pc/dist'; # 这部分校验可以改! if ( $http_user_agent ~ "(MIDP)|(WAP)|(UP.Browser)|(Smartphone)|(Obigo)|(Mobile)|( ......
域名 手机 nginx

Pycharm读excel文件报错xlrd.biffh.XLRDError: Excel xlsx file not supported

解决方法: 先卸载低版本的xlrd,然后安装新版本 pip uninstall xlrd pip install xlrd==1.2.0 ......
XLRDError supported Pycharm 文件 Excel

题解 ARC140E【Not Equal Rectangle】

萌萌构造题,随便构造构造就做出来了。似乎跟官方题解思路一样。 首先解决以下问题:给定一个质数 \(P\),构造一个每个数在 \(0\sim P-1\) 的大小为 \(P^2\times P^2\) 的矩阵,满足不存在 \(x_1\ne x_2,y_1\ne y_2\) 使得 \(a_{x_1,y_1 ......
题解 Rectangle Equal 140E ARC

nginx启用HTTP2特性

本文于2017年2月底完成,发布在个人博客网站上。 考虑个人博客因某种原因无法修复,于是在博客园安家,之前发布的文章逐步搬迁过来。 查看当前nginx的编译选项 #./nginx -V nginx version: nginx/1.9.15 built by gcc 5.4.0 20160609 ( ......
特性 nginx HTTP2 HTTP

nginx代理header丢失的问题

header名称中如果有下线,如:j_roadFlow_loginToken 则在nginx配置文件中一定要加上: underscores_in_headers on; #这里是on,不然无法传递带下划线的header ......
header 问题 nginx

mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION; ERROR 1410 (42000): You are not allowed to create a user with GRANT

mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION;ERROR 1410 (42000): You are not allowed to create a user with GRANT 解决办法 以下是 8.0版本的 ......
GRANT 39 PRIVILEGES allowed OPTION

Nginx——配置代理-服务的代理

docker 容器的配置 docker run --name nginx-t -p 1234:8099 -d nginx:bitmap 命令 -p 是用来进行端口映射的,它可以穿透防火墙的限制,将容器内部的端口映射到宿主机(主机)的对应端口上, 从而可以通过宿主机访问容器内部的应用服务 这个命令将运 ......
Nginx

"nginx.conf" E514 : write error (file system full?)

出现这段提示,可以先看看磁盘空间是不是满了 不看不知道,一看吓一跳,什么时候我的业务这么丰富了 下面开始查看哪个位置占用空间了 查看各目录大小 du -h --max-depth=1 / 再次确认详细的地方 du -h --max-depth=1 /home 这里就确认了具体的位置 这个时候先删除m ......
quot system nginx error write

org.springframework.kafka.listener.ListenerExecutionFailedException: Listener method could not be invoked with the incoming message

问题描述 kafka在yml文件中未开启批量消费时,程序正常运行;但一开启正常消费后,就直接报错;排查问题的过程中一直觉得是配置文件里的问题,最后发现是消费者接受的参数类型错误 问题本质 消费者开启批量消费数据后,不能用单个实体类接收参数,而应该用list 解决方法 修改消费者函数参数类型 ......

YAML示例:nginx使用configmap配置并开启镜像

# use nginx to be a proxy, mirror each request to other services, 10.96.2.58 send back the reponse to user client. m1 and m2 just mirror the request, ......
示例 configmap 镜像 nginx YAML

Oracle 19c 升级错误【verify_queryable_inventory returned ORA-20001: Latest xml inventory is not loaded into table】

作为一个数据库爱好者,手里的数据库没几个月就得升级一次。 升级收尾运行【datapatch -verbose】的时候,经常遇到这个错误【verify_queryable_inventory returned ORA-20001: Latest xml inventory is not loaded ......

Flutter 项目运行到ios模拟器报错 : Error (Xcode): SDK does not contain 'libarclite'

Flutter 项目运行到ios模拟器报错: Error (Xcode): SDK does not contain 'libarclite' at the path '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefaul ......
模拟器 libarclite Flutter contain 项目

nginx反向代理时报no resolver defined to resolve

错误日志 2024/01/11 05:29:22 [error] 29#29: *44 no resolver defined to resolve www.test.com, client: 127.0.0.1, server: _, request: "GET /test/123 HTTP/1. ......
resolver 时报 defined resolve nginx

Nginx长连接学习之二

Nginx长连接学习之二 背景 距离最开始学习Nginx的长连接已经一年半; 距离最开始学习Linux的TCP内核参数也已经过去了一年. 最近产品再次出现了TCP链接相关的问题. 因为一开始不知道部署模式已经变更, 我先排除了内存参数的问题. 结果很打脸, 还是内核参数问题导致的, 但是可能比较隐晦 ......
Nginx

解决TypeError: string indices must be integers, not str

点击查看代码 ExtendValue = { "area": "1", "info": "{\"year\": 2014, \"a\": 12, \"b\": 3, \"c\":5}", "trip_country": "CN" } 在按照字典访问的时候,报错。TypeError: string i ......
TypeError integers indices string must

YAML示例:创建单幅本nginx容器到指定节点及其service

# one rc deployment, schedule it to the node that has a label "ip" equals to "172.18.8.241" apiVersion: apps/v1 kind: Deployment metadata: name: 241-d ......
节点 示例 容器 service nginx

ROS2 删除一个工作空间文件夹,source后终端出现not found ...... local_setup.bash解决

问题描述 我在主目录同时开了多个ROS2工作空间,其中一个不想用了,直接删除后,终端出现这两行提示: 第二行是因为bash.rc文件里面source的setup.bash命令没有删除,所以: gedit ~/.bashrc source ~/.bashrc 删除source ~/rlarm_ws/i ......
local_setup 文件夹 终端 文件 source

nginx集成brotli压缩算法

本文于2017年2月中旬完成,发布在个人博客网站上。 考虑个人博客因某种原因无法修复,于是在博客园安家,之前发布的文章逐步搬迁过来。 Google开源Brotli压缩算法 Brotli是一种全新的数据格式,可以提供比Zopfli高20-26%的压缩比。 在caniuse网站查询当前主流浏览器对bro ......
算法 brotli nginx

如何判断一个网站是用的Nginx,还是Apache

事件起因: 接手了同事移交过来的一个网站,但是不知道这个网站是用什么做代理的,于是就去网上查资料 解决办法: 打开cmd窗口,输入以下命令即可 curl--head 域名/IP ......
还是 Apache Nginx 网站

Nginx配置

Nginx.conf 配置文件结构 Nginx 是一款 web 服务器,以反向代理、负载均衡、高性能而出名。Apache tomcat 也是类似的 Web服务器,区别在于 tomcat 是多进程/多线程的并发模型,nginx 是基于事件的异步IO 的并发模型。 其配置文件整体包括 全局块、http块 ......
Nginx

nginx中多个server块共用upstream会相互影响吗

nginx中经常有这样的场景,多个server块共用一个域名。 如:upstream有2个以上的域名,nginx配置两个server块,共用一个upstream配置。 那么,如果其中一个域名发生"no live upstreams while connecting to upstream"错误,会不... ......
upstream 多个 server nginx

[Vue warn]: Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".

这个警告是因为你提供了一个模板选项(template option),但在当前的Vue构建版本中不支持运行时编译。解决该问题的方法是将你的打包工具配置别名(alias)将 "vue" 指向 "vue/dist/vue.esm-bundler.js"。 具体来说,如果你使用的是Webpack或者vit ......
quot bundler vue compilation esm-bundler

SpringBoot配置报错:Description: Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. Reason: Failed to determine a suitable driver class

报错: Description: Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. Reason: Failed to ......

解决前后端的跨域问题:Access to XMLHttpRequest at '**' from origin '**' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

报错信息: Access to XMLHttpRequest at 'http://localhost:8182/cooperationRequest/getList' from origin 'http://localhost:3004' has been blocked by CORS poli ......

android编译kanzi 问题 (2) Gradle sync failed: NDK not configured. Download it with SDK manager. Preferred NDK version is '21.1.6352462'.

问题原因: 这个是因为本地网络不佳,下载NDK的包,然后本地已经存在的和android工程设置的又不匹配。 解决办法: 修改NDK版本 把 21.3.6528147 改成提示的 21.1.6352462 ......
configured NDK Preferred Download android

android编译kanzi 问题 (1) Caused by: java.io.FileNotFoundException: Error: Could not find or access Kanzi's Android libraries directory: C:\XXXXXXX

问题原因: 当前的安卓工程找不到kanzi 的android库库目录。大多数的android工程里都会带有一个kanzi_home的路径,这个和本机不匹配就会有该问题。 解决办法: android_gradle 下的local.properties 改下kanzi home 路径,跟自己本机电脑的环 ......

Nginx实战系列之功能篇----后端节点健康检查

Nginx实战系列之功能篇 后端节点健康检查 公司前一段对业务线上的nginx做了整理,重点就是对nginx上负载均衡器的后端节点做健康检查。目前,nginx对后端节点健康检查的方式主要有3种,这里列出: 1、ngx_http_proxy_module 模块和ngx_http_upstream_mo ......
节点 实战 功能 Nginx

Nginx 服务器开启status页面检测服务状态

一、Nginx status monitor 和apache 中服务器状态一样。输出的内容如: 第1列: 当前与http建立的连接数,包括等待的客户端连接:2第2列: 接受的客户端连接总数目:20 处理的客户端连接总数目:20 客户端总的请求数目:50第3列: 当前,nginx读请求连接 当前,ng ......
状态 页面 服务器 status Nginx

Nginx采用虚拟目录的方式代理IIS站点

Nginx采用虚拟目录的方式代理IIS站点 起因 背景 由于IIS出现了某种不可知的问题,H5APP的部署从IIS改为Nginx。 H5APP的Nginx的部署比较简单,直接修改官方的实例即可 但是之前H5站点中有一个虚拟目录用于客户单点登录认证,所以需要在Nginx中添加对应的虚拟目录,但是单点认 ......
站点 方式 目录 Nginx IIS

[转帖]nginx反向代理时保持长连接

https://www.cnblogs.com/liufarui/p/11075630.html ·【场景描述】 HTTP1.1之后,HTTP协议支持持久连接,也就是长连接,优点在于在一个TCP连接上可以传送多个HTTP请求和响应,减少了建立和关闭连接的消耗和延迟。 如果我们使用了nginx去作为反 ......
nginx
共3090篇  :1/103页 首页上一页1下一页尾页