Complete the code to forward requests to the backend server.
location /api/ {
proxy_pass [1];
}The proxy_pass directive sets the address of the backend server to which requests are forwarded.
Complete the code to forward requests to HTTPS backend.
location /secure/ {
proxy_pass [1];
}To forward requests to a secure backend, use https:// in the proxy_pass URL.
Fix the error in the proxy_pass directive to correctly forward to backend.
location /app/ {
proxy_pass [1];
}Adding a trailing slash in proxy_pass preserves the URI path correctly when forwarding.
Fill both blanks to forward requests and set the Host header correctly.
location /service/ {
proxy_pass [1];
proxy_set_header Host [2];
}proxy_pass sets the backend URL, and proxy_set_header Host $host; forwards the original Host header.
Fill all three blanks to forward requests, set Host header, and disable SSL verification.
location /api/ {
proxy_pass [1];
proxy_set_header Host [2];
proxy_ssl_verify [3];
}Use https:// URL for secure backend, keep original Host header with $host, and disable SSL verification with off.