Hello,
Is it possible to define a virtual host that redirects to a subpath of my webapp ?
Currently I have this in my standalone.xml :
<host name="webdav" alias="webdav.domain.com" default-web-module="MyWebApp.war"> <location name="/" handler="welcome-content"/> </host>
and in my jboss-web.xml:
<jboss-web> <context-root>/</context-root> <virtual-host>webdav</virtual-host> </jboss-web>
So when I open webdav.domain.com:8080 in my browser it correctly shows the root of /MyWebApp context.
Now what I actually need is that webdav.domain.com:8080 redirects to a subpath of the context: /MyWebApp/webdav/
Is it possible ? And if yes how could I achieve this ?
Thanks for any help
show .... but in my alias I put so
alias = "www.webdav.domain.com" then when I make the request on the only browser with webdav.domain.com he calls the page of wildfly.
only works if put www .... you tell me why?