-
Notifications
You must be signed in to change notification settings - Fork 545
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
upstream config, cann't select Host header for option 'Keep the same Host from client request' #2409
Comments
Sorry for not reproducing the problem by following your steps. |
Can you give me a |
curl 'http://10.26.20.220:4010/apisix/admin/upstreams/401541446110282671' \
-X 'PUT' \
-H 'Connection: keep-alive' \
-H 'Pragma: no-cache' \
-H 'Cache-Control: no-cache' \
-H 'Accept: application/json' \
-H 'DNT: 1' \
-H 'Authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2NDkyMTE0NjIsImlhdCI6MTY0OTIwNzg2Miwic3ViIjoiYWRtaW4ifQ.KxtxoVGG6j-J-2lAVu-HVuKeSwv-yvVpokhd6YhSZq4' \
-H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.84 Safari/537.36' \
-H 'Content-Type: application/json;charset=UTF-8' \
-H 'Origin: http://10.26.20.220:4010' \
-H 'Referer: http://10.26.20.220:4010/upstream/401541446110282671/edit' \
-H 'Accept-Language: zh-CN,zh;q=0.9,en;q=0.8,zh-TW;q=0.7' \
--data-raw '{"name":"xxx","type":"roundrobin","pass_host":"node","scheme":"https","timeout":{"connect":6,"send":6,"read":6},"keepalive_pool":{"size":320,"idle_timeout":60,"requests":1000},"nodes":{"somehost.com":1}}' \
--compressed \
--insecure |
Your description may be wrong. When I select |
yeah, sorry for that... |
yes, pr is welcome! |
I'm a java developer, and don't know how to code with go. |
ok, I will make it done |
Issue description
Config a upstream
Upstream type : node
Hostname : somehost.com
when submit form, apisix dashboard backend will return 500.
Expected behavior
can be normal configed.
How to Reproduce
Config a upstream
when submit form, apisix backend will return 500.
Screenshots
Environment
uname -a
): running in docker-compose from offical imagenginx -V
oropenresty -V
): running in docker-compose from offical imageetcd --version
): 3.4.18 (binary deylop)Additional context
docker-compose does nothing, only mount some files to container
No response
The text was updated successfully, but these errors were encountered: