Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to configure multiple sites in tomcat with static ip

Posted on 2007-11-28
5
Medium Priority
?
1,714 Views
Last Modified: 2011-10-03
hi,

i want to configure multiple websites in apache tomcat with each site having its own static ip can i know the steps to configuration


sandeep  
0
Comment
Question by:sitg
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 29

Expert Comment

by:Jan Springer
ID: 20376396
What version of apache, 1.x, 2.0 or 2.2?
0
 

Author Comment

by:sitg
ID: 20380067
apache tomcate 5.0
0
 
LVL 29

Assisted Solution

by:Jan Springer
Jan Springer earned 400 total points
ID: 20381951
My understanding of apache-tomcat was that it required the installation of apache and was an add jdk application.

If that's the case, wouldn't you configure your virtual hosts within apache itself?
0
 

Accepted Solution

by:
sitg earned 0 total points
ID: 20384563
Hi,
I have done this jib at my end

here is some changes in "tomcat server.xml" file
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
<Connector port="80" address="192.168.3.6;7" protocol="HTTP/1.1"
               maxthreads="150" connectionTimeout="20000"
               redirectPort="8443" />
++++++++++++++++++++++++++++++++++++++
1. change the port 8080 with port 80
2. use semicolum to set the 2 ip's in tomcat (192.168.3.6;7)
3. and also add the following line to confiure the 2 website using differnet ip



++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
</Host>
      <Host name="192.168.3.7"  appBase="C:/Program Files/Apache Software Foundation/Tomcat 6.0/webapps"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">

        <!-- SingleSignOn valve, share authentication between web applications
             Documentation at: /docs/config/valve.html -->
        <!--
        <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
        -->

        <!-- Access log processes all example.
             Documentation at: /docs/config/valve.html -->
        <!--
        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"  
               prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/>
        -->
<Context path="" docBase="C:/Program Files/Apache Software Foundation/Tomcat 6.0/webapps/website2"  debug="0" crossContext="false"  reloadable="true" />
<Context path="/moneyline" docBase="C:/Program Files/Apache Software Foundation/Tomcat 6.0/webapps/website2"  debug="0" crossContext="false"  reloadable="true" />
      </Host>
<Host name="192.168.3.6"  appBase="C:/Program Files/Apache Software Foundation/Tomcat 6.0/webapps"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">

        <!-- SingleSignOn valve, share authentication between web applications
             Documentation at: /docs/config/valve.html -->
        <!--
        <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
        -->

        <!-- Access log processes all example.
             Documentation at: /docs/config/valve.html -->
        <!--
        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"  
               prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/>
        -->
<Context path="" docBase="C:/Program Files/Apache Software Foundation/Tomcat 6.0/webapps/website1"  debug="0" crossContext="false"  reloadable="true" />
<Context path="/Airtel" docBase="C:/Program Files/Apache Software Foundation/Tomcat 6.0/webapps/website1"  debug="0" crossContext="false"  reloadable="true" />

      </Host>
    </Engine>
  </Service>
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Best Regards,
Naresh
0
 

Author Comment

by:sitg
ID: 20387038
Please close this question
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting http://domain.com (http://domain.com) to http…
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

670 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question