Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to configure multiple sites in tomcat with static ip

Posted on 2007-11-28
5
Medium Priority
?
1,716 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
  • 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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses
Course of the Month11 days, 14 hours left to enroll

916 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