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