
내 목표
내 목표는 주소 표시줄의 URL을 변경하지 않고 다른 웹페이지로 리디렉션하는 것입니다. 예를 들어 https://my.site.com/path
에서 로 리디렉션하고 싶지만 https://external.com/other
URL은 변경되지 않고 페이지의 콘텐츠만 변경되어야 합니다.
현재 구성
이것이 내가 시도한 것입니다. 나는 그것이 좋은 생각일지도 모른다고 생각했고 proxy_redirect
, 그래서 구성을 기반으로 했습니다.NGINX 문서. 그러나 이것이 의 콘텐츠를 로드하는 동안 https://external.com/other
주소 표시줄의 URL은 로 변경됩니다 https://my.site.com/other
. 도메인 이름은 동일하게 유지되지만 경로는 변경됩니다.
location = /path {
proxy_pass https://external.com/other;
proxy_redirect default;
}