Answers for "nginx conditional proxy_pass"

2

nginx if location proxy_pass examples

location /some/path/ {
    proxy_pass http://www.example.com/link/;
}

location ~ .php {
    proxy_pass http://127.0.0.1:8000;
}
Posted by: Guest on August-12-2021
0

nginx proxy_pass

location /some/path/ {
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_pass http://localhost:8000;
}
Posted by: Guest on May-03-2021

Browse Popular Code Answers by Language