Solved

Tomcat Using Apache Proxy

Posted on 2006-11-20
1
453 Views
Last Modified: 2011-09-20
Hello All,

I have setup a tomcat server with an apache proxy to send different domains to different tomcat apps.

vhosts
----------------------------------------------------------------------------------------------
<VirtualHost *:80>
ProxyRequests on
ProxyPreserveHost on
ServerName              *.domain1.com
ProxyPass               / http://192.168.21.35:8081/domian1/
ProxyPassReverse        / http://192.168.21.35:8081/domain1/
</Virtualhost>

<VirtualHost *:80>
ProxyRequests on
ProxyPreserveHost on
ServerName              *.domain2.com
ProxyPass               / http://192.168.21.35:8081/domian2/
ProxyPassReverse        / http://192.168.21.35:8081/domain2/
</Virtualhost>


server xml (part)
----------------------------------------------------------------------------------------------
<Service
      name="Catalina">
    <Connector
        port="8080"
        redirectPort="8443"
        minSpareThreads="25"
        connectionTimeout="20000"
        maxThreads="150"
        maxSpareThreads="75">
    </Connector>
    <Connector
        port="8009"
        redirectPort="8443"
        protocol="AJP/1.3">
    </Connector>
    <Connector
        enableLookups="true"
        port="8081"
        proxyPort="80"
        redirectPort="-1"
        acceptCount="10">
    </Connector>
    <Engine
        defaultHost="localhost"
        name="Catalina">
      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"/>
      <Host
          appBase="webapps"
          name="localhost">
      </Host>
    </Engine>
  </Service>


The problem is that every request to a page creates a new session in tomcat. The sessionID is not being saved in the request from the browser.

How do I get around this?

Thanks,

Matt
0
Comment
Question by:essentialtalk
1 Comment
 
LVL 23

Accepted Solution

by:
rama_krishna580 earned 500 total points
ID: 18060957
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

Suggested Solutions

Microsoft Office Picture Manager was included in Office 2003, 2007, and 2010, but not in Office 2013. Users had hopes that it would be in Office 2016/Office 365, but it is not. Fortunately, the same zero-cost technique that works to install it with …
In 2017, ransomware will become so virulent and widespread that if you aren’t a victim yourself, you will know someone who is.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

911 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

22 Experts available now in Live!

Get 1:1 Help Now