<font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><div style="font-family: Verdana, Arial, Helvetica, sans-serif;">Hi Peter,<br></div><div style="font-family: Verdana, Arial, Helvetica, sans-serif;"><br></div><div style="font-family: Verdana, Arial, Helvetica, sans-serif;">Thank you for the clarifications.</div><div style="font-family: Verdana, Arial, Helvetica, sans-serif;">I solved the issue by removing the http(s) proxy and all of the proxy_html  configuration as you suggested.<br></div><div style="font-family: Verdana, Arial, Helvetica, sans-serif;">I only use ajp ProxyPass.<br></div><div style="font-family: Verdana, Arial, Helvetica, sans-serif;"><br></div><div style="font-family: Verdana, Arial, Helvetica, sans-serif;">For future reference if someone has a similar problem my configuration is:</div><div style="font-family: Verdana, Arial, Helvetica, sans-serif;"><br></div><div style="font-family: Verdana, Arial, Helvetica, sans-serif;">in sites-enables example.com.conf:</div><div style="font-family: Verdana, Arial, Helvetica, sans-serif;"><div><IfModule mod_ssl.c></div><div><VirtualHost *:443></div></div><div style=""><div style="margin-left: 40px; margin-right: 0px;"><font face="Verdana, Arial, Helvetica, sans-serif"><span style="font-size: 12.8px;"><i>ProxyPreserveHost On</i></span></font></div><div style="margin-left: 40px; margin-right: 0px;"><font face="Verdana, Arial, Helvetica, sans-serif"><span style="font-size: 12.8px;"><i>ProxyRequests Off</i></span></font></div><div style="margin-left: 40px; margin-right: 0px;"><font face="Verdana, Arial, Helvetica, sans-serif"><span style="font-size: 12.8px;"><i>ServerAdmin webmaster@localhost</i></span></font></div><div style="margin-left: 40px; margin-right: 0px;"><font face="Verdana, Arial, Helvetica, sans-serif"><span style="font-size: 12.8px;"><i>ServerName example.com</i></span></font></div><div style="margin-left: 40px; margin-right: 0px;"><font face="Verdana, Arial, Helvetica, sans-serif"><span style="font-size: 12.8px;"><i>ServerAlias example.com</i></span></font></div><div style="margin-left: 40px; margin-right: 0px;"><font face="Verdana, Arial, Helvetica, sans-serif"><span style="font-size: 12.8px;"><i><br></i></span></font></div><div style="margin-left: 40px; margin-right: 0px;"><i><span style="font-family: Verdana, Arial, Helvetica, sans-serif;">SSLEngine On</span><br></i></div><div style="margin-left: 40px; margin-right: 0px;"><font face="Verdana, Arial, Helvetica, sans-serif"><span style="font-size: 12.8px;"><i>SSLProxyEngine On</i></span></font></div><div style="margin-left: 40px; margin-right: 0px;"><font face="Verdana, Arial, Helvetica, sans-serif"><span style="font-size: 12.8px;"><i>    </i></span></font></div><div style="margin-left: 40px; margin-right: 0px;"><font face="Verdana, Arial, Helvetica, sans-serif"><span style="font-size: 12.8px;"><i>ProxyPass /app/  ajp://localhost:8009/app/</i></span></font></div><div style="margin-left: 40px; margin-right: 0px;"><i><span style="font-family: Verdana, Arial, Helvetica, sans-serif;">ProxyPass /Shibboleth.sso/* ! </span><br></i></div><div style="margin-left: 40px; margin-right: 0px;"><font face="Verdana, Arial, Helvetica, sans-serif"><span style="font-size: 12.8px;"><i>    </i></span></font></div><div style="margin-left: 40px; margin-right: 0px;"><font face="Verdana, Arial, Helvetica, sans-serif"><span style="font-size: 12.8px;"><i>ErrorLog ${APACHE_LOG_DIR}/error.log</i></span></font></div><div style="margin-left: 40px; margin-right: 0px;"><font face="Verdana, Arial, Helvetica, sans-serif"><span style="font-size: 12.8px;"><i>CustomLog ${APACHE_LOG_DIR}/access.log combined</i></span></font></div><div style="margin-left: 40px; margin-right: 0px;"><font face="Verdana, Arial, Helvetica, sans-serif"><span style="font-size: 12.8px;"><i><br></i></span></font></div><div style="margin-left: 40px; margin-right: 0px;"><font face="Verdana, Arial, Helvetica, sans-serif"><span style="font-size: 12.8px;"><i>SSLCertificateFile /etc/letsencrypt/live/example.com/fullchain.pem</i></span></font></div><div style="margin-left: 40px; margin-right: 0px;"><font face="Verdana, Arial, Helvetica, sans-serif"><span style="font-size: 12.8px;"><i>SSLCertificateKeyFile /etc/letsencrypt/live/example.com/privkey.pem</i></span></font></div><div style="margin-left: 40px; margin-right: 0px;"><font face="Verdana, Arial, Helvetica, sans-serif"><span style="font-size: 12.8px;"><i>Include /etc/letsencrypt/options-ssl-apache.conf</i></span></font></div></div><div style="font-family: Verdana, Arial, Helvetica, sans-serif;"><div></VirtualHost></div><div></IfModule></div></div><div style="font-family: Verdana, Arial, Helvetica, sans-serif;"><br></div><div style="font-family: Verdana, Arial, Helvetica, sans-serif;">And my AJP connector in Spring (written in Kotlin):</div><div style="font-family: Verdana, Arial, Helvetica, sans-serif;"><br></div><div style="font-family: Verdana, Arial, Helvetica, sans-serif;"><table class="highlight tab-size js-file-line-container" data-tab-size="8" style="box-sizing: border-box; border-spacing: 0px; border-collapse: collapse; tab-size: 8; color: rgb(36, 41, 46); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; font-size: 14px;"><tbody style="box-sizing: border-box;"><tr style="box-sizing: border-box;"><td id="LC35" class="blob-code blob-code-inner js-file-line" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; overflow-wrap: normal; white-space: pre;"><div><br></div></td></tr><tr style="box-sizing: border-box;"><td id="L38" class="blob-num js-line-number" data-line-number="38" style="box-sizing: border-box; padding: 0px 10px; width: 50.4px; min-width: 50px; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; line-height: 20px; color: rgba(27, 31, 35, 0.3); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; user-select: none;"><div><br></div></td><td id="LC38" class="blob-code blob-code-inner js-file-line" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; overflow-wrap: normal; white-space: pre;">    <span class="pl-k" style="box-sizing: border-box;"><font color="#d73a49">@Bean</font></span></td></tr><tr style="box-sizing: border-box;"><td id="L39" class="blob-num js-line-number" data-line-number="39" style="box-sizing: border-box; padding: 0px 10px; width: 50.4px; min-width: 50px; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; line-height: 20px; color: rgba(27, 31, 35, 0.3); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; user-select: none;"></td><td id="LC39" class="blob-code blob-code-inner js-file-line" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; overflow-wrap: normal; white-space: pre;">    <span class="pl-k" style="box-sizing: border-box;"><font color="#d73a49">open</font></span> <span class="pl-k" style="box-sizing: border-box;"><font color="#d73a49">fun</font></span> <span class="pl-en" style="box-sizing: border-box;"><font color="#6f42c1">servletContainer</font></span>()<span class="pl-k" style="box-sizing: border-box;"><font color="#d73a49">:</font></span> <span class="pl-en" style="box-sizing: border-box;"><font color="#6f42c1">ServletWebServerFactory?</font></span> {</td></tr><tr style="box-sizing: border-box;"><td id="L40" class="blob-num js-line-number" data-line-number="40" style="box-sizing: border-box; padding: 0px 10px; width: 50.4px; min-width: 50px; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; line-height: 20px; color: rgba(27, 31, 35, 0.3); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; user-select: none;"></td><td id="LC40" class="blob-code blob-code-inner js-file-line" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; overflow-wrap: normal; white-space: pre;">        <span class="pl-k" style="box-sizing: border-box;"><font color="#d73a49">val</font></span> tomcat<span class="pl-k" style="box-sizing: border-box;"><font color="#d73a49">:</font></span> <span class="pl-en" style="box-sizing: border-box;"><font color="#6f42c1">TomcatServletWebServerFactory</font></span> <span class="pl-k" style="box-sizing: border-box;"><font color="#d73a49">=</font></span> <span class="pl-k" style="box-sizing: border-box;"><font color="#d73a49">object</font></span> <span class="pl-k" style="box-sizing: border-box;"><font color="#d73a49">:</font></span> <span class="pl-en" style="box-sizing: border-box;"><font color="#6f42c1">TomcatServletWebServerFactory</font></span>() {</td></tr><tr style="box-sizing: border-box;"><td id="L41" class="blob-num js-line-number" data-line-number="41" style="box-sizing: border-box; padding: 0px 10px; width: 50.4px; min-width: 50px; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; line-height: 20px; color: rgba(27, 31, 35, 0.3); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; user-select: none;"></td><td id="LC41" class="blob-code blob-code-inner js-file-line" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; overflow-wrap: normal; white-space: pre;">            <span class="pl-k" style="box-sizing: border-box;"><font color="#d73a49">override</font></span> <span class="pl-k" style="box-sizing: border-box;"><font color="#d73a49">fun</font></span> <span class="pl-en" style="box-sizing: border-box;"><font color="#6f42c1">postProcessContext</font></span>(<span class="pl-smi" style="box-sizing: border-box;">context</span><span class="pl-k" style="box-sizing: border-box;"><font color="#d73a49">:</font></span> <span class="pl-en" style="box-sizing: border-box;"><font color="#6f42c1">Context</font></span>) {</td></tr><tr style="box-sizing: border-box;"><td id="L42" class="blob-num js-line-number" data-line-number="42" style="box-sizing: border-box; padding: 0px 10px; width: 50.4px; min-width: 50px; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; line-height: 20px; color: rgba(27, 31, 35, 0.3); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; user-select: none;"></td><td id="LC42" class="blob-code blob-code-inner js-file-line" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; overflow-wrap: normal; white-space: pre;">                <span class="pl-k" style="box-sizing: border-box;"><font color="#d73a49">val</font></span> securityConstraint <span class="pl-k" style="box-sizing: border-box;"><font color="#d73a49">=</font></span> <span class="pl-en" style="box-sizing: border-box;"><font color="#6f42c1">SecurityConstraint</font></span>()</td></tr><tr style="box-sizing: border-box;"><td id="L43" class="blob-num js-line-number" data-line-number="43" style="box-sizing: border-box; padding: 0px 10px; width: 50.4px; min-width: 50px; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; line-height: 20px; color: rgba(27, 31, 35, 0.3); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; user-select: none;"></td><td id="LC43" class="blob-code blob-code-inner js-file-line" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; overflow-wrap: normal; white-space: pre;">                securityConstraint.userConstraint <span class="pl-k" style="box-sizing: border-box;"><font color="#d73a49">=</font></span> <span class="pl-s" style="box-sizing: border-box;"><font color="#032f62"><span class="pl-pds" style="box-sizing: border-box;">"</span>CONFIDENTIAL<span class="pl-pds" style="box-sizing: border-box;">"</span></font></span></td></tr><tr style="box-sizing: border-box;"><td id="L44" class="blob-num js-line-number" data-line-number="44" style="box-sizing: border-box; padding: 0px 10px; width: 50.4px; min-width: 50px; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; line-height: 20px; color: rgba(27, 31, 35, 0.3); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; user-select: none;"></td><td id="LC44" class="blob-code blob-code-inner js-file-line" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; overflow-wrap: normal; white-space: pre;">                <span class="pl-k" style="box-sizing: border-box;"><font color="#d73a49">val</font></span> collection <span class="pl-k" style="box-sizing: border-box;"><font color="#d73a49">=</font></span> <span class="pl-en" style="box-sizing: border-box;"><font color="#6f42c1">SecurityCollection</font></span>()</td></tr><tr style="box-sizing: border-box;"><td id="L45" class="blob-num js-line-number" data-line-number="45" style="box-sizing: border-box; padding: 0px 10px; width: 50.4px; min-width: 50px; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; line-height: 20px; color: rgba(27, 31, 35, 0.3); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; user-select: none;"></td><td id="LC45" class="blob-code blob-code-inner js-file-line" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; overflow-wrap: normal; white-space: pre;">                collection.addPattern(<span class="pl-s" style="box-sizing: border-box;"><font color="#032f62"><span class="pl-pds" style="box-sizing: border-box;">"</span>/*<span class="pl-pds" style="box-sizing: border-box;">"</span></font></span>)</td></tr><tr style="box-sizing: border-box;"><td id="L46" class="blob-num js-line-number" data-line-number="46" style="box-sizing: border-box; padding: 0px 10px; width: 50.4px; min-width: 50px; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; line-height: 20px; color: rgba(27, 31, 35, 0.3); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; user-select: none;"></td><td id="LC46" class="blob-code blob-code-inner js-file-line" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; overflow-wrap: normal; white-space: pre;">                securityConstraint.addCollection(collection)</td></tr><tr style="box-sizing: border-box;"><td id="L47" class="blob-num js-line-number" data-line-number="47" style="box-sizing: border-box; padding: 0px 10px; width: 50.4px; min-width: 50px; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; line-height: 20px; color: rgba(27, 31, 35, 0.3); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; user-select: none;"></td><td id="LC47" class="blob-code blob-code-inner js-file-line" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; overflow-wrap: normal; white-space: pre;">                context.addConstraint(securityConstraint)</td></tr><tr style="box-sizing: border-box;"><td id="L48" class="blob-num js-line-number" data-line-number="48" style="box-sizing: border-box; padding: 0px 10px; width: 50.4px; min-width: 50px; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; line-height: 20px; color: rgba(27, 31, 35, 0.3); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; user-select: none;"></td><td id="LC48" class="blob-code blob-code-inner js-file-line" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; overflow-wrap: normal; white-space: pre;">            }</td></tr><tr style="box-sizing: border-box;"><td id="L49" class="blob-num js-line-number" data-line-number="49" style="box-sizing: border-box; padding: 0px 10px; width: 50.4px; min-width: 50px; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; line-height: 20px; color: rgba(27, 31, 35, 0.3); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; user-select: none;"></td><td id="LC49" class="blob-code blob-code-inner js-file-line" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; overflow-wrap: normal; white-space: pre;">        }</td></tr><tr style="box-sizing: border-box;"><td id="L50" class="blob-num js-line-number" data-line-number="50" style="box-sizing: border-box; padding: 0px 10px; width: 50.4px; min-width: 50px; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; line-height: 20px; color: rgba(27, 31, 35, 0.3); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; user-select: none;"></td><td id="LC50" class="blob-code blob-code-inner js-file-line" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; overflow-wrap: normal; white-space: pre;">        tomcat.addAdditionalTomcatConnectors(redirectConnector())</td></tr><tr style="box-sizing: border-box;"><td id="L51" class="blob-num js-line-number" data-line-number="51" style="box-sizing: border-box; padding: 0px 10px; width: 50.4px; min-width: 50px; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; line-height: 20px; color: rgba(27, 31, 35, 0.3); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; user-select: none;"></td><td id="LC51" class="blob-code blob-code-inner js-file-line" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; overflow-wrap: normal; white-space: pre;">        <span class="pl-k" style="box-sizing: border-box;"><font color="#d73a49">return</font></span> tomcat</td></tr><tr style="box-sizing: border-box;"><td id="L52" class="blob-num js-line-number" data-line-number="52" style="box-sizing: border-box; padding: 0px 10px; width: 50.4px; min-width: 50px; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; line-height: 20px; color: rgba(27, 31, 35, 0.3); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; user-select: none;"></td><td id="LC52" class="blob-code blob-code-inner js-file-line" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; overflow-wrap: normal; white-space: pre;">    }</td></tr><tr style="box-sizing: border-box;"><td id="L53" class="blob-num js-line-number" data-line-number="53" style="box-sizing: border-box; padding: 0px 10px; width: 50.4px; min-width: 50px; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; line-height: 20px; color: rgba(27, 31, 35, 0.3); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; user-select: none;"></td><td id="LC53" class="blob-code blob-code-inner js-file-line" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; overflow-wrap: normal; white-space: pre;"> </td></tr><tr style="box-sizing: border-box;"><td id="L54" class="blob-num js-line-number" data-line-number="54" style="box-sizing: border-box; padding: 0px 10px; width: 50.4px; min-width: 50px; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; line-height: 20px; color: rgba(27, 31, 35, 0.3); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; user-select: none;"></td><td id="LC54" class="blob-code blob-code-inner js-file-line" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; overflow-wrap: normal; white-space: pre;">    <span class="pl-k" style="box-sizing: border-box;"><font color="#d73a49">var</font></span> maxSize <span class="pl-k" style="box-sizing: border-box;"><font color="#d73a49">=</font></span> <span class="pl-c1" style="box-sizing: border-box;"><font color="#005cc5">50000000</font></span></td></tr><tr style="box-sizing: border-box;"><td id="L55" class="blob-num js-line-number" data-line-number="55" style="box-sizing: border-box; padding: 0px 10px; width: 50.4px; min-width: 50px; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; line-height: 20px; color: rgba(27, 31, 35, 0.3); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; user-select: none;"></td><td id="LC55" class="blob-code blob-code-inner js-file-line" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; overflow-wrap: normal; white-space: pre;"> </td></tr><tr style="box-sizing: border-box;"><td id="L56" class="blob-num js-line-number" data-line-number="56" style="box-sizing: border-box; padding: 0px 10px; width: 50.4px; min-width: 50px; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; line-height: 20px; color: rgba(27, 31, 35, 0.3); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; user-select: none;"></td><td id="LC56" class="blob-code blob-code-inner js-file-line" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; overflow-wrap: normal; white-space: pre;">    <span class="pl-k" style="box-sizing: border-box;"><font color="#d73a49">open</font></span> <span class="pl-k" style="box-sizing: border-box;"><font color="#d73a49">fun</font></span> <span class="pl-en" style="box-sizing: border-box;"><font color="#6f42c1">redirectConnector</font></span>()<span class="pl-k" style="box-sizing: border-box;"><font color="#d73a49">:</font></span> <span class="pl-en" style="box-sizing: border-box;"><font color="#6f42c1">Connector?</font></span> {</td></tr><tr style="box-sizing: border-box;"><td id="L57" class="blob-num js-line-number" data-line-number="57" style="box-sizing: border-box; padding: 0px 10px; width: 50.4px; min-width: 50px; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; line-height: 20px; color: rgba(27, 31, 35, 0.3); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; user-select: none;"></td><td id="LC57" class="blob-code blob-code-inner js-file-line" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; overflow-wrap: normal; white-space: pre;">        <span class="pl-k" style="box-sizing: border-box;"><font color="#d73a49">val</font></span> connector <span class="pl-k" style="box-sizing: border-box;"><font color="#d73a49">=</font></span> <span class="pl-en" style="box-sizing: border-box;"><font color="#6f42c1">Connector</font></span>(<span class="pl-s" style="box-sizing: border-box;"><font color="#032f62"><span class="pl-pds" style="box-sizing: border-box;">"</span>AJP/1.3<span class="pl-pds" style="box-sizing: border-box;">"</span></font></span>)</td></tr><tr style="box-sizing: border-box;"><td id="L58" class="blob-num js-line-number" data-line-number="58" style="box-sizing: border-box; padding: 0px 10px; width: 50.4px; min-width: 50px; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; line-height: 20px; color: rgba(27, 31, 35, 0.3); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; user-select: none;"></td><td id="LC58" class="blob-code blob-code-inner js-file-line" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; overflow-wrap: normal; white-space: pre;">        connector.scheme <span class="pl-k" style="box-sizing: border-box;"><font color="#d73a49">=</font></span> <span class="pl-s" style="box-sizing: border-box;"><font color="#032f62"><span class="pl-pds" style="box-sizing: border-box;">"</span>https<span class="pl-pds" style="box-sizing: border-box;">"</span></font></span></td></tr><tr style="box-sizing: border-box;"><td id="L59" class="blob-num js-line-number" data-line-number="59" style="box-sizing: border-box; padding: 0px 10px; width: 50.4px; min-width: 50px; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; line-height: 20px; color: rgba(27, 31, 35, 0.3); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; user-select: none;"></td><td id="LC59" class="blob-code blob-code-inner js-file-line" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; overflow-wrap: normal; white-space: pre;">        connector.port <span class="pl-k" style="box-sizing: border-box;"><font color="#d73a49">=</font></span> <span class="pl-c1" style="box-sizing: border-box;"><font color="#005cc5">8009</font></span></td></tr><tr style="box-sizing: border-box;"><td id="L60" class="blob-num js-line-number" data-line-number="60" style="box-sizing: border-box; padding: 0px 10px; width: 50.4px; min-width: 50px; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; line-height: 20px; color: rgba(27, 31, 35, 0.3); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; user-select: none;"></td><td id="LC60" class="blob-code blob-code-inner js-file-line" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; overflow-wrap: normal; white-space: pre;">        connector.secure <span class="pl-k" style="box-sizing: border-box;"><font color="#d73a49">=</font></span> <span class="pl-c1" style="box-sizing: border-box;"><font color="#005cc5">true</font></span></td></tr><tr style="box-sizing: border-box;"><td id="L61" class="blob-num js-line-number" data-line-number="61" style="box-sizing: border-box; padding: 0px 10px; width: 50.4px; min-width: 50px; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; line-height: 20px; color: rgba(27, 31, 35, 0.3); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; user-select: none;"></td><td id="LC61" class="blob-code blob-code-inner js-file-line" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; overflow-wrap: normal; white-space: pre;">        connector.uriEncoding <span class="pl-k" style="box-sizing: border-box;"><font color="#d73a49">=</font></span> <span class="pl-s" style="box-sizing: border-box;"><font color="#032f62"><span class="pl-pds" style="box-sizing: border-box;">"</span>UTF-8<span class="pl-pds" style="box-sizing: border-box;">"</span></font></span></td></tr><tr style="box-sizing: border-box;"><td id="L62" class="blob-num js-line-number" data-line-number="62" style="box-sizing: border-box; padding: 0px 10px; width: 50.4px; min-width: 50px; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; line-height: 20px; color: rgba(27, 31, 35, 0.3); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; user-select: none;"></td><td id="LC62" class="blob-code blob-code-inner js-file-line" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; overflow-wrap: normal; white-space: pre;">        connector.allowTrace <span class="pl-k" style="box-sizing: border-box;"><font color="#d73a49">=</font></span> <span class="pl-c1" style="box-sizing: border-box;"><font color="#005cc5">false</font></span></td></tr><tr style="box-sizing: border-box;"><td id="L63" class="blob-num js-line-number" data-line-number="63" style="box-sizing: border-box; padding: 0px 10px; width: 50.4px; min-width: 50px; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; line-height: 20px; color: rgba(27, 31, 35, 0.3); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; user-select: none;"></td><td id="LC63" class="blob-code blob-code-inner js-file-line" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; overflow-wrap: normal; white-space: pre;">        connector.maxPostSize <span class="pl-k" style="box-sizing: border-box;"><font color="#d73a49">=</font></span> maxSize</td></tr><tr style="box-sizing: border-box;"><td id="L64" class="blob-num js-line-number" data-line-number="64" style="box-sizing: border-box; padding: 0px 10px; width: 50.4px; min-width: 50px; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; line-height: 20px; color: rgba(27, 31, 35, 0.3); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; user-select: none;"></td><td id="LC64" class="blob-code blob-code-inner js-file-line" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; overflow-wrap: normal; white-space: pre;">        connector.maxSavePostSize <span class="pl-k" style="box-sizing: border-box;"><font color="#d73a49">=</font></span> maxSize</td></tr><tr style="box-sizing: border-box;"><td id="L65" class="blob-num js-line-number" data-line-number="65" style="box-sizing: border-box; padding: 0px 10px; width: 50.4px; min-width: 50px; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; line-height: 20px; color: rgba(27, 31, 35, 0.3); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; user-select: none;"></td><td id="LC65" class="blob-code blob-code-inner js-file-line" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; overflow-wrap: normal; white-space: pre;">        connector.redirectPort <span class="pl-k" style="box-sizing: border-box;"><font color="#d73a49">=</font></span> <span class="pl-c1" style="box-sizing: border-box;"><font color="#005cc5">8443</font></span></td></tr><tr style="box-sizing: border-box;"><td id="L66" class="blob-num js-line-number" data-line-number="66" style="box-sizing: border-box; padding: 0px 10px; width: 50.4px; min-width: 50px; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; line-height: 20px; color: rgba(27, 31, 35, 0.3); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; user-select: none;"></td><td id="LC66" class="blob-code blob-code-inner js-file-line" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; overflow-wrap: normal; white-space: pre;">        <span class="pl-k" style="box-sizing: border-box;"><font color="#d73a49">return</font></span> connector</td></tr><tr style="box-sizing: border-box;"><td id="L67" class="blob-num js-line-number" data-line-number="67" style="box-sizing: border-box; padding: 0px 10px; width: 50.4px; min-width: 50px; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; line-height: 20px; color: rgba(27, 31, 35, 0.3); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; user-select: none;"></td><td id="LC67" class="blob-code blob-code-inner js-file-line" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; overflow-wrap: normal; white-space: pre;">    }</td></tr></tbody></table></div><div style="font-family: Verdana, Arial, Helvetica, sans-serif;"><br></div><div style="font-family: Verdana, Arial, Helvetica, sans-serif;">Thank you very much for your help.</div><div style="font-family: Verdana, Arial, Helvetica, sans-serif;"><br></div><div style="font-family: Verdana, Arial, Helvetica, sans-serif;">Best,</div><div style="font-family: Verdana, Arial, Helvetica, sans-serif;">Vasileios</div><div style="font-family: Verdana, Arial, Helvetica, sans-serif; margin: 4px 6px; direction: ltr;"><br></div><div style="font-family: Verdana, Arial, Helvetica, sans-serif; margin: 4px 6px; direction: ltr;"><font color="#990099">-----"users" <<a href="mailto:users-bounces@shibboleth.net" target="_blank">users-bounces@shibboleth.net</a>> wrote: -----</font></div><div class="iNotesHistory" style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-left: 5px;"><div style="padding-right: 0px; padding-left: 5px; border-left: 2px solid black;">To: <a href="mailto:users@shibboleth.net" target="_blank">users@shibboleth.net</a><br></div><div style="padding-right: 0px; padding-left: 5px; border-left: 2px solid black;">From: "Peter Schober" <peter.schober@univie.ac.at><br></peter.schober@univie.ac.at></div><div style="padding-right: 0px; padding-left: 5px; border-left: 2px solid black;"><peter.schober@univie.ac.at>Sent by: "users" <users-bounces@shibboleth.net><br></users-bounces@shibboleth.net></peter.schober@univie.ac.at></div><div style="padding-right: 0px; padding-left: 5px; border-left: 2px solid black;"><peter.schober@univie.ac.at><users-bounces@shibboleth.net>Date: 15/12/2019 13:39<br></users-bounces@shibboleth.net></peter.schober@univie.ac.at></div><div style="padding-right: 0px; padding-left: 5px; border-left: 2px solid black;"><peter.schober@univie.ac.at><users-bounces@shibboleth.net>Subject: Re: Shibboleth 3 attributes not exposed from Apache 2.4 as environment variables<br></users-bounces@shibboleth.net></peter.schober@univie.ac.at></div><div style="padding-right: 0px; padding-left: 5px; border-left: 2px solid black;"><peter.schober@univie.ac.at><users-bounces@shibboleth.net><br></users-bounces@shibboleth.net></peter.schober@univie.ac.at></div><div style="padding-right:0px;padding-left:5px;border-left:solid black 2px;"><peter.schober@univie.ac.at><users-bounces@shibboleth.net><div style=""><font face="Courier New,Courier,monospace" size="2">* <a href="mailto:vasileios.koukoutsas@uzh.ch" target="_blank">vasileios.koukoutsas@uzh.ch</a> <<a href="mailto:vasileios.koukoutsas@uzh.ch" target="_blank">vasileios.koukoutsas@uzh.ch</a>> [2019-12-14 17:43]:<br></font></div><div style=""><font face="Courier New,Courier,monospace" size="2">> You mentioned I do not use https for the following snippet:<br></font></div><div style=""><font face="Courier New,Courier,monospace" size="2"><br></font></div><div style=""><font face="Courier New,Courier,monospace" size="2">No, the point of me saying:<br></font></div><div style=""><font face="Courier New,Courier,monospace" size="2"><br></font></div><div style=""><font face="Courier New,Courier,monospace" size="2">> You're telling httpd to proxy via HTTP here (but you can't transfer<br></font></div><div style=""><font face="Courier New,Courier,monospace" size="2">> environment variables over HTTP).<br></font></div><div style=""><font face="Courier New,Courier,monospace" size="2"><br></font></div><div style=""><font face="Courier New,Courier,monospace" size="2">was not about HTTP vs. HTTPS, but that you're using the HTTP protocol<br></font></div><div style=""><font face="Courier New,Courier,monospace" size="2">here (whether wrapped in SSL or not is immaterial here) to communicate<br></font></div><div style=""><font face="Courier New,Courier,monospace" size="2">with Tomcat. And that you cannot transfer environment variables from<br></font></div><div style=""><font face="Courier New,Courier,monospace" size="2">httpd processes to Java that way, as the documentation states.<br></font></div><div style=""><font face="Courier New,Courier,monospace" size="2"><br></font></div><div style=""><font face="Courier New,Courier,monospace" size="2">(I also think that using SSL to talk to processes on localhost is<br></font></div><div style=""><font face="Courier New,Courier,monospace" size="2">pointless but that's not the issue here either.)<br></font></div><div style=""><font face="Courier New,Courier,monospace" size="2"><br></font></div><div style=""><font face="Courier New,Courier,monospace" size="2">> Is something missing? as far as I know using https in ProxyPass and<br></font></div><div style=""><font face="Courier New,Courier,monospace" size="2">> ProxyPassReverse will only redirect using https<br></font></div><div style=""><font face="Courier New,Courier,monospace" size="2">[...]<br></font></div><div style=""><font face="Courier New,Courier,monospace" size="2">> Currently if I try to access my webapp or any resource under Apache<br></font></div><div style=""><font face="Courier New,Courier,monospace" size="2">> I can only do it using https. http requests are automatically<br></font></div><div style=""><font face="Courier New,Courier,monospace" size="2">> redirected to https.<br></font></div><div style=""><font face="Courier New,Courier,monospace" size="2"><br></font></div><div style=""><font face="Courier New,Courier,monospace" size="2">Redirect in HTTP means telling the client to go elsewhere (commonly<br></font></div><div style=""><font face="Courier New,Courier,monospace" size="2">using a 30x status code and a Location HTTP Response Header), that's<br></font></div><div style=""><font face="Courier New,Courier,monospace" size="2">not what should be happening here.<br></font></div><div style=""><font face="Courier New,Courier,monospace" size="2"><br></font></div><div style=""><font face="Courier New,Courier,monospace" size="2">> If I have understood correctly I need both an https and an ajp<br></font></div><div style=""><font face="Courier New,Courier,monospace" size="2">> connectors (in Java backend) & their respective proxies in Apache.<br></font></div><div style=""><font face="Courier New,Courier,monospace" size="2">> The https connector running on port 10050 is used to server the web<br></font></div><div style=""><font face="Courier New,Courier,monospace" size="2">> content and the sole purpose of the ajp (port 8009) connector is to<br></font></div><div style=""><font face="Courier New,Courier,monospace" size="2">> have access to the attributes exposed by apache as environment<br></font></div><div style=""><font face="Courier New,Courier,monospace" size="2">> variables.<br></font></div><div style=""><font face="Courier New,Courier,monospace" size="2"><br></font></div><div style=""><font face="Courier New,Courier,monospace" size="2">Understood what correctly, specifically? But no, that's not correct.<br></font></div><div style=""><font face="Courier New,Courier,monospace" size="2">Like I already said all you need is an AJP connector in Tomcat (and no<br></font></div><div style=""><font face="Courier New,Courier,monospace" size="2">HTTP or HTTPS connectors at all) and one ProxyPass(Reverse) in httpd<br></font></div><div style=""><font face="Courier New,Courier,monospace" size="2">using mod_proxy_ajp.<br></font></div><div style=""><font face="Courier New,Courier,monospace" size="2"><br></font></div><div style=""><font face="Courier New,Courier,monospace" size="2">> I though that if you only use an https connector then you can only<br></font></div><div style=""><font face="Courier New,Courier,monospace" size="2">> fetch the attributes through the headers, which is strongly<br></font></div><div style=""><font face="Courier New,Courier,monospace" size="2">> recommended against.<br></font></div><div style=""><font face="Courier New,Courier,monospace" size="2"><br></font></div><div style=""><font face="Courier New,Courier,monospace" size="2">Yes. But the consequence of that realisation should not be to use an<br></font></div><div style=""><font face="Courier New,Courier,monospace" size="2">HTTPS connector /plus/ an AJP connector when /only/ an AJP connector<br></font></div><div style=""><font face="Courier New,Courier,monospace" size="2">can do it all.<br></font></div><div style=""><font face="Courier New,Courier,monospace" size="2"><br></font></div><div style=""><font face="Courier New,Courier,monospace" size="2">> Is there maybe a suggested configuration example from Shibboleth?<br></font></div><div style=""><font face="Courier New,Courier,monospace" size="2"><br></font></div><div style=""><font face="Courier New,Courier,monospace" size="2">If that is it's in the documentation.<br></font></div><div style=""><font face="Courier New,Courier,monospace" size="2">If it's not it will look like your ajp:// proxying example *without*<br></font></div><div style=""><font face="Courier New,Courier,monospace" size="2">also trying to proxy the same request via HTTP (or HTTPS) as well.<br></font></div><div style=""><font face="Courier New,Courier,monospace" size="2"><br></font></div><div style=""><font face="Courier New,Courier,monospace" size="2">-peter<br></font></div><div style=""><font face="Courier New,Courier,monospace" size="2">-- <br></font></div><div style=""><font face="Courier New,Courier,monospace" size="2">For Consortium Member technical support, see <a href="https://wiki.shibboleth.net/confluence/x/coFAAg">https://wiki.shibboleth.net/confluence/x/coFAAg</a><br></font></div><div><font face="Courier New,Courier,monospace" size="2">To unsubscribe from this list send an email to <a href="mailto:users-unsubscribe@shibboleth.net" target="_blank">users-unsubscribe@shibboleth.net</a><br></font></div></users-bounces@shibboleth.net></peter.schober@univie.ac.at></div></div><div></div></font>