Using Apache mod_proxy and JBOSS
Add these lines to your apache conf file. Make sure you have proxy modules enabled in apache.
ProxyPass /myuri http://{specify jboss_ip or load balancer ip}:8080/myuri
ProxyPassReverse /myuri http://{specify jboss_ip or load balancer ip}:8080/myuri
ProxyPreserveHost On (The parameter will help to preserve the domain name for applications dependent on domain URL)
ProxyTimeout 180
ProxyStatus On
SetEnv proxy-sendextracrlf
SetEnv proxy-initial-not-pooled (Help prevent 502 errors)
You can use the same for ajp. The URL will be ajp://{specify jboss_ip or load balancer ip}:8009/myuri
2 Comments:
what configuration do you require on Jboss?
No specific configuration is required on JBOSS. As long as you have http or ajp connectors enabled, it should work. By default, these connectors are enabled.
Post a Comment
Subscribe to Post Comments [Atom]
<< Home