> From: kazukin6 [mailto:
coolwhiff@...]
> 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@...
To unsubscribe, e-mail:
users-unsubscribe@...
For additional commands, e-mail:
users-help@...