<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi,<br class="">When I try to login to master realm, I’am redirected back to login page.<br class=""><br class="">I’m using:<br class="">Wildfly 8.2.0.Final<br class="">Keycloak version 1.1.0-Beta2<br class="">Apache2 as proxy server.<br class=""><br class="">Here is my apache configuration<br class=""><br class="">IfModule mod_ssl.c><br class=""> <VirtualHost _default_:443><br class=""> ServerName <a href="http://accounts.e-karton.net" class="">accounts.e-karton.net</a><br class=""><br class=""> ErrorLog ${APACHE_LOG_DIR}/<a href="http://accounts.e-karton.net" class="">accounts.e-karton.net</a>-error.log<br class=""> CustomLog ${APACHE_LOG_DIR}/<a href="http://accounts.e-karton.net" class="">accounts.e-karton.net</a>-access.log combined<br class=""><br class=""> SSLEngine on<br class=""> SSLProtocol all -SSLv2<br class=""> SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM<br class=""><br class=""><span class="Apple-tab-span" style="white-space: pre;">        </span>…SSL stuff omitted<br class=""><br class=""><br class=""> BrowserMatch "MSIE [2-6]" \<br class=""> nokeepalive ssl-unclean-shutdown \<br class=""> downgrade-1.0 force-response-1.0<br class=""> # MSIE 7 and newer should be able to use keepalive<br class=""> BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown<br class=""><br class=""><br class=""> SetOutputFilter DEFLATE<br class=""> SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|ico|png)$ \ no-gzip dont-vary<br class=""> SetEnvIfNoCase Request_URI \.(?:exe|t?gz|zip|bz2|sit|rar)$ \no-gzip dont-vary<br class="">SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|ico|png)$ \ no-gzip dont-vary<br class=""> SetEnvIfNoCase Request_URI \.(?:exe|t?gz|zip|bz2|sit|rar)$ \no-gzip dont-vary<br class=""> SetEnvIfNoCase Request_URI \.pdf$ no-gzip dont-vary<br class=""><br class=""> BrowserMatch ^Mozilla/4 gzip-only-text/html<br class=""> BrowserMatch ^Mozilla/4\.0[678] no-gzip<br class=""> BrowserMatch \bMSIE !no-gzip !gzip-only-text/htmles<br class=""><br class=""> # Turn off support for true Proxy behaviour as we are acting as<br class=""> # a transparent proxy<br class=""> ProxyRequests Off<br class=""><br class=""> # Turn off VIA header as we know where the requests are proxied<br class=""> ProxyVia Off<br class=""> ProxyPreserveHost On<br class=""> RequestHeader set X-Forwarded-Proto "https"<br class=""> SSLProxyEngine on<br class=""> <Proxy *><br class=""> AddDefaultCharset Off<br class=""> Order deny,allow<br class=""> Allow from all<br class=""> </Proxy><br class=""><br class=""><br class=""> ProxyPass / <a href="ajp://192.168.5.17:8009/" class="">ajp://192.168.5.17:8009/</a><br class=""> ProxyPassReverse / <a href="ajp://192.168.5.17:8009/" class="">ajp://192.168.5.17:8009/</a><br class=""> </VirtualHost><br class=""></IfModule><br class=""><br class=""><br class="">Wildfly configuration:<br class=""><br class=""><subsystem xmlns="urn:jboss:domain:undertow:1.2"><br class=""> <buffer-cache name="default"/><br class=""> <server name="default-server"><br class=""> <ajp-listener name="ajp" scheme="https" socket-binding="ajp"/><br class=""> <http-listener name="default" certificate-forwarding="true" socket-binding="http" proxy-address-forwarding="true"/><br class=""> <host name="default-host" alias="localhost"><br class=""> <location name="/" handler="welcome-content"/><br class=""> <filter-ref name="server-header"/><br class=""> <filter-ref name="x-powered-by-header"/><br class=""> </host><br class=""> <host name="accounts" alias="<a href="http://accounts.e-karton.net" class="">accounts.e-karton.net</a>" default-web-module="auth-server.war"/><br class=""> </server><br class=""> <servlet-container name="default"><br class=""> <jsp-config/><br class=""> <websockets/><br class=""> </servlet-container><br class=""> <handlers><br class=""> <file name="welcome-content" path="${jboss.home.dir}/welcome-content"/><br class=""> </handlers><br class=""> <filters><br class=""> <response-header name="server-header" header-name="Server" header-value="WildFly/8"/><br class=""> <response-header name="x-powered-by-header" header-name="X-Powered-By" header-value="Undertow/1"/><br class=""> </filters><br class=""> </subsystem><br class=""><br class="">Keycloak jboss-web.xml<br class=""><br class=""><?xml version="1.0"?><br class=""><!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 5.0//EN" "<a href="http://www.jboss.org/j2ee/dtd/jboss-web_5_0.dtd" class="">http://www.jboss.org/j2ee/dtd/jboss-web_5_0.dtd</a>"><br class=""><jboss-web><br class=""> <context-root>/</context-root><br class=""> <virtual-host>accounts</virtual-host><br class=""></jboss-web><br class=""><br class="">Can anyone help me with this?</body></html>