Ishtiaq Ahmed a écrit :
Hi,
Now we want it But when we tried it for *.mydomain2.com (Notice that * )
if I go like under, it doesn't work. Kindly shed some light into it.

<Host name="*.mydomain2.com"

     appBase="/usr/local/tomcat6/webapps/APPx"
     unpackWARs="true"
     autoDeploy="true"
     xmlValidation="false"
     xmlNamespaceAware="false">
      <Context path="" docBase="/usr/local/tomcat6/webapps/APPx"
     debug="0" reloadable="false"/>

</Host>

I hope you understand my problem its about * (Subdomains) to be routed to different context path.

Simply put, you can't. If you want to redirect users of unconfigured domains to a specific webapp, use the defaultHost attribute of the Engine context. The name attribute of the Host context is "Network name of this virtual host, as registered in your Domain Name Service server.", as mentionned in docs. If you want more complex rules, you might need to configure an appache httpd front-end that does the dispatching.
Regards,

Ishtiaq Ahmed

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to