출처: https://typemin.tistory.com/7 [TypeLOG:티스토리]

xx.xx.xxx/app/sign 으로 요청을 보내게 되었을 때 "redirect: login" 으로 리디렉션이 되어야 하는 것인데.

xx.xx.xxx/app/login(정상) 이 아닌 xx.xx.xxx/login(비정상) 이렇게 가는 것이 아닌가 ?
프록시를 한 백엔드 서버의 리디렉션의 요청을 nginx 설정에서 다시 바꿔주면 된다.

location ^~/app/ {
    proxy_redirect http://xx.xx.xxx/ http://xx.xx.xxx/app/;

    proxy_pass http://xx.xx.xxx:8089/;
}

 

반응형

+ Recent posts