Answer the question
In order to leave comments, you need to log in
How to prevent attempt to redirect to local url?
It is necessary to make it so that when accessing /foo, there is a transfer to the application listening on the port. Now nginx is trying to access /foo for this local application i.e. make 127.0.0.1:8080/foo, but it is necessary that the call goes simply to 127.0.0.1:8080
Here is my config:
server {
listen 80;
server_name mysite.org;
location /foo {
proxy_pass http://127.0.0.1:8080;
}
}
Answer the question
In order to leave comments, you need to log in
if i googled correctly, add a slash at the end :)proxy_pass http://127.0.0.1:8080/;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question