Solved

How to configure multiple sites in tomcat with static ip

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

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 you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

707 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

14 Experts available now in Live!

Get 1:1 Help Now