[jboss-jira] [JBoss JIRA] Created: (JBAS-3918) jbossweb virtual-host processing not working

Scott M Stark (JIRA) jira-events at jboss.com
Sun Dec 3 11:28:55 EST 2006


jbossweb virtual-host processing not working
--------------------------------------------

                 Key: JBAS-3918
                 URL: http://jira.jboss.com/jira/browse/JBAS-3918
             Project: JBoss Application Server
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: Web (Tomcat) service
    Affects Versions: JBossAS-5.0.0.Beta1
            Reporter: Scott M Stark
         Assigned To: Remy Maucherat
             Fix For: JBossAS-5.0.0.Beta2


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 at 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.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list