Solved

How to configure multiple sites in tomcat with static ip

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
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…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

896 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now