-
1. Re: How to add sub domain in Jboss 5.1.0.GA
erasmomarciano Jan 22, 2014 4:11 AM (in response to ladnjay)I suggest to use Apache as front-end
This configurations are easy and you can resolve also problems of security
-
2. Re: How to add sub domain in Jboss 5.1.0.GA
ladnjay Jan 22, 2014 4:16 AM (in response to erasmomarciano)Thanks for replying. is this not possible only with Jboss ?
-
3. Re: How to add sub domain in Jboss 5.1.0.GA
erasmomarciano Jan 23, 2014 4:35 AM (in response to ladnjay)You can see this guide
-
4. Re: How to add sub domain in Jboss 5.1.0.GA
ladnjay Jan 23, 2014 11:56 PM (in response to erasmomarciano)Article not found
An article with that name does not exist. It may have been renamed or deleted.
-
6. Re: How to add sub domain in Jboss 5.1.0.GA
hushen.savani Feb 4, 2014 9:13 AM (in response to ladnjay) -
7. Re: How to add sub domain in Jboss 5.1.0.GA
ladnjay Feb 18, 2014 5:15 AM (in response to hushen.savani)Still couldn't get this done
My one.war is located in /usr/local/jboss-5.1.0.GA/server/default/deploy/
I have jboss-web.xml in /usr/local/jboss-5.1.0.GA/server/default/deploy/one.war/WEB-INF/
Content added as below
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 2.3//EN" "http:www.jboss.org/j2ee/dtd/jboss-web_3_2.dtd"><jboss-web>
<context-root>/</context-root>
<virtual-host>one.genesiis.test</virtual-host>
</jboss-web>And i have server.xml in /usr/local/jboss-5.1.0.GA/server/default/deploy/jbossweb.sar/
Content added as below
<Host name="one.genesiis.test" autoDeploy="false" deployOnStartup="false" deployXML="false">
<Alias>1.genesiis.test</Alias><Valve className="org.jboss.web.tomcat.service.jca.CachedConnectionValve"
cachedConnectionManagerObjectName="jboss.jca:service=CachedConnectionManager"
transactionManagerObjectName="jboss:service=TransactionManager" /></Host>
I have copied the value part from the part listed above of the file.
I can access the one.war by http://genesiis.test/one i need to access the war by http://1.genesiis.test
What have i missed.?
Thanks in advance.
-
8. Re: How to add sub domain in Jboss 5.1.0.GA
hushen.savani Feb 18, 2014 5:47 AM (in response to ladnjay)Use following,
jboss-web.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 2.3//EN" "http:www.jboss.org/j2ee/dtd/jboss-web_3_2.dtd"><jboss-web>
<context-root>/</context-root>
<virtual-host>genesiis.test</virtual-host>
</jboss-web>server.xml:
<Host name="genesiis.test" autoDeploy="false" deployOnStartup="false" deployXML="false">
<Alias>1.genesiis.test</Alias><Valve className="org.jboss.web.tomcat.service.jca.CachedConnectionValve"
cachedConnectionManagerObjectName="jboss.jca:service=CachedConnectionManager"
transactionManagerObjectName="jboss:service=TransactionManager" /></Host>