Currently I run single tomcat with single WAR application on port 80. The domain name http://www.foo.org is pointed to this server ip.
What is the procedure of adding http://www.bar.org domain for a different client on port 80?
Thank you
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From the beginning you have a single “Host” record in your conf/server.xml for
localhostNow you can add another “Host” records, for example
where
name="anotherclient.com"is the new client’s domain, andappBase="anotherclient"is its web application root directory name (where you deploy your war); it is relative to the tomcat home dir.Changes will be accepted after tomcat is restarted.
Requests going to any other domains (not listed in
server.xml) but pointing to IP address of your server will be passed to the default application, it is specified in theEngineelement