Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Reverse Proxy with Apache and JBoss

 
Anoop Rathi
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • 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.
 
William Barnes
Ranch Hand
Posts: 986
Eclipse IDE Firefox Browser Tomcat Server
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18098
50
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • 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
  • 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
Pie
Posts: 18098
50
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic