[root@example]# service httpd stop [root@example]# chkconfig httpd off |
[root@example ~]# cd /etc/xinetd.d [root@example xinetd.d]# vi jboss |
# Redirects any requests on port 80 # to port 8080 (where JBoss is listening) service http { socket_type = stream user = root wait = no redirect = localhost 8080 disable = no } |
[root@example xinetd.d]# service xinetd restart |
<Host name="example.com" autoDeploy="false" deployOnStartup="false" deployXML="false"> <Alias>www.example.com</Alias> <Valve className="org.apache.catalina.valves.AccessLogValve" prefix="example.com" suffix=".log" pattern="common" directory="${jboss.server.home.dir}/log"/> <DefaultContext cookies="true" crossContext="true" override="true"/> </Host> |
<jboss-web> <context-root>mywebapp</context-root> <virtual-host>example.com</virtual-host> </jboss-web> |
<Host name="example.com" autoDeploy="false" deployOnStartup="false" deployXML="false"> <Alias>www.example.com</Alias> <Valve className="org.apache.catalina.valves.AccessLogValve" prefix="example.com" suffix=".log" pattern="common" directory="${jboss.server.home.dir}/log"/> <DefaultContext cookies="true" crossContext="true" override="true"/> </Host> |
<jboss-web> <context-root>/</context-root> <virtual-host>example.com</virtual-host> </jboss-web> |
<Host name="example.com" autoDeploy="false" deployOnStartup="false" deployXML="false"> <Alias>www.example.com</Alias> <Valve className="org.apache.catalina.valves.AccessLogValve" prefix="example.com" suffix=".log" pattern="common" directory="${jboss.server.home.dir}/log"/> <DefaultContext cookies="true" crossContext="true" override="true"/> </Host> |
<application xmlns="http://java.sun.com/xml/ns/j2ee" version="1.4" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com /xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd"> <display-name>mywebapp</display-name> <module> <ejb>mywebapp-ejb.jar</ejb> </module> <module> <web> <web-uri>mywebapp.war</web-uri> <context-root>mywebapp</context-root> </web> </module> </application> |
<jboss-web> <context-root>mywebapp</context-root> <virtual-host>example.com</virtual-host> </jboss-web> |
<Host name="example.com" autoDeploy="false" deployOnStartup="false" deployXML="false"> <Alias>www.example.com</Alias> <Valve className="org.apache.catalina.valves.AccessLogValve" prefix="example.com" suffix=".log" pattern="common" directory="${jboss.server.home.dir}/log"/> <DefaultContext cookies="true" crossContext="true" override="true"/> </Host> |
<application xmlns="http://java.sun.com/xml/ns/j2ee" version="1.4" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com /xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd"> <display-name>mywebapp</display-name> <module> <ejb>mywebapp-ejb.jar</ejb> </module> <module> <web> <web-uri>mywebapp.war</web-uri> <context-root>/</context-root> </web> </module> </application> |
<jboss-web> <context-root>/</context-root> <virtual-host>example.com</virtual-host> </jboss-web> |