
Estou enfrentando um problema no proxy reverso do Apache2.4.
Configuração do Appache:
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>
Se eu clicar no URLhttp://domain1.com/abc/cdb/?t=787986no navegador, gera um erro como " The requested URL /auth/ was not found on this server.
" Além disso, se eu seguir as etapas como "remover linhas de proxy reverso-> reiniciar o apache-> clicar em url no navegador-> adicionar linhas de proxy reverso-reiniciar o apache", funciona bem (pode ser armazenado em cache). test::Handler
verificará o URL válido e seus parâmetros e definirá o URL de redirecionamento de retorno. houve problema no proxy reverso e na localização. Por favor, alguém me ajude a resolver.