Solved

How to configure multiple sites in tomcat with static ip

Posted on 2007-11-28
5
1,697 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 28

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 28

Assisted Solution

by:Jan Springer
Jan Springer earned 100 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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

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…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

777 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