Michael: Apache2: Problem mit ReverseProxy (und redirects / PHP)

Beitrag lesen

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