-
1. Re: Seam and mod_proxy
georges.goebel Dec 3, 2008 9:04 PM (in response to mgvarley)Hi,
Which url do you use ?
I use the balancer module with our seam applications and it works great.
f.ex :
<IfModule mod_proxy_balancer.c>
<Proxy balancer://myCluster>
BalancerMember ajp://myHost1.com:8009 route=worker1 loadfactor=10
BalancerMember ajp://myHost2.com:8009 route=worker2 loadfactor=10
</Proxy>
<Location /seam-registration>
ProxyPass balancer://myCluster/seam-registration stickysession=JSESSIONID
</Location>
</IfModule>That should work
Georges
-
2. Re: Seam and mod_proxy
georges.goebel Dec 3, 2008 9:08 PM (in response to mgvarley)Sorry my previous post did not use the correct formatting.
This config works also with 1 node
<IfModule mod_proxy_balancer.c> <Proxy balancer://myCluster> BalancerMember ajp://myHost1.com:8009 route=worker1 loadfactor=10 BalancerMember ajp://myHost2.com:8009 route=worker2 loadfactor=10 </Proxy> <Location /seam-registration> ProxyPass balancer://myCluster/seam-registration stickysession=JSESSIONID </Location> </IfModule>
-
3. Re: Seam and mod_proxy
joblini Dec 4, 2008 4:35 AM (in response to mgvarley)Hi Mark, Maybe this will help?
-
4. Re: Seam and mod_proxy
mgvarley Dec 4, 2008 12:54 PM (in response to mgvarley)Thanks for the advice guys, Ingo - I have been told by host not to use modjk as I am on CentOS running Apache 2.2 and the preferred option is modproxy. Georges - I have followed your advice and whilst I am able to run the seam-registration app properly my requirements are not quite met.
Using Georges' config I can run the app as www.mydomain.com/seam-registration but I actually want to be able to run this as www.mydomain.com.
The reason for this is that I have a number of apps running on my jboss server which I want to run under different domains e.g.
www.mydomain.com - myhost.com:8009/myapp
www.myotherdomain.com - myhost.com:8009/myotherappDoes anyone have any advice for me on how to get this working?
Thanks,
Mark
-
5. Re: Seam and mod_proxy
mgvarley Dec 4, 2008 12:57 PM (in response to mgvarley)Thanks for the advice guys, Ingo - I have been told by host not to use mod_jk as I am on CentOS running Apache 2.2 and the preferred option is mod_proxy. Georges - I have followed your advice and whilst I am able to run the seam-registration app properly my requirements are not quite met.
Using Georges' config I can run the app as www.mydomain.com/seam-registration but I actually want to be able to run this as www.mydomain.com.
The reason for this is that I have a number of apps running on my jboss server which I want to run under different domains e.g.
- www.mydomain.com - myhost.com:8009/myapp
- www.myotherdomain.com - myhost.com:8009/myotherapp
Does anyone have any advice for me on how to get this working?
Thanks,
Mark
-
6. Re: Seam and mod_proxy
zeppelinux.dmitry.diligesoft.com Dec 4, 2008 8:01 PM (in response to mgvarley)Is there any real reasons for you to use ajp://127.0.0.1:8009/context
instead of http://127.0.0.1:8009/context ?