
Mein Ziel
Mein Ziel ist es, auf eine andere Webseite umzuleiten, ohne die URL in der Adressleiste zu ändern. Ich möchte also beispielsweise von zu umleiten https://my.site.com/path
, https://external.com/other
aber nur der Inhalt der Seite soll sich ändern, nicht die URL.
Aktuelle Konfiguration
Das habe ich versucht. Ich dachte, das proxy_redirect
könnte eine gute Idee sein, also habe ich die Konfiguration auf der Basis derNGINX-Dokumente. Während jedoch der Inhalt von geladen wird https://external.com/other
, ändert sich die URL in der Adressleiste zu https://my.site.com/other
. Der Domänenname bleibt gleich, aber der Pfad ändert sich.
location = /path {
proxy_pass https://external.com/other;
proxy_redirect default;
}