Apache ReverseProxy auf Webserver-Folder
Hallo zusammen,
ich bin gerade dabei ein ReverseProxy Config einzurichten:
ich bin gerade dabei ein ReverseProxy Config einzurichten:
- Proxy Eintraege - Weiterleitung nur ein Ordner des Hosts (und alles darunter)
- Proxy Eintraege - Weiterleitung nur ein Ordner des Hosts (und alles darunter)
ProxyPass http://webserver:8095/ timeout=1200
ProxyPassReverse http://webserver:8095
</location>
Die Weiterleitung funktioniert von 443 auf 8095 und ich komme auch auf die Internetseite.
Ich würde aber gerne noch auf einen Folder weiterleiten, damit ich in der Browser-Adressenzeile nicht noch https://internetseite/folder eingeben muss.
Wo soll ich es in der RP-Config festlegen?
so funktioniert es leider nicht:
ProxyPass http://webserver:8095/folder timeout=1200
ProxyPassReverse http://webserver:8095/folder
</location>
Hat jemand einen Vorschlag?
LG
I2
Bitte markiere auch die Kommentare, die zur Lösung des Beitrags beigetragen haben
Content-ID: 12361290758
Url: https://administrator.de/forum/apache-reverseproxy-auf-webserver-folder-12361290758.html
Ausgedruckt am: 21.02.2025 um 18:02 Uhr
3 Kommentare
Neuester Kommentar
Moin,
Handbuch lesen:
Simple reverse proxying
The ProxyPass directive specifies the mapping of incoming requests to the backend server (or a cluster of servers known as a Balancer group). The simplest example proxies all requests ("/") to a single backend:
ProxyPass "/" "http://www.example.com/"
To ensure that and Location: headers generated from the backend are modified to point to the reverse proxy, instead of back to itself, the ProxyPassReverse directive is most often required:
ProxyPass "/" "http://www.example.com/"
ProxyPassReverse "/" "http://www.example.com/"
Only specific URIs can be proxied, as shown in this example:
ProxyPass "/images" "http://www.example.com/"
ProxyPassReverse "/images" "http://www.example.com/"
In the above, any requests which start with the /images path with be proxied to the specified backend, otherwise it will be handled locally.
https://httpd.apache.org/docs/2.4/howto/reverse_proxy.html
hth
Erik
Handbuch lesen:
Simple reverse proxying
The ProxyPass directive specifies the mapping of incoming requests to the backend server (or a cluster of servers known as a Balancer group). The simplest example proxies all requests ("/") to a single backend:
ProxyPass "/" "http://www.example.com/"
To ensure that and Location: headers generated from the backend are modified to point to the reverse proxy, instead of back to itself, the ProxyPassReverse directive is most often required:
ProxyPass "/" "http://www.example.com/"
ProxyPassReverse "/" "http://www.example.com/"
Only specific URIs can be proxied, as shown in this example:
ProxyPass "/images" "http://www.example.com/"
ProxyPassReverse "/images" "http://www.example.com/"
In the above, any requests which start with the /images path with be proxied to the specified backend, otherwise it will be handled locally.
https://httpd.apache.org/docs/2.4/howto/reverse_proxy.html
hth
Erik
Zitat von @istike2:
Vielen Dank!
Ja, das mit Lesen ist schon echt praktisch und ist sicherlich vom Vorteil
Vielen Dank!
Ja, das mit Lesen ist schon echt praktisch und ist sicherlich vom Vorteil
ja sonst wären wir ja auch nicht besser als user
Es gilt immer RTFM