Answer the question
In order to leave comments, you need to log in
How to configure website proxying in nginx?
Good afternoon.
Is it possible to set up SSL proxying of a site through nginx? The task is the following, for example, we
prescribe in the hosts of the machine 127.0.0.1 habrahabr.ru
on the localhost we raise nginx and say:
server {
listen 127.0.0.1 ;
server_name habrahabr.ru;
location / {
proxy_pass http://$http_host$request_uri;
proxy_set_header Host $http_host;
resolver 8.8.8.8;
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question