View previous topic :: View next topic |
Author |
Message |
WebSel n00b
Joined: 09 Apr 2004 Posts: 7 Location: Maarn, The Netherlands
|
Posted: Sun Mar 27, 2005 10:59 am Post subject: Mini HowTo: Apache2 frontend with Jboss via mod_jk2 |
|
|
This is a fast Quick start to get Apache2 web server working with JBoss as a backend application server for the first time like me an hour ago .
Both servers are running on the localhost.
For the Jboss server I use the version 4.0.1sp1, just get it from www.jboss.org unpack it under /opt, make a symbolic link from the unpacked directory to jboss and start it up with /opt/jboss/bin/run.sh
I presume you have Apache2 and Jboss already setup and running.
There is nothing to configure on the Jboss side, for extra details you can read:
JBoss 4.0 docu Connectors chap9
For the non-java side there is very little to configure thanks to the emerge guys
First emerge the mod_jk2
After the emerge finished, we need to make apache aware of the plugin
Code: | # vi /etc/apache2/conf/apache2.conf |
Add the following line under the other LoadModule lines:
Code: | LoadModule jk2_module extramodules/mod_jk2.so |
Now add some test url. Remove this ASP it's only for testing now.
Code: | # vi /etc/apache2/conf/workers2.properties |
add the following lines to the end of the file:
Code: | [uri:/web-console/*]
worker=ajp13:localhost:8009 |
This will export the web-admin of JBoss to the Apache web server.
Restart Apache
Code: | # /etc/init.d/apache2 restart |
Test if JBoss is running by opening the url:
http://<your.host.name>:8080/web-console
Ok? You should see the JBoss web console
Test if Apache is running by opening the url:
http://<your.host.name>/
Ok? Now for the final test:
open the url http://<your.host.name>/web-console
You should see the web-admin console of the JBoss application server running over Apache.
Great! That's all. If you need other urls just edit the workers2.properties file.
Wessel de Roode
References:
Working with mod_jk, Jakarta-Apache
JSP Hosting: mod_jk2 Apache Connector, Rimuhosting, Different approaches for Tomcat on port 80
JBoss 4.0 Docu, 9.7 Using Apache with the Tomcat |
|
Back to top |
|
|
neotyk n00b
Joined: 23 Mar 2004 Posts: 37 Location: Mind?
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|