You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users-de@httpd.apache.org by Michael Schoenboeck <li...@digitalhome.cc> on 2005/09/01 21:27:12 UTC
Kleines aber feines Problem mit ReverseProxy (und redirects / PHP)
Moin,
Also ich habe ein problem mit mod_proxy und redirects (header Location: ..)
Augangsstellung:
3 Domains, davon 2 interne und eine extern erreichbar.
Die internen will ich mit inem ReverseProxy nach aussen verfügbar machen.
Zu diesem zweck habe ich den virtualhost von domainext.xy so konfiguriert
das die internen wie folgt erreichbar sind:
- Domainext.xy/domainint1.xy
- Domainext.xy/domainint2.xy
Das ganze funzt auch prima, bis auf die tatsache der er mir header redirects
(Location: .. Nicht zu rande kommt.
Beispiel von domainint1.xy dort leitet die domainint1.xy/file.php nach
domainint1.xy/file2.php weiter, blos wird das vom proxy nicht abgefangen und
umgeschrieben, so lande ich am ende auf http://domainint1.xy/file2.php und
nicht auf http://domainext.xy/domainint1.xy/file2.php jetz brauch ich ne
möglichkeit das er auch redirect header umschreibt, nur wie stell ich das
an?
Aktuelle Config:
Apache 2.0.54 mit allen nötigen mod_proxy modulen
<VirtualHost ...>
ServerName domainext.xy
ProxyRequests off
ProxyPass /domainint1.xy/ http://domainint1.xy/
ProxyHTMLURLMap http://domainint1.xy /domainint1.xy
<Location /domainint1.xy/>
ProxyPassReverse /
SetOutputFilter proxy-html
ProxyHTMLURLMap / /domainint1.xy/
ProxyHTMLURLMap /domainint1.xy /domainint1.xy
RequestHeader unset Accept-Encoding
</Location>
ProxyPass /domainint2.xy/ http://domainint2.xy/
ProxyHTMLURLMap http://domainint2.xy /domainint2.xy
<Location /domainint2.xy/>
ProxyPassReverse /
SetOutputFilter proxy-html
ProxyHTMLURLMap / /domainint2.xy/
ProxyHTMLURLMap /domainint2.xy /domainint2.xy
RequestHeader unset Accept-Encoding
</Location>
Options -Indexes MultiViews
DirectoryIndex index.php
DocumentRoot "/web/public/"
</VirtualHost>
Mit besten Grüssen
Michael Schönböck
--
>> Acaris & Schönböck OEG
M: michael@asoeg.at
W: http://www.asoeg.at
T: +43 664 4300146
F: +43 664 4383481
P: Ruckling 6/1
A-5204 Strasswalchen
Austria / Europe
--------------------------------------------------------------------------
Apache HTTP Server Mailing List "users-de"
unsubscribe-Anfragen an users-de-unsubscribe@httpd.apache.org
sonstige Anfragen an users-de-help@httpd.apache.org
--------------------------------------------------------------------------