<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
JBoss Web to Management Console Redirects
</h3>
<span style="margin-bottom: 10px;">
modified by <a href="https://community.jboss.org/people/dlofthouse">Darran Lofthouse</a> in <i>JBoss AS 7 Development</i> - <a href="https://community.jboss.org/docs/DOC-18057">View the full document</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>To help users get started with AS7 we include a simple welcome context exposed on the JBoss Web connector, on clicking the link for the admin console we attempt a redirect after checking if we believe it is likely to succeed - this document describes the redirect scenarios and expected outcomes.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>One point to note is that the JBoss Web connector and management HTTP interface are deliberatly separate - when sending a redirect we do not want the redirect to be revealing internal server details not intended to be made public.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>The following addresses are available to us for the comparison: -</p><ul><li>The management bind address.<ul><li>127.0.0.1</li><li>::1</li><li>0.0.0.0 or ::</li><li>Another non-loopback address.</li></ul></li><li>The local address of the JBoss Web connector.<ul><li>127.0.0.1</li><li>::1</li><li>Another non-loopback address.</li></ul></li><li>The host name within the HTTP header.<ul><li>127.0.0.1 (Or equivalent host name)</li><li>::1 (Or equivalent host name)</li><li>Another non-loopback address.</li><li>An address not on this server.</li></ul></li></ul><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><table border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 100%; border: 1px solid #000000;"><tbody><tr><th align="center" style="border:1px solid black;border: 1px solid #000000;background-color: #6690bc;" valign="middle"><span style="color: #ffffff;"><strong>Management Bind Address<br/></strong></span></th><th align="center" style="border:1px solid black;border: 1px solid #000000;background-color: #6690bc;" valign="middle"><span style="color: #ffffff;"><strong>Local Address<br/></strong></span></th><th align="center" style="border:1px solid black;border: 1px solid #000000;background-color: #6690bc;" valign="middle"><span style="color: #ffffff;"><strong>Host from Header<br/></strong></span></th><th align="center" style="border:1px solid black;border: 1px solid #000000;background-color: #6690bc;" valign="middle"><span style="color: #ffffff;"><strong>Outcome<br/></strong></span></th></tr><tr><td style="border:1px solid black;border: 1px solid #000000;">127.0.0.1</td><td style="border:1px solid black;border: 1px solid #000000;">127.0.0.1</td><td style="border:1px solid black;border: 1px solid #000000;"><br/></td><td style="border:1px solid black;border: 1px solid #000000;">Redirect using host from header.</td></tr><tr><td style="border:1px solid black;border: 1px solid #000000;">::1</td><td style="border:1px solid black;border: 1px solid #000000;">::1</td><td style="border:1px solid black;border: 1px solid #000000;"><br/></td><td style="border:1px solid black;border: 1px solid #000000;">Redirect using host from header.</td></tr><tr><td style="border:1px solid black;border: 1px solid #000000;">127.0.0.1</td><td style="border:1px solid black;border: 1px solid #000000;">::1</td><td style="border:1px solid black;border: 1px solid #000000;">Any loopback representation</td><td style="border:1px solid black;border: 1px solid #000000;">Redirect using 127.0.0.1</td></tr><tr><td style="border:1px solid black;border: 1px solid #000000;">::1</td><td style="border:1px solid black;border: 1px solid #000000;">127.0.0.1</td><td style="border:1px solid black;border: 1px solid #000000;">Any loopback representation</td><td style="border:1px solid black;border: 1px solid #000000;">Redirect using ::1</td></tr><tr><td style="border:1px solid black;border: 1px solid #000000;">0.0.0.0 or ::</td><td style="border:1px solid black;border: 1px solid #000000;"><br/></td><td style="border:1px solid black;border: 1px solid #000000;"><br/></td><td style="border:1px solid black;border: 1px solid #000000;">Redirect using host from header.</td></tr><tr><td style="border:1px solid black;border: 1px solid #000000;">A specific non-loopback address</td><td style="border:1px solid black;border: 1px solid #000000;">A specific non-loopback address</td><td style="border:1px solid black;border: 1px solid #000000;"><br/></td><td style="border:1px solid black;border: 1px solid #000000;">Ensure the two addresses are the same, redirect using the host from the header.</td></tr><tr><td style="border:1px solid black;border: 1px solid #000000;"><br/></td><td style="border:1px solid black;border: 1px solid #000000;"><br/></td><td style="border:1px solid black;border: 1px solid #000000;"><br/></td><td style="border:1px solid black;border: 1px solid #000000;">Other scenarios reject.</td></tr></tbody></table><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>It is important to remember that the intention of this redirect is a simple redirect to help users navigate from port 8080 which they are used to over to the management console on port 9990, once network configuration becomes more complex it is very difficult if not impossible for us detect if redirects are even possible.  </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Once the network configuration becomes more complex it is expected that administrators will connect directly to the management console and disable the welcome context and not rely on having a welcome context running adjacent to their deployed applications.</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Comment by <a href="https://community.jboss.org/docs/DOC-18057">going to Community</a></p>
        <p style="margin: 0;">Create a new document in JBoss AS 7 Development at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=102&containerType=14&container=2225">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>