Does mod_cluster and Named Virtual Hosts work?
I've assumed that mod_cluster works by "magic" :-)
On the back-end I have
JBOSS_GOSSIP_PORT=12001
JBOSS_GOSSIP_REFRESH=5000
JBOSS_SERVER_PEER_ID=226
# Comma-separated list of address:port for mod_cluster front-end proxies
JBOSS_PROXY_LIST=<front-end-ip>
JBOSS_IP=<back-end-ip>
JAVA_HOME=/usr
(Note - I didn't put a port the end of the fron-end-ip)
On the front end, I've turned NamedVirtualHosts on, and have /etc/httpd/conf.d/v_vhost_name.conf
<VirtualHost *:80>
ServerName <v_host_name>
ManagerBalancerName mycluster
ServerAdvertise off
<Proxy *>
ErrorLog logs/<vhost_name>.error_log
CustomLog logs/<vhost_name>.access_log common
I know that the front-end is using this virtual host because of the logs, and on the back end I know I've got virtual hosts working in JBoss 5.0.1 on the back end (checked using telnet).
But - proxying isn't working. 404s from the front end for everything (except an empty FancyIndex for /). I take it mod_cluster doesn't work automagically and I've missed something?
What do you want to do?
<VirtualHost *:80>
ServerName <v_host_name1>
<VirtualHost *:80>
ServerName <v_host_name2>
And in one jboss have have something like:
<Host name="v_host_name1" ..
<Host name="v_host_name2" ..
Or do you want to run 2 clusters?