-
1. Re: Want to install Apache web(HTTP) server in front of JBOSS EAP 6.4 in Ubuntu.
lylewang Jul 5, 2015 9:44 PM (in response to arunbalgi)First you want to install JBoss EAP 6.4 which you can simply unzip the zip installer, you've done this.
Second you want to install Apache httpd, you can choose either "Red Hat JBoss Enterprise Web Server" JBoss Web Server - Overview , or upstream community Apache httpd http://httpd.apache.org/
You should be able to find docs for installation wherever you download the installer.
Alternatively, try to google some tutorials such as this: https://www.digitalocean.com/community/tutorials/how-to-configure-the-apache-web-server-on-an-ubuntu-or-debian-vps
Last you want to configure your Apache httpd so that it passes user requests to your JBoss EAP. You need to setup your "VirtualHost" for your Apache and use "ProxyPass", something like these:
http://www.ocpsoft.org/opensource/jboss-application-server-7-on-port-80-with-apache-httpd-proxypass/
-
2. Re: Want to install Apache web(HTTP) server in front of JBOSS EAP 6.4 in Ubuntu.
arunbalgi Jul 7, 2015 10:02 PM (in response to lylewang)Im getting below error while performing steps mentioned in above link.
step5: error: site default does not exist.
step6: created jboss-as file as mentioned
step7: error: site jboss-as does not exist.
Is it possible to achieve apache web server in-front of jboss using mod_cluster?
-
3. Re: Want to install Apache web(HTTP) server in front of JBOSS EAP 6.4 in Ubuntu.
lylewang Jul 8, 2015 12:53 AM (in response to arunbalgi)Did you install Apache httpd successfully ?
When you hit ip address of the machine in browser, does it give you a page saying httpd is working ?
You can use mod_cluster with httpd in front of JBoss AS 7.x (EAP 6.x), but it's mainly for clustered AS / EAP, from your description I didn't see you have JBoss cluster
-
4. Re: Want to install Apache web(HTTP) server in front of JBOSS EAP 6.4 in Ubuntu.
arunbalgi Jul 8, 2015 11:59 PM (in response to lylewang)Yes, Jboss & Apache is installed successfully. I have deployed Helloworld in jboss and able to access from with ip & 8080 port. Apache is also installed successfully & it show It works when I tried with ip.
-
5. Re: Want to install Apache web(HTTP) server in front of JBOSS EAP 6.4 in Ubuntu.
lylewang Jul 9, 2015 12:11 AM (in response to arunbalgi)So next step you just change your Apache config file and setup "VirtualHost" / "ProxyPass" so it passes requests to the helloworld on JBoss, when you try with ip
tutorials and docs are linked in my previous comments, if you don't understand you can search youtube videos, Apache config should be platform independent, it shouldn't matter whether you use Ubuntu or Windows.
-
6. Re: Want to install Apache web(HTTP) server in front of JBOSS EAP 6.4 in Ubuntu.
arunbalgi Jul 9, 2015 5:29 PM (in response to lylewang)I have created jboss-eap-6.4 file inside /etc/apache2/conf-available with below content.
<VirtualHost *:80>
ProxyRequests On
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass / http://127.0.0.1:8080/helloworld/
ProxyPassReverse / http://127.0.0.1:8080/helloworld/
<Location />
Order allow,deny
Allow from all
</Location>
</VirtualHost>
But still I'm unable to access helloworld application using http://127.0.0.1/helloworld.
I have some doubts....
1] Do we need to create new file with above content or need to add it in apache2.conf file. One link say to create new file & other to add in apache2.conf.
http://www.ocpsoft.org/opensource/jboss-application-server-7-on-port-80-with-apache-httpd-proxypass/
2] If we need to create new file then what should be name of file
3] Do we need to modify anything in above content.