Why can I get a normal response when accessing the address without a proxy server, but when accessing it through a proxy, I receive a 404 response code?
~ ❯ curl test.51kys.cn:7681/api/general/package/list -sv -x 192.168.1.88:3128
* Trying 192.168.1.88:3128...
* Connected to 192.168.1.88 (192.168.1.88) port 3128 (#0)
> GET http://test.51kys.cn:7681/api/general/package/list HTTP/1.1
> Host: test.51kys.cn:7681
> User-Agent: curl/7.88.1
> Accept: */*
> Proxy-Connection: Keep-Alive
>
< HTTP/1.1 404 Not Found
< Server: nginx/1.24.0
< Date: Mon, 07 Aug 2023 05:37:01 GMT
< Content-Type: text/html
< Content-Length: 153
< Connection: keep-alive
<
<html>
<head><title>404 Not Found</title></head>
<body>
<center><h1>404 Not Found</h1></center>
<hr><center>nginx/1.19.9</center>
</body>
</html>
* Connection #0 to host 192.168.1.88 left intact
Why can I get a normal response when accessing the address without a proxy server, but when accessing it through a proxy, I receive a 404 response code?
nginx access log
"GET http://test.51kys.cn:7681/api/general/package/list HTTP/1.1" 404 153 "-" "curl/7.88.1"
nginx conf