Friday, 30 August 2013

Trouble mixing mod_proxy and mod_cluster

Trouble mixing mod_proxy and mod_cluster

I mod_cluster all traffic to JBoss.
Now, I want to direct /path traffic to an internal apache instance.
I tried simply adding mod_proxy and using ProxyPass / ProxyPassReverse to
send /path traffic to the internal apache, but that only works after I
restart apache and before the jvms check in with it. Then all traffic is
routed to the jvms.
I have also tried adding /path as an excluded context in the jboss console.
Here's VirtualHost:
<VirtualHost [MYIP]:[MYPORT]>
ServerAdmin [MYEMAIL]
DocumentRoot [MYDOCROOT]
ServerName [MYSERVER]
UseAlias 1
ProxyPreserveHost On
ProxyRequests off
ProxyPass /path http://[MY_INTERNAL_APACHE]/
ProxyPassReverse /path http://[MY_INTERNAL_APACHE]/
<Directory [MYDOCROOT]>
Options -FollowSymLinks -Includes -Indexes -MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/[MYLOG].log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/[MYLOG]-access.log combined
</VirtualHost>
Any ideas on how I can have my cake and eat it, too?

No comments:

Post a Comment