To setup a virtual host in 4.0.5, I edited the server.xml file located in 
${JBOSS_HOME}/server/default/deploy/jbossweb-tomcat55.sar by changing the 
HTTP/1.1 Connector port to "80" and added a new < Host > element below the 
existing < Host name="localhost" > element.  Next, I added a <virtual-host> 
element to ${APP_NAME}.war/WEB-INF/jboss-web.xml (listed below).


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 2.3V2//EN" 
"http://www.jboss.org/j2ee/dtd/jboss-web_3_2.dtd";>

<jboss-web>
    <context-root>/</context-root>
    <virtual-host>somehost.com</virtual-host>
</jboss-web>

This worked without any problems at all.

When attempting to setup a virtual host with 4.2.0, the structure had changed a 
bit so I took my best shot by changing the system variable (JBOSS_HOME) to 
point to the new installation and modifying the server.xml file located in 
${JBOSS_HOME}/server/all/deploy/jboss-web.deployer/server.xml.  I changed the 
HTTP/1.1. Connector port to "80", added the new < Host > element below the 
existing < Host name="localhost" >.  The application being deployed to the new 
virtual host has not changed (still contains the jboss-web.xml file specifying 
the virtual-host).

If there's anything that I've overlooked, your assistance would be greatly 
appreciated.

Thanks.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049671#4049671

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4049671
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to