|
Question:
Multiple hosts on JbossHi,
I use Apache with modkj and Jboss 4.0.4 with Tomcat as application server. My question is how can I tell that each EAR on Jboss represents different host? I want to host multiple sites on one machine. I already configured DNS records, what is next step?
When you build your EAR, in application EAR you have to tell jboss that context path starts from root:
application.xml Then you have to include in your WAR a special file for jboss which will contain mapping between your web application and virtual host for jboss tomcat: META-INF/jboss-web.xml Final step is to tell tomcat inside jboss that you have multiple virtual hosts and map each of them to real domain names. Add corresponding <Host> tags: jboss-4.0.4.GA\server\default\deploy\jbossweb-tomcat55.sar\server.xml For all ears create vurtual hosts like mywebhost1, mywebhost2 ... and then map virtual hosts to real aliases. Vote:
Please vote! Your opinion matters!
If you haven't found what you've looking for, post a question
|
|