Appache 2.4 - Reverse Proxy mit Standortanweisung funktioniert nicht

Appache 2.4 - Reverse Proxy mit Standortanweisung funktioniert nicht

Ich habe ein Problem mit dem Reverse-Proxy von Apache 2.4.

Apache-Konfiguration:

ProxyPass "/"  "http://domain2.com"
ProxyPassReverse "/"  "http://domain2.com/"
SetEnv force-proxy-request-1.0 1
SetEnv proxy-nokeepalive 1
# If the path restricted cookie is set or the request asks for Javascript, images, or other content we don't need to protect
RewriteCond %{HTTP_COOKIE} t_path=.+
#RewriteCond %{REQUEST_URI} \.(?!(html|htm|pdf))
RewriteRule ^/(.*)$ http://domain2.com/$1 [P,QSA]

# If we have a token in the query string, verify it
RewriteCond %{QUERY_STRING} t=(.+)$
RewriteRule ^(/.*)      /auth/?path=$1 [passthrough,QSA]

RewriteRule ^.*$ - [F]


<Location /test>
        SetHandler modperl
        PerlOptions +GlobalRequest
        PerlResponseHandler test::Handler
</Location> 

Wenn ich die URL drückehttp://domain1.com/abc/cdb/?t=787986im Browser wird der folgende Fehler ausgegeben: " The requested URL /auth/ was not found on this server." Auch wenn ich die Schritte ausführe wie „Reverse-Proxy-Zeilen entfernen -> Apache neu starten -> URL im Browser aufrufen -> Reverse-Proxy-Zeilen hinzufügen - Apache neu starten“, funktioniert es einwandfrei (kann zwischengespeichert sein). Ich test::Handlerwerde die gültige URL und ihre Parameter prüfen und die Umleitungs-URL festlegen. Es gab ein Problem mit dem Reverse-Proxy und dem Standort. Kann mir bitte jemand helfen, das Problem zu lösen?

verwandte Informationen