configuring mod_proxy with JBoss EAP-7 running in standalone mode

Latest response


I'm newbie here...i'm trying to configure web proxy to get my application so the set-up is

apache httpd 2.4 / mod_proxy (windows) => jboss-eap-7.0/standalone (linux)
in app we are using keycloak to validate the user then redirect to app if successful

the issue i'm getting whenever i try to access - Invalid ...redirect uri

in my httpd.conf:


SSLProtocol TLSv1.1 TLSv1.2

    SSLEngine On 
    SSLProxyEngine on

    SSLProxyVerify none 
    SSLProxyCheckPeerCN off
    SSLProxyCheckPeerName off
    SSLProxyCheckPeerExpire off

    #SSLCertificateKeyFile conf/certs/server.key
    #SSLCertificateFile conf/certs/cert.cer 
    #SSLCACertificateFile conf/certs/intermediate.crt 

    #SSLCertificateFile conf/ssl/server.crt  
    #SSLCertificateKeyFile conf/ssl/server.key

SSLCertificateKeyFile conf/certs/server.key
SSLCertificateFile conf/certs/certnew-prmeightqa.pem
SSLCertificateChainFile conf/certs/certnew-chain-prmeightqa.p7b    

RequestHeader set X-Forwarded-Proto "https" 
ProxyPreserveHost On

    #New Firms
    ProxyPass /firms 
    ProxyPassReverse /firms

Also, attached is my standalone.xml and httpd.conf.
I hope somebody can help me configure this:


I'm not sure if you still need help. I faced this problem and solved it by edit "valid redirect URIs" to "/*" on keycloak client of your application. Hope it helpful for you.