• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

tomcat as a virtual host

 
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello ,
I did try and do a search on this forum but am not able to successfully do what I want .

My understanding of a Virtual host :: On same Tomcat want to host two applications having their own urls ::
example :: www.myappA.com:8080 & www.myappB.com:8080

With this understanding I tried to setup a virtual host ::
In "server.xml"

The portion in bold is the one that I wanted to add as a new host


Tried accessing the above using the URL ::

http://www.ca.scm.com:8080/



Nothing happened .
So I added following entry in my host ::


Now above URL works .

However I wastnt very sure if it "really" worked - so I commented out the "host" entry in "server.xml" and then retried the URL

Problem 1 ::
Browser still showed me the index page of ROOT application
So that means my new virtual host is NOT being used but "default host"

How do I ensure that my new Virtual host is used ?

Problem 2 ::
Under the "localhost" which is default I have a application supplied by Tomcat called ROOT
In this exists a JSP called index.jsp

Even if I make any changes to this file Tomcat still shows up the same page

Where is tomcat getting the details from ?

any help is appreciated
Thanks ,
~satish
 
A feeble attempt to tell you about our stuff that makes us money
New web page for Paul's Rocket Mass Heaters movies
https://coderanch.com/t/785239/web-page-Paul-Rocket-Mass
reply
    Bookmark Topic Watch Topic
  • New Topic