Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8905737
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T02:28:11+00:00 2026-06-15T02:28:11+00:00

I have a tomcat app running on http://localhost:8080/appexploded/login.jsp (Tomcat). Now I have installed Apache

  • 0

I have a tomcat app running on “http://localhost:8080/appexploded/login.jsp” (Tomcat). Now I have installed Apache and am running mod_proxy so that all request on port 80 can be proxied to 8080. In my httpd.conf file, here is what I have:

LoadModule proxy_module  /usr/lib/apache2/modules/mod_proxy.so

ProxyPass         /ordergeek  http://localhost:8080/appexploded
ProxyPassReverse  /ordergeek  http://localhost:8080/appexploded 

So when I make a request to the :8080 directly, my request.getSession().getAttribute(“BLAH”) works from one page to another. However, When I go to “http://localhost/ordergeek/login.jsp”, that page sets a session attribute, and then redirects to another page. However, that next page tries to read the request.getSession().getAttribute(“BLAH”), and it doesn’t find it.

When I don’t go through the proxy… the session attributes work. When I go through the proxy, they don’t. What am I missing?

I added the following to my server.xml:

<Connector port="8080" 
          proxyName="www.myappurl.com"
          proxyPort="80"/>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T02:28:12+00:00Added an answer on June 15, 2026 at 2:28 am

    It is an old one but as this thread comes up in the first google search results and as I hardly found the answer elsewhere, it might help :

    You just have to add a ProxyPassReverseCookiePath directive in order to get the path corrected in the cookies:

    ProxyPassReverseCookiePath /appexploded /ordergeek  
    

    Once this set, you should get your session attributes as usual.

    Notice that you must use Apache 2.2 or later.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a apache setup that redirect to my app running on tomcat. Loading
My web app is running in Tomcat at http://localhost:8080/example.com/ but it is being reverse
I have a Java web app running on Tomcat 7 that is using JDBC
I have a web app that runs perfectly on Apache Tomcat. However, when I
We have Tomcat application server set up at port 8080 and Apache Http Server
I have a Spring app on localhost running on: Tomcat version: 6.0 JDK version:
I have a Tomcat app running behind Apache. Apache is configured for HTTPS while
I have a web-app with a Java back-end that uses Tomcat jdbc-pool for database
I have a Tomcat 6.0.24 server running. I'm using to run some JSP pages.
I have an app that is deployed to Tomcat 7 and is currently clustered

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.