[jboss-user] [Beginner's Corner] - Re: How to get JBoss and Apache to work together

rbrtfreund do-not-reply at jboss.com
Thu Dec 10 21:05:38 EST 2009


JBoss and Apache do play well together! Your on a Win box. So you probably have a setup similar to c:/jboss5 and c:/apache. Now you probably want to get jboss running (at least) forward listening on port 80. You are correct. Choose either mod_jk or mod_proxy. One way to do it.... there are many and your exact server limitations/ setup should be consulted to determine your best case scenario but for a point of getting started uncomment the mod_proxy modules... If they are not already there add them from apache... 

apache/conf/httpd.conf


  | LoadModule proxy_connect_module modules/mod_proxy_connect.so
  | LoadModule proxy_module modules/mod_proxy.so
  | LoadModule proxy_http_module modules/mod_proxy_http.so
  | 

and then to config it in apache/conf/httpd.conf do the following... Obviously this setup is very open ended and may not be optimal for proxy pass and such but will get jboss and apache to play nice.

apache/conf/httpd.conf

  | ProxyRequests Off
  | ProxyPreserveHost On
  | 
  | <Proxy *>
  |     Order deny,allow
  |     Allow from all
  | </Proxy>
  | 
  | ProxyPass / http://localhost:8080/
  | ProxyPassReverse / http://localhost:8080/
  | <Location />
  |     Order allow,deny
  |     Allow from all
  | </Location>
  | 

That should do it. Start apache and jboss and hit localhost at port 80.

Hope that helps.

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4270107#4270107

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4270107



More information about the jboss-user mailing list