I use nginx as a reverse proxy. This worked for me perfectly in the past, but today I was playing around with the config and I must have messed something up seriously, cause it's no longer working. The problem is that the frontend/browser is getting the proxy_pass url forwarded. So I go to website https://example.org. This website proxy passes to 127.0.0.1 with
server {
listen 443 ssl;
server_name example.org;
location / {
proxy_pass http://127.0.0.1:9680;
# include /etc/nginx/proxy.conf;
}
}
and in my browser I get an error on 127.0.0.1 which (obviously) can't be reached. As you can see I commented out my proxy.conf as I must have messed up something there, but what proxy settings do I need to make sure that the client never ever sees my internal addresses?
server {
listen 443 ssl;
server_name example.org;
location / {
proxy_pass http://127.0.0.1:9680;
# include /etc/nginx/proxy.conf;
}
}
and in my browser I get an error on 127.0.0.1 which (obviously) can't be reached. As you can see I commented out my proxy.conf as I must have messed up something there, but what proxy settings do I need to make sure that the client never ever sees my internal addresses?