Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Tomcat Using Apache Proxy

Posted on 2006-11-20
1
459 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Lamba in java 8 9 248
servlet cookie finding by name 1 84
login form jsp example 2 35
maven disable workspace resolution 1 20
Most MSPs worth their salt are already offering cybersecurity to their customers. But cybersecurity as a service is wide encompassing and can mean many things.  So where are MSPs falling in this spectrum?
This article describes how to reset your Windows 10 password when you've forgotten it.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

808 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