回答
收藏
分享
举报
proxy_pass 404
提问于2022-04-08 23:49

浏览 3.4k

  找了一天了,不知道什么原因求大佬解惑  

已修改于2023-03-17 02:24



写下您的回答
发表回答
全部回答(1)

按点赞数排序

按时间排序

部署的静态资源没找到,日志还是比较明显的

赞同

0

回复举报

回答于2022-04-19 13:54



回复飞不到的世界
回复
提问者
ld6069
这家伙很懒还未留下介绍~
0
文章
1
问答
0
粉丝
相关问答

这是子请求设计引入的复杂度,slice模块、mirror模块、auth_request模块、缓存的异步更新都使用到了子请求机制。

当业务逻辑复杂时,子请求可以简化逻辑,此时,r->main指向主请求,即客户端请求。

当子请求并发执行时,由于网络不可控,有可能子请求的响应先到达了,不能简单返回给客户端,因此过滤模块中会判断r == r->main


点赞 0
浏览 4.1k

limit_req指令后加nodelay了吗?这个不要加,否则一旦超过rate速率,会立刻拒绝请求,发送503响应码。

我猜你想要的结果,应该是请求被卡在Nginx上,直到速率要求达到后再处理?你可以把burst配大一些,这是允许等待在Nginx上的请求个数。

点赞 0
浏览 4.2k

低版本,编译会打印md5和sha1。我测试1.10版本,是打印md5和sha1的,1.11以上不打印了,可以查看
https://github.com/nginx/nginx/tree/master源代码代码仓库auto/summary文件,里面有描述。下面为我本地Ubuntu18.04编译指令:
在代码根目录运行,./auto/configure --prefix=/opt/nginx --with-http_stub_status_module --with-http_ssl_module --with-stream --with-stream_ssl_module --add-module=/home/lq/work/tongmingzhiyun/openresty/lua-nginx-module-0.10.21 --add-module=/home/lq/work/tongmingzhiyun/openresty/ngx_devel_kit-0.3.1
Configuration summary
+ using system PCRE library
+ using system OpenSSL library
+ md5: using OpenSSL library
+ sha1: using OpenSSL library
+ using system zlib library

nginx path prefix: "/opt/nginx"
nginx binary file: "/opt/nginx/sbin/nginx"
nginx modules path: "/opt/nginx/modules"
nginx configuration prefix: "/opt/nginx/conf"
nginx configuration file: "/opt/nginx/conf/nginx.conf"
nginx pid file: "/opt/nginx/logs/nginx.pid"
nginx error log file: "/opt/nginx/logs/error.log"
nginx http access log file: "/opt/nginx/logs/access.log"
nginx http client request body temporary files: "client_body_temp"
nginx http proxy temporary files: "proxy_temp"
nginx http fastcgi temporary files: "fastcgi_temp"
nginx http uwsgi temporary files: "uwsgi_temp"
nginx http scgi temporary files: "scgi_temp"

点赞 0
浏览 4k