小编Saj*_*jid的帖子

Springboot嵌入式tomcat绑定到IPV6

我正在使用springboot工作休息api,当我尝试部署它自动绑定到我们不想要的ipv6的jar时我面临小问题,我知道我可以使用外部tomcat.但只是为了学习我想知道是否有可能强制它绑定到ipv4而不是?

谢谢Sajid

tomcat spring-boot

6
推荐指数
1
解决办法
3851
查看次数

Nginx 仅当 url 中包含特定参数时才设置 proxy_send_timeout

我是 nginx 的新手,现在正在学习它:),我需要一些设置 proxy_send_timeout 的帮助,只有当 url 在代理中有“stime”时我才需要设置它,这就是我正在做的事情:

if ($arg_stime != ""){
  proxy_send_timeout 15;
  proxy_read_timeout 15;
}
Run Code Online (Sandbox Code Playgroud)

但 nginx 无法启动并给出以下错误:

4901#0:default.conf 中不允许使用“proxy_send_timeout”指令

任何建议,谢谢

此致

萨吉德

timeout nginx

2
推荐指数
1
解决办法
5744
查看次数

标签 统计

nginx ×1

spring-boot ×1

timeout ×1

tomcat ×1