Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-3918

jbossweb virtual-host processing not working

    XMLWordPrintable

    Details

      Description

      Add a Host entry to the deployers/jbossweb.deployer/server.xml as described in the 4.0.x section of:
      http://wiki.jboss.org/wiki/Wiki.jsp?page=VirtualHosts

      for example:
      <Host name="succubus-vhost"
      autoDeploy="false" deployOnStartup="false" deployXML="false">
      <Valve className="org.apache.catalina.valves.AccessLogValve"
      prefix="succubus-vhost" suffix=".log"
      pattern="common" directory="${jboss.server.home.dir}/log"/>
      </Host>

      add a virtual-host entry to the jmx-console.war/WEB-INF/jboss-web.xml:
      <jboss-web>
      <virtual-host>succubus-vhost</virtual-host>
      </jboss-web>

      and try to access the jmx-console using succubus-vhost:

      [starksm@succubus Security]$ wget http://succubus-vhost:8080/jmx-console/index.jsp
      -08:21:41- http://succubus-vhost:8080/jmx-console/index.jsp
      => `index.jsp'
      Resolving succubus-vhost... 192.168.10.10
      Connecting to succubus-vhost|192.168.10.10|:8080... connected.
      HTTP request sent, awaiting response... 400 No Host matches server name succubus-vhost
      08:21:41 ERROR 400: No Host matches server name succubus-vhost.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                emuckenhuber Emanuel Muckenhuber
                Reporter:
                starksm64 Scott Stark
              • Votes:
                3 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: