IH
Size: a a a
IH
IH
IH
IH
Y
IH
★
EN
OK
/api/legalCompanies
. server {
listen 3003 default_server;
listen [::]:3003 default_server;
access_log /dev/stdout;
error_log /dev/stdout;
location / {
try_files $uri /index.html =404;
root /home/react/app/packages/app/dist/;
index index.html;
}
location /api/ {
proxy_http_version 1.1;
proxy_headers_hash_bucket_size 128;
proxy_pass https://backend.sample.com;
proxy_cache_bypass $http_upgrade;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}
location /api/legalCompanies {
proxy_http_version 1.1;
proxy_headers_hash_bucket_size 128;
proxy_pass https://backend.sample.com;
}
location /api/prefilledCompanies {
proxy_http_version 1.1;
proxy_headers_hash_bucket_size 128;
proxy_pass https://prefill.sample.com;
}
}
Лог:
[debug] 41706#0: *21 http upstream request: "/api/legalCompanies/a74bc1-a0fe-4f83-6182f09803f6/drafts/a4a6cb89-30ca-48ed-9f48/signing?"
[debug] 41706#0: *21 http upstream dummy handler
[debug] 41706#0: *21 http upstream request: "/api/legalCompanies/a74bc1-a0fe-4f83-6182f09803f6/drafts/a4a6cb89-30ca-48ed-9f48/signing?"
[debug] 41706#0: *21 http upstream process header
[debug] 41706#0: *21 SSL_read: 1021
[debug] 41706#0: *21 SSL_read: -1
[debug] 41706#0: *21 SSL_get_error: 2
[debug] 41706#0: *21 http proxy status 400 "400 Bad Request"
[debug] 41706#0: *21 http proxy header: "content-type: text/html;charset=utf-8"
[debug] 41706#0: *21 http proxy header: "content-language: en"
[debug] 41706#0: *21 http proxy header: "content-length: 800"
[debug] 41706#0: *21 http proxy header: "date: Sat, 11 Jan 2020 11:17:39 GMT"