TomcatExpert

How to configure a single Apache Tomacat 7 instance to serve with multiple domains

How can I configure a single instance of Apache Tomcat 7 to server multiple domains in Windows? I am new to Apache Tomcat 7 and I am lost. I have installed the instance with no problem. I have my default page showing OK (www.domain.com) and I have a new app that I can access via www.domain.com/app1 but I would like to have a new url app2.domain.com. I have registered my second url, but it defaults to the main page. Can some one give me step-by-step instructions as to how I can do that please. I have been reading online for the past week and I am lost. The GUI for adding a virtual host is not as friendly as Glassfish, so I dont know what to do.

asked by nicholas.antoniou

question

Yes, this feature has been available in tomcat for a while.

http://tomcat.apache.org/tomcat-7.0-doc/virtual-hosting-howto.html

You would create multiple <Host> elements

answer

answered by fhanik on January 5, 2012 12:40 PM

Filip Hanik is a Senior Software Engineer for the SpringSource Division of VMware, Inc. (NYSE: VMW) and a key participant in the company's Apache Tomcat initiatives. Filip brings 15 years of extensive experience in architecture, design and development of distributed application frameworks and containers and is recognized for his top-quality system development skills and continuous participation of Open Source development projects. Filip is an Apache Software Foundation member and a committer to the Apache Tomcat project where he is a leading authority on Tomcat clustering and a key contributor to the core of the platform. Filip has made contributions to software initiatives for Walmart.com, Sony Music, France Telecom and has held a variety of senior software engineering positions with technology companies in both the United States and Sweden. He received his education at Chalmers University of Technology in Gothenburg, Sweden where he majored in Computer Science and Computer Engineering.

Comments

Very Interesting post

Thanks for posting a brilliant information. I really too happy to read it. So much necessary information i'll get from these topic.Thanks once again.................

Bikini Body Guide Review

Interesting post

Hi, interesting post. I have been wondering about this topic, so thanks for posting. I’ll definitely be subscribing to your site. Keep up the good posts.

recruitment agencies in Bangalore

I think this is one of the

I think this is one of the most significant information for me. And i’m glad reading your article. But should remark on some general things. The web site style is perfect. the articles is really great : D. Good job. cheers
english translations service

NICE POST

The information you have posted is very useful. The sites you have referred was good. Thanks for sharing..
predator motorcycle helmet

Book tatkal tickets

Book tatkal tickets online in a fast and easy way without losing time and money thanks!!

http://www.tatkalirctc.com
www.tatkalirctc.com

vary

We prefer your present post. It may be excellent to see anybody clarify within phrases with the cardio together with lucidity with this crucial concern may be rapidly observed. help with research paper

I read your blog frequently

I read your blog frequently and I just thought I’d say keep up the amazing work! Click to visit

DSASDASD

jimmy choo12VVC
the north face outlet
red valentino
michael kors
louis vuitton sacs
cheap jordan shoes
rolex replica watches
michael kors handbags outlet
ed hardy
jordan shoes
cheap jordans
nike blazer
ralph lauren pas cher
adidas nmd
gucci borse
fitflops shoes
nike outlet store
michael kors handbags online
nike free 5
nike roshe
converse trainers
true religion jeans sale
adidas nmd
omega watches for sale
michael kors handbags wholesale
michael kors handbags
cheap basketball shoes
longchamps
michael kors outlet
michael kors handbags wholesale
cheap nfl jerseys wholesale
instyler max 2
nike huarache trainers
ed hardy outlet
pandora charms
michael kors handbags sale
tiffany and co outlet
lebron shoes
longchamp le pliage
skechers outlet
lebron james shoes
abercrombie and fitch
michael kors handbags
michael kors handbags
michael kors handbags
nike store uk
asics shoes
pandora jewelry
michael kors handbags
nike huarache
cheap mlb jerseys
cheap ray ban sunglasses
cheap nhl jerseys
jimmy choo shoes
nike store
michael kors outlet store
nike tn
michael kors outlet
michael kors outlet
toms shoes
cheap nike shoes
michael kors handbags
michael kors outlet
yeezy boost 350 black
michael kors handbags
michael kors handbags
polo ralph lauren
toms outlet
sac longchamp
fitflops sale clearance
michael kors uk
mlb jerseys
kobe 9
michael kors uk
nike air max 90
christian louboutin outlet
cheap michael kors handbags
nike blazer pas cher
cheap michael kors handbags
saics running shoes
ecco shoes outlet
ralph lauren outlet online
michael kors handbags
nike outlet
nike trainers uk
ghd hair straighteners
new balance outlet
hugo boss outlet
supra shoes
nba jerseys
nike air huarache
ralph lauren outlet
polo ralph lauren outlet
nike blazer low
michael kors outlet store
nike trainers uk
hugo boss sale
armani exchange
fitflops
air jordan uk
cheap jordans
michael kors handbags
tiffany and co
supra shoes sale
michael kors handbags
dolce and gabbana
cheap nike shoes sale
new balance shoes
nike air force 1
michael kors handbags wholesale
omega watches
nike trainers
gucci sito ufficiale
michael kors outlet online
salomon boots
armani exchange outlet
michael kors handbags
yeezy boost 350
christian louboutin shoes
nike huarache
instyler max
nike tn pas cher
valentino shoes
nike trainers
ed hardy clothing
under armour outlet
michael kors handbags
fitflops sale clearance
nike free
michael kors handbags
michael kors handbags
cheap oakley sunglasses
oakley sunglasses
salomon shoes
cheap oakley sunglasses
oakley sunglasses
ghd flat iron
michael kors handbags
the north face
chaussure louboutin
cheap oakley sunglasses
michael kors handbags
pandora outlet
michael kors handbags
salvatore ferragamo
moncler outlet
converse shoes
nike blazer pas cher
true religion jeans
adidas nmd r1
louis vuitton pas cher
ray ban sunglasses
jordan shoes
mont blanc pens
michael kors handbags wholesale
replica watches
ecco shoes
ralph lauren
ray ban sunglasses
michael kors handbags outlet
abercrombie and fitch kids
michael kors handbags clearance
cheap ray bans
longchamp bags
oakley sunglasses
versace
ed hardy uk
pandora jewelry
mont blanc pens outlet
cheap nfl jerseys
michael kors outlet
dolce and gabbana shoes
basketball shoes
nike huarache
michael kors outlet
nike air huarache
michael kors outlet
versace shoes
air force 1 shoes
cheap michael kors handbags
michael kors handbags outlet
michael kors outlet
cheap nba jerseys
under armour shoes
ferragamo shoes
adidas nmd runner
michael kors handbags
nike blazer
reebok shoes
michael kors handbags wholesale
skechers shoes
chaussure louboutin pas cher
dolce and gabbana outlet
michael kors handbags
michael kors outlet online
cheap michael kors handbags
birkenstock sandals
air max 90
michael kors outlet clearance
birkenstocks
nike roshe run
yeezy boost 350 white
reebok outlet
moncler jackets
michael kors handbags sale
kobe 9 elite
nhl jerseys
michael kors handbags
michael kors outlet

fatihin

lycopenekeampuhan obat Obat Herbal amazon Plus yakni menambah kekuatan konstruksi bangunan semi permanen jasa konstruksi

fatihin

Antioksidan,punicalagin,Senyawa Xanthones,Senyawa Hidroksitirosol, Daftar Harga Besi H beam Yang Dijual Dari Pabrik Ke Agen sentra besi baja

fatihin

terdapat didalam ramuan amazon Plus yakni Senyawa
undangan pernikahan islami undangan pernikahan putih

This type of looks entirely

This type of looks entirely finest. These tiny details are usually made along with a lot of foundation details. I prefer in which a lot. onine dissertation

tatkalirctc provides the

tatkalirctc provides the fastest way to book tickets online in a easy way without losing time.

irctc tatkal booking

I am happy to find your

I am happy to find your distinguished way of writing the post. Now you make it easy for me to understand and implement the concept. Thank you for the post. visit this link

I recently found many useful

I recently found many useful information in your website especially this blog page. Among the lots of comments on your articles. Thanks for sharing. jeffrey lipton barbados, jeff lipton barbardos

I have been checking out a

I have been checking out a few of your stories and i can state pretty good stuff. I will definitely bookmark your blog wilan

Excellent website you have

Excellent website you have here, so much cool information!.. Click here to visit

thomasqq

Craft alot more articles and reviews in this particular area you now have the ideal approach to help you support writters. Get Rid Of Herpes download

This is truly a great read

This is truly a great read for me. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work!.
florist nyc

If you set out to make me

If you set out to make me think today; mission accomplished! I really like your writing style and how you express your ideas. Thank you.
rear extension architect

Good post but I was wondering

Good post but I was wondering if you could write a litter more on this subject? I’d be very thankful if you could elaborate a little bit further. Appreciate it!
Tnpsc group 4 study materials

I just want to let you know

I just want to let you know that I just check out your site and I find it very interesting and informative..
tuckerman estate

This article was written by a

This article was written by a real thinking writer. I agree many of the with the solid points made by the writer. I’ll be back.
spartagen ingredients

Its my great pleasure to

Its my great pleasure to visit your blog and to enjoy your great posts here. I like it a lot. I can feel that you paid much attention for those articles, as all of them make sense and are very useful
نقل اثاث بالخبر نقل اثاث بالقطيف نقل اثاث بالجبيل

jams

You completed a few fine points there. I did a search on the subject and found nearly all persons will go along with with your blog.
شركة تنظيف عمائر بالمدينة المنورة شركة تنظيف شقق بالمدينة المنورة شركة مكافحة حشرات بالمدينة المنورة

I think this is a really good

I think this is a really good article. You make this information interesting and engaging. You give readers a lot to think about and I appreciate that kind of writing.
pizzahut coupons

i read a lot of stuff and i

i read a lot of stuff and i found that the way of writing to clearifing that exactly want to say was very good so i am impressed and ilike to come again in future..
yourbettingedge.com

Nice to be visiting your blog

Nice to be visiting your blog again, it has been months for me. Well this article that i’ve been waited for so long.wooden watch box I need this article to complete my assignment in the college, and it has same topic with your article. Thanks, great share.

I was reading your article

I was reading your article and wondered if you had considered creating an ebook on this subject. Your writing would sell it fast. You have a lot of writing talent.
Reisepuzzle Reiseblog

Thanks. Great

Thanks. Great article.
http://prywatny-detektyw-wroclaw.pl/

Quality SEO is a essential

Quality SEO is a essential financial commitment when it comes to developing successful expansion and growth strategies additional info read.

For example, if you want to

For example, if you want to understand how to create content, you'd look for an SEO copy writing course; if you wished to understand how to do market and keyword and search term research, you'd search for a category that protected this; if you wished to understand how to improve your site, you'd look for an SEO course that protected things like link framework and meta tags; etc he has a good point.

feel free to check out my new

feel free to check out my new blog here clash of clans hack

However, an excellent SEO

However, an excellent SEO support not only knows what all of these methods are but knows how to recognize them when it recognizes them so they can be revealed to the motor perfectly article.

People should provide help to

People should provide help to those really need, however, there's a long distance from rich to poor, it's hard use this link.

https://www.youtube.com/watch?v=S5KjDvEZ_Ts

Thanks an enormous measure all that much for the first class and results-sorted out help. https://www.youtube.com/watch?v=S5KjDvEZ_Ts

Generally I do not read

Generally I do not read article on blogs, however I wish to say that this write-up very forced me to check out and do so! Your writing taste has been amazed me. Thanks, very great post.
EDDM postcard printing miami

Instagram tips

I am just truly lively to join ones own guestbook these days,Your own data and recorded underneath are acclaimed in my opinion. Instagram tips

Robinjack

Incredible web journal you have here. You"ll find me taking a gander at your stuff frequently. Spared! Green Ladies Cleaning

Turkey Tours

It demonstrates how well you fathom this subject. I am awed by the information that you have on this web diary. Turkey Tours

I really enjoyed reading on

I really enjoyed reading on this article. I hope that other readers will also experience how I feel after reading your article. Thank you so much http://www.acta.fi/.

I have read your article, it

I have read your article, it is very informative and helpful for me.I admire the valuable information you offer in your articles. Thanks for posting it..
slither.io mods

It is imperative that we read

It is imperative that we read blog post very carefully. I am already done it and find that this post is really amazing.

ductless AC

I felt very happy while

I felt very happy while reading this site. This was really very informative site for me. I really liked it. This was really a cordial post. Thanks a lot!.
The Language of Desire

jackman10

An intriguing dialog is value remark. I feel that it is best to compose more on this matter, it may not be an unthinkable subject however ordinarily people are insufficient to chat on such themes. To the following. Salud. internet

jackman10

much obliged to you for an incredible post. online ads

jackman10

Extraordinary Article it its truly useful and creative update us as often as possible with new overhauls. its was truly important. much appreciated. marketing

jackman10

Love what you're doing here folks, keep it up!.. consulting

jackman10

Incredible articles and awesome design. Your blog entry merits the greater part of the positive input it"s been getting. tech

Post new comment

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.