Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Apache proxy banlance Tomcat cluster cannot load Login Form.

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I build up a Tomcat cluster, and use Apache Httpd as load banlancer. It's like this:

Brower ----(https)------apache----(http)-------tomcat cluster

The URL is like https://www.test.com/ctx/view.jsp
Everything works fine before I enable FBA in tomcat. I have enabled FBA in Tomcat, to protect /ctx/private.jsp. So, when user access /ctx/private.jsp, it should show Login Form.

But, when I access https://www.test.com/ctx/private.jsp through proxy, the browser hung. And it will return 500 after a long time. If I skip proxy, access http://localhost:8080/ctx/private.jsp, it can show login form correctly.

proxy config is like this:


The Apache log is:

[Tue Feb 11 15:58:07 2014] [error] ajp_read_header: ajp_ilink_receive failed
[Tue Feb 11 15:58:07 2014] [error] (70007)The timeout specified has expired: proxy: read response failed from 127.0.0.1:8009 (127.0.0.1)
[Tue Feb 11 15:58:07 2014] [debug] proxy_util.c(2036): proxy: AJP: has released connection for (127.0.0.1)



What did I miss? Thanks.
 
Saloon Keeper
Posts: 24899
174
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It looks like you need to look at the server that's listening on port 8009 and make sure it's operating properly.
 
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic