?
Solved

Tomcat Using Apache Proxy

Posted on 2006-11-20
1
Medium Priority
?
484 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 1500 total points
ID: 18060957
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In the below post we have mentioned the best hosting type for startups. Also, check out some of the superlative web hosting companies that are proposing affordable web hosting solutions to host your startup website.
Exchange administrators are always vigilant about Exchange crashes and disasters that are possible any time. It is quite essential to identify the symptoms of a possible Exchange issue and be prepared with a proper recovery plan. There are multiple…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses

809 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