> From: kazukin6 [mailto:[EMAIL PROTECTED]
> Subject: Tomcat6 map subdomain to particular directory under web root
>
> server.xml
>       <Host name="localhost"  appBase="webapps"
>             unpackWARs="true" autoDeploy="true"
>             xmlValidation="false" xmlNamespaceAware="false">
>         <Alias>w1.localhost</Alias>
>       </Host>
>
> Using alias "w1.localhost" maps subdomain to web root directory
> Is there any trick to map w1.localhost to localhost/w1 directory?

You can use Tuckey's URL rewrite filter (http://tuckey.org/urlrewrite/) or you 
could use virtual hosts: instead of the <Alias>, define a second <Host> with an 
appBase pointing to the desired directory.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

---------------------------------------------------------------------
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