Answer the question
In order to leave comments, you need to log in
How to proxy requests using network proxy?
There are Linux machines that do not have access to the external network because they cannot get authorized.
There are Windows machines entered into the domain and having the ability to access the external network under the user.
nginx is up on one of the windows machine
server {
listen 80;
server_name host1;
proxy_set_header HOST $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
location / {
proxy_pass http://host2.com;
}
Answer the question
In order to leave comments, you need to log in
Maybe it's easier to pass authorization? Or to register IP linukhs in proxy exceptions?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question