Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

help request: access static file by custom nginx.conf but error #8081

Closed
wallishuang opened this issue Oct 12, 2022 · 4 comments
Closed

help request: access static file by custom nginx.conf but error #8081

wallishuang opened this issue Oct 12, 2022 · 4 comments

Comments

@wallishuang
Copy link

wallishuang commented Oct 12, 2022

Description

Hi
I folllow the doc [https://apisix.apache.org/docs/apisix/2.15/customize-nginx-configuration/] to access static resource but occur error as following. and I try the other way like proxy cache [ https://github.com//issues/3390]. it occurs the same error. It's make me confused, please help.

<title>400 Request Header Or Cookie Too Large</title>

400 Bad Request

Request Header Or Cookie Too Large
openresty

Environment

  • APISIX version (run apisix version): 2.15.0
  • Operating system (run uname -a): docker ,
  • OpenResty / Nginx version (run openresty -V or nginx -V):Linux apisix-cb97c8cc7-cj2s5 5.4.0-125-generic test: supported to run test case if the dependency files are installed to deps folder. #141~18.04.1-Ubuntu SMP Thu Aug 11 20:15:56 UTC 2022 x86_64 Linux
  • etcd version, if relevant (run curl http://127.0.0.1:9090/v1/server_info): docker.io/bitnami/etcd:3.5.4-debian-11-r14
  • APISIX Dashboard version, if relevant: apache/apisix-dashboard:2.13-alpine
  • Plugin runner version, for issues related to plugin runners:
  • LuaRocks version, for installation issues (run luarocks --version):
@tokers
Copy link
Contributor

tokers commented Oct 12, 2022

Please provide details about how you configure the proxy-cache plugin and how you send a request which got such a status code.

@tzssangglass
Copy link
Member

tzssangglass commented Oct 13, 2022

try to add the large_client_header_buffers 4 16k; directive to the http_server_location_configuration_snippet or http_configuration_snippet by custom nginx.conf, ref: http://nginx.org/en/docs/http/ngx_http_core_module.html#large_client_header_buffers

@elkh510
Copy link

elkh510 commented Dec 23, 2022

hi
try with this
no luck
#8081 (comment)

@elkh510
Copy link

elkh510 commented Jan 17, 2023

figured
so in our test environment we have apisix ingress that point to test deployment.
apisix contains nginx and test deployment contains nginx
after we added changes to both nginx all start worked as expected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants