Nginx inversion and redirection

< H2 > requirements: < / H2 >

We now have a server with a web address of 127.0.0.1authin.htl. We want to access 49.x.x.xUnix login.htl through nginx to hide the auth level.

Mar.07,2021

this alias using nginx should be able to solve it.
document: http://nginx.org/en/docs/http.


the stupidest method

location /auth/login.html {
    proxy_pass 49.x.x.x/login.html;
}
Menu