Answer the question
In order to leave comments, you need to log in
How to configure Proxy_Pass in Nginx (scheme inside)?
Hello.
How to proxy a web service in Nginx , excluding the /admin/
directory.
If I configure it this way, it doesn’t work (because the link to pages and content changes):
location /adminka-1 {
proxy_pass http://192.168.1.1:8080/admin/;
proxy_http_version 1.1;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
location /adminka-1 {
proxy_pass http://192.168.1.1:8080/admin/;
proxy_http_version 1.1;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
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