You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Myatluk Andrey <An...@bercut.ru> on 2006/02/07 14:46:52 UTC

Tomcat and subdomain

Hi, all!

I have an application, which may have many users. At this moment each of
them can view their info at:

http://www.example.com/user/john
http://www.example.com/user/mary

I would like to use subdomain for each user.

So it may look like:

http://john.example.com
http://mary.example.com

Where should I look for the solution? Googling isn't helping much. Any
examples are welcome :)

Thank you!

Andrey

Tomcat 5.5.12
Struts 1.2.8
PostgreSQL 8.1.2



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat and subdomain

Posted by Parsons Technical Services <pa...@earthlink.net>.
You can use an alias to point them all to the same host. From there you will 
need to parse out the url to direct them to the proper information.


----- Original Message ----- 
From: "Myatluk Andrey" <An...@bercut.ru>
To: "Tomcat Users List" <us...@tomcat.apache.org>
Sent: Tuesday, February 07, 2006 8:46 AM
Subject: Tomcat and subdomain


> Hi, all!
>
> I have an application, which may have many users. At this moment each of
> them can view their info at:
>
> http://www.example.com/user/john
> http://www.example.com/user/mary
>
> I would like to use subdomain for each user.
>
> So it may look like:
>
> http://john.example.com
> http://mary.example.com
>
> Where should I look for the solution? Googling isn't helping much. Any
> examples are welcome :)
>
> Thank you!
>
> Andrey
>
> Tomcat 5.5.12
> Struts 1.2.8
> PostgreSQL 8.1.2
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org