You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Juan Asensio Sánchez <ok...@gmail.com> on 2011/05/26 10:20:13 UTC
[users@httpd] Diferent proxies for root dir and sub-location
Hi
I am using mod_cluster to publish the applications deployed in JBoss.
This is the configuration I am using:
<VirtualHost *:80>
ErrorLog /var/log/httpd/default-error.log
CustomLog /var/log/httpd/default-access.log combined
ProxyPass / balancer://mycluster/
<Location /mcm/>
SetHandler mod_cluster-manager
</Location>
</VirtualHost>
balancer://mycluster is the balancing group created dinamycally by
mod_cluster. So, all requests are proxified with that balancer, and
processed by any JBoss server of the cluster. Now I want to proxify a
sublocation, to be proxified by localhost, not by the cluster. I have
added these lines to the config:
<Location "/jmx-console">
ProxyPass ajp://127.0.0.1:8009/jmx-console
ProxyPassReverse ajp://127.0.0.1:8009/jmx-console
</Location>
But, after restarting Apache, /jmx-console is being served anyway by
mycluster (LOG when I try to access to /jmx-console):
[Wed May 25 19:13:52 2011] [debug] mod_proxy_cluster.c(1444): proxy:
byrequests balancer FAILED
[Wed May 25 19:13:52 2011] [error] proxy: CLUSTER:
(balancer://mycluster). All workers are in error state
I have also tried with
ProxyPass /admin-console !
without success. Any idea? Can this be done?
Thanks in advance and regards.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org