JBOSS Admin

Wednesday, May 12, 2010

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

posted by Jayanthi Krishnamurthy @ 8:36 PM   2 Comments

2 Comments:

At November 26, 2010 at 7:37 AM , Anonymous Anonymous said...

what configuration do you require on Jboss?

 
At March 14, 2011 at 5:24 PM , Blogger Jayanthi Krishnamurthy said...

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

Newer›  ‹Older

About Me

Name: Jayanthi Krishnamurthy

View my complete profile

Posts

  • Using Apache mod_proxy and JBOSS

Older Posts Newer Posts

Archives

Subscribe to
Posts [Atom]