<!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="http://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;">
    Re: Making eXo Platform available at the root URL using Apache
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/hgomez">Henri Gomez</a> in <i>JBoss Portal</i> - <a href="http://community.jboss.org/message/643425#643425">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>May I suggest you following settings ?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>httpd.conf</strong> : </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>ProxyPass&#160; / ajp://localhost:8009/</p><p>ProxyPassReverse / ajp://localhost:8009/</p><p>ProxyPreserveHost On</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>You could use also mod_jk :</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>workers.properties</strong> :</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>worker.list=w1</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p># Set properties for worker1 (ajp13)</p><p>worker.w1.type=ajp13</p><p>worker.w1.host=localhost</p><p>worker.w1.port=8009</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>httpd.conf</strong> : </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>...</p><p>JkMount&#160; /* w1</p><p>...</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><blockquote class="jive-quote"><p>biscuit a &eacute;crit:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I have been asked to front an eXo Platform installation (running on Tomcat) with Apache HTTPD in such a way that URLs that are normally available at:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span>&#160;&#160;&#160;&#160; </span><a class="" href="http://community.jboss.org/myserver:port/portal/private/myportal" target="_blank">http://myserver:port/portal/private/myportal</a></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>are made available at:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span>&#160;&#160;&#160;&#160; </span><a class="jive-link-external-small" href="http://myserver/" target="_blank">http://myserver/</a></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I have made some progress with lots of ProxyPass and ProxyPassReverse directives mapping /public, /eXoResources, etc to their corresponding ajp:// URLs, before having a final catch--all entry:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160;&#160; ProxyPass&#160; / ajp://localhost:8009/portal/private/myportal/</p><p>&#160;&#160;&#160;&#160; ProxyPassReverse / ajp://localhost:8009/portal/private/myportal/</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>But it still gets stuck on various bits of JavaScript and so-on which are generated on the Tomcat side and refer to the Tomcat URL. There are various properties that can be set to control how this JavaScript gets generated:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160;&#160; eXo.env.portal.portalName</p><p>&#160;&#160;&#160;&#160; eXo.env.server.context</p><p>&#160;&#160;&#160;&#160; eXo.env.server.portalBaseURL</p><p>&#160;&#160;&#160;&#160; eXo.env.portal.context</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>However, documentation on eXoPlatform's website is a bit sparse and the only thing I can find is <a class="jive-link-external-small" href="http://wiki.exoplatform.org/xwiki/bin/view/Portal/Changing%20eXo%20URL">this</a>, which seems to avoid modifying configuration on the Tomcat side, and instead relies on Apache doing massses of in-line modification of Tomcat's responses using mod_substitute, which I really don't like the look of.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>So I have a few questions:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><ul><li>Is this approach fundamentally flawed - is it actually possible to achieve what we want or does it introduce ambiguity into the URLs (eg what do we do with the few /public/ URLs we have)?</li><li>Will the above properties help?</li><li>Is the use of mod_substitute the only way of achieving this?</li></ul><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Thanks in advance for any help!</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Rich</p></blockquote><blockquote class="jive-quote"><p>biscuit a &eacute;crit:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I have been asked to front an eXo Platform installation (running on Tomcat) with Apache HTTPD in such a way that URLs that are normally available at:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span>&#160;&#160;&#160;&#160; </span><a class="" href="http://community.jboss.org/myserver:port/portal/private/myportal" target="_blank">http://myserver:port/portal/private/myportal</a></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>are made available at:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span>&#160;&#160;&#160;&#160; </span><a class="jive-link-external-small" href="http://myserver/" target="_blank">http://myserver/</a></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I have made some progress with lots of ProxyPass and ProxyPassReverse directives mapping /public, /eXoResources, etc to their corresponding ajp:// URLs, before having a final catch--all entry:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160;&#160; ProxyPass&#160; / ajp://localhost:8009/portal/private/myportal/</p><p>&#160;&#160;&#160;&#160; ProxyPassReverse / ajp://localhost:8009/portal/private/myportal/</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>But it still gets stuck on various bits of JavaScript and so-on which are generated on the Tomcat side and refer to the Tomcat URL. There are various properties that can be set to control how this JavaScript gets generated:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160;&#160; eXo.env.portal.portalName</p><p>&#160;&#160;&#160;&#160; eXo.env.server.context</p><p>&#160;&#160;&#160;&#160; eXo.env.server.portalBaseURL</p><p>&#160;&#160;&#160;&#160; eXo.env.portal.context</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>However, documentation on eXoPlatform's website is a bit sparse and the only thing I can find is <a class="jive-link-external-small" href="http://wiki.exoplatform.org/xwiki/bin/view/Portal/Changing%20eXo%20URL">this</a>, which seems to avoid modifying configuration on the Tomcat side, and instead relies on Apache doing massses of in-line modification of Tomcat's responses using mod_substitute, which I really don't like the look of.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>So I have a few questions:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><ul><li>Is this approach fundamentally flawed - is it actually possible to achieve what we want or does it introduce ambiguity into the URLs (eg what do we do with the few /public/ URLs we have)?</li><li>Will the above properties help?</li><li>Is the use of mod_substitute the only way of achieving this?</li></ul><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Thanks in advance for any help!</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Rich</p></blockquote><p><span style="color: #5b5b5b; font-size: 12px; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;"><br/></span></p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/643425#643425">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Portal at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2011">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>