-
1. Re: mod_cluster apache to jboss
jfclere Mar 6, 2013 4:51 AM (in response to michadmin)if all is routed to AS7 it is because you haven't ROOT in the excluded-contexts.
-
2. Re: mod_cluster apache to jboss
rhusar Mar 6, 2013 5:59 AM (in response to jfclere)Let me just add that you might be also interested in ProxyPassMatch/ProxyPass which could be used allow httpd to serve static file, e.g. images.
-
3. Re: mod_cluster apache to jboss
michadmin Mar 6, 2013 9:22 AM (in response to rhusar)@Jean i need to do this only to one of the Virtual Servers. I have another URL where ROOT should not be in excluded-contexts. Can we do this on URL level?
@Rado I added ProxyPassMatch / ! and nothing is routed to jboss but i still need that specific /uri to go to jboss. Any directive i can use for that?
Thanks in advance
-
4. Re: mod_cluster apache to jboss
jfclere Mar 6, 2013 10:28 AM (in response to michadmin)If you have ROOT in your contexts than you will have to play with ProxyPass and/or ProxyPassMatch.
Of course ProxyPassMatch / ! wil prevent all url to be router
-
-
6. Re: mod_cluster apache to jboss
michadmin Mar 6, 2013 6:00 PM (in response to rhusar)I was able to get it up and running using the following:
ProxyPass /uri/ https://jboss-server-ip:port/uri/
ProxyPassReverse /uri/ https://jboss-server-ip:port/uri/
ProxyPassMatch / !
The problem is that it is not load balanced and if i use load balanced URL i get a bad gateway error and it fails. Did anyone see this issue before?
-
7. Re: mod_cluster apache to jboss
jfclere Mar 7, 2013 2:25 AM (in response to michadmin)That configuration doesn't make sense you tell to proxy /uri/ but forbid any proxying by ProxyPassMatch / !
What do you want to be served by httpd?
-
8. Re: mod_cluster apache to jboss
michadmin Mar 7, 2013 5:53 PM (in response to jfclere)It does work though, i want everything to be served by apache except /uri/
-
9. Re: mod_cluster apache to jboss
michadmin Apr 18, 2013 4:55 PM (in response to michadmin)Here is the solution:
Include the following under the Virtual host configuration of your URL.
ProxyPass /uri/ balancer://mycluster/uri/ stickysession=JSESSIONID|jsessionid timeout=10
ProxyPassReverse /uri/ balancer://mycluster/uri/
ProxyPassMatch / !
Thanks,
Micky