mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #427] FRPC WEB模式,GET参数过长会卡住 #319
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#319
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @neatstudio on GitHub (Aug 16, 2017).
Original GitHub issue: https://github.com/fatedier/frp/issues/427
环境frpc/frps 0.13
1、SEVER配置了subdomain,配置nginx做跳转
2、Client 配置了web,定了subdomain和local_port
一般情况下都正常,只是在使用datatables控件 的时候,由于它默认会传很多参数(目前我的是1181个字节)。然后整体就卡住了!
请检查一下
@neatstudio commented on GitHub (Aug 17, 2017):
已经加了:
client_header_buffer_size 64k;
large_client_header_buffers 4 64k;
然而无效。
参考:https://stackoverflow.com/questions/23732147/configuring-nginx-for-large-uris
@fatedier commented on GitHub (Aug 17, 2017):
直接给 frps 发请求,还是经过 nginx 转发?
另外这么多参数为什么不用 POST 的方式传呢。
@neatstudio commented on GitHub (Aug 17, 2017):
通过nginx转发WEB
1、frps 配置
2、nginx 配置
3、FRPC配置
@zhfish commented on GitHub (Aug 22, 2017):
虽然不知道为什么不用post
其他方面的建议
用nginx其实就别设置vhost_http_port和subdomain_host了
nginx的proxy_pass直接指向frpc设置的ip
附gitlab用的一些proxy配置
@neatstudio commented on GitHub (Aug 22, 2017):
楼上各位好,不是我不用POST,而是 dataTables 的插件用是的GET
再者,其实楼上的一些设置我也都有相应的配置,我nginx之所以用vhost_http_port和subdomain_host是因为我还有一些其他网站需要用来转发
@zhfish commented on GitHub (Aug 23, 2017):
https://datatables.net/examples/server_side/post.html@neatstudio commented on GitHub (Aug 23, 2017):
@zhfish 接受你的意见。
我其他网站也是用nginx的。
1、主要是我其他都是nginx+apache。暂没问题
2、我proxy指的是我本地(我本地机器 ),所以我才用了vhost
3、接受你POST的意见。刚接触使用dataTables,已经使用POST(主要是GET可以缓存一些简单的数据,POST就没办法了,当然也可以用它的Cache)
BTW:感谢
@fatedier commented on GitHub (Aug 24, 2017):
所以这个问题是一个需要解决的问题吗?有标准规定 url 必须要能够接收多少字节以内的请求还是各个服务端可能会有不同的实现?
@zhfish commented on GitHub (Aug 26, 2017):
url 必须要能够接收多少字节 是浏览器限制的,一般来说不会超过1024吧?
如果你本身并没闲置的话,感觉不用解决