1 Reply Latest reply on Jan 24, 2013 10:59 AM by bnigmann

    Can I change the web context root of the AS7 management interface on port 9990?

    bnigmann

      Is it possible to change the web context root of the AS7 management interface from "/" to something like "/jboss", so the URL would be http://myhost:9990/jboss? Here is the reason for this question:

       

      This is for a semi-internal system that only exposes port 443 via a web server. I would like to run AS7 only on the 120.7.7.1 interface behind this web server as a proxy. The JBoss web context for deployed apps runs on port 8080 and the web server deals with the incoming requests and SSL and proxies the requests for JBoss for select contexts that the apps provide (for example "/app1" and "/app2" get handed over to JBoss, everything else gets turned away with a 404 and never reaches JBoss).

       

      I would like to configure another proxy rule in the web server that redirects to the HTTP management interface on port 9990 for all requests coming in for, say "/jboss". I don't want to use the root context "/" to forward to port 9990 (which works like a charm). But if I choose something like "/jboss", that context gets passed on to JBoss and I get a 404 from the management interface.

        • 1. Re: Can I change the web context root of the AS7 management interface on port 9990?
          bnigmann

          It seems to work if I proxy both the "/console" and "/management" web contexts, but I would rather have a new common context that I can restrict more easily from the web server's side, so the management console URLs turn into something like "/jboss/console/..." and "/jboss/management/...".

           

          Can someone point me to where in the source tree the management console code lives? I'm working with jboss-as-7.1.3.Final. Thanks.