-
1. Re: Configure <Context on server.xml file
jessev Mar 25, 2009 3:51 PM (in response to mapesteguia)I think I need the same thing.
I have servername.domain.com:8080/application-name working for a deployed web app. I want to reach that url with application-name.domain.com. DNS and host files have been updated to allow for this.
I followed these instructions:
http://www.jboss.org/community/docs/DOC-12549
And got it to work for the jmx console. So I modified the application's jboss-web.xml to have
<context-root>/</context-root>
<virtual-host>application-name.domain.com</virtual-host>
and it didn't work.
I can do this no problem in tomcat, by simply modifying $CATALINA_BASE/conf/server.xml to have:
Host name="application-name" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
Context docBase="$CATALINA_BASE/webapps/application-name"
path="" reloadable="true" debug="0"/>
/Host>
The open brackets were removed so it'd show in the post.
Is that what you were trying to do Martin?
Can anyone help with my issue? -
2. Re: Configure <Context on server.xml file
jessev Mar 25, 2009 3:52 PM (in response to mapesteguia)^ for JBoss5 btw
-
3. Re: Configure <Context on server.xml file
jessev Mar 25, 2009 4:03 PM (in response to mapesteguia)I take part of what i said back, modifying the application's jboss-web.xml works but I'd like to have it set somewhere outside of the application. What can be done on the server side like it was for tomcat?