You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Frank Michael <mu...@yahoo.com.INVALID> on 2018/12/06 11:23:23 UTC

Correctly setting base href on reverse proxy

Dear Community,
my team is looking for a solution to access the Artemis Console behind an Apache Server.
It should be accessible via: http://www.example.com/path1/path2/artemis/console
We noticed the in the console.war, in *apache-artemis/web/console.war* the packages *index.html* is hardcoded to take the first 2 elements split by '/' characters.Here is the script executed in the *<head>* of the mentioned index.html:==============================================================<script type="text/javascript">    var base = window.location.pathname.split('/', 2)[1];    if (base == "")        { document.write("<base href='/'/>"); }    else        { document.write("<base href='/" + base + "/' />"); }</script>==============================================================
Is there a way to make the basepath configurable via a config file, such that the console can be set up for external routing AND use a /path1/path2/ layout?
RegardsMichael