You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by picosam <pi...@gmail.com> on 2009/11/19 19:07:28 UTC

Subdomain vs. Subdirectory

Hello,

I have a Tomcat6 server running behind an Apache2 server using JK mod. My
Tomcat responds to www.myserver.com and www.myserver.com/api. I would like
to make the server not respond to the latter and access the application
under /api via api.myserver.com instead.

Thank you,
Sammy

-- 
View this message in context: http://old.nabble.com/Subdomain-vs.-Subdirectory-tp26421421p26421421.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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


Re: Subdomain vs. Subdirectory

Posted by André Warnier <aw...@ice-sa.com>.
Hassan Schroeder wrote:
> On Thu, Nov 19, 2009 at 10:07 AM, picosam <pi...@gmail.com> wrote:
> 
>> I have a Tomcat6 server running behind an Apache2 server using JK mod. My
>> Tomcat responds to www.myserver.com and www.myserver.com/api. I would like
>> to make the server not respond to the latter and access the application
>> under /api via api.myserver.com instead.
> 
> So you want "api.myserver.com" to be a "virtual host".
> 
> There's a doc for that.  :-)

Right, and I missed that the Op also wanted to change the hostname.
So you need both the HowTo #38 and what Hassan mentions here.

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


Re: Subdomain vs. Subdirectory

Posted by Hassan Schroeder <ha...@gmail.com>.
On Thu, Nov 19, 2009 at 10:07 AM, picosam <pi...@gmail.com> wrote:

> I have a Tomcat6 server running behind an Apache2 server using JK mod. My
> Tomcat responds to www.myserver.com and www.myserver.com/api. I would like
> to make the server not respond to the latter and access the application
> under /api via api.myserver.com instead.

So you want "api.myserver.com" to be a "virtual host".

There's a doc for that.  :-)
-- 
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
twitter: @hassan

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


Re: Subdomain vs. Subdirectory

Posted by André Warnier <aw...@ice-sa.com>.
picosam wrote:
> Hello,
> 
> I have a Tomcat6 server running behind an Apache2 server using JK mod. My
> Tomcat responds to www.myserver.com and www.myserver.com/api. I would like
> to make the server not respond to the latter and access the application
> under /api via api.myserver.com instead.
> 
http://wiki.apache.org/tomcat/HowTo
# 38



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