• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Reverse Proxy with Apache and JBoss

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I using Apache Tomcat (2.2.21 with mod_jk) as Load Balancer and JBoss Eap 5.1 for Clustering. I was successful in both but the issue I am facing here is Proxy.

I want to make the URL Uniform without port number so that the user doesn't know on which instance/where he is directed. Can anybody please help me with what steps to be followed to make the Apache work as reverse proxy without port number.

I am new to this field and have a very less idea about things here.

Any response with be helpful as I need to get this thing working soon.

Thanks in Advance.
 
Ranch Hand
Posts: 1067
2
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

The client would only ever use one endpoint (ip:port). The load balancer would proxy that (send along to a different ip:port). So what is the problem with giving the client one endpoint (ip:port) which will never change for them?
 
Anoop Rathi
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for response!

Yes, I am using 443 since its for https but when it hits JBoss instance, the URL changes to https://localhost:8443/myapp. I just want it to say https://localhost/myapp.

PS I have to use this in clustering.

so https://localhost:8443/myapp, https://localhost:8543/myapp, https://localhost:8643/myapp should all show https://localhost/myapp in their URL.
 
Saloon Keeper
Posts: 27763
196
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
Actually, that sounds more like a URL rewrite on the forward "proxy", not a true proxy connection. Which, if I recall, doesn't use 8443 for mod_jk traffic.
 
Anoop Rathi
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is a case of reverse proxy setup. URL Rewriting could be used but is not preffered/good.
 
Tim Holloway
Saloon Keeper
Posts: 27763
196
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
I didn't mean "use this as a solution". I meant that what you're reporting sounds like what the Apache server is presently actually doing.
 
reply
    Bookmark Topic Watch Topic
  • New Topic