Tech-Today
How to port forward apache's 80 to Glassfish's 8080 using proxy configuration
Recently, I'm developing and testing an application deployed on Glassfish that runs on port 8080. Then I do need the app to run on port 80, since I don't want to change the default port of Glassifh from 8080 to 80, I've just installed apache and try port forwarding, it worked and here's how I did it (I've done it in Ubuntu 11.10).
1.) Make sure that you have download, installed and configured Glassfish to run on port 8080. (Just need to download the zipped file from oracle: http://glassfish.java.net/downloads/).
2.) Download, installed and configured apache on port 8080.
sudo apt-get install apache2
3.) Enable proxy, proxy_http and rewrite modules on apache:
sudo a2enmod proxy
sudo a2enmod proxy_http
sudo a2enmod rewrite
4.) Create your custom apache proxy configuration file inside /etc/apache2/conf.d
NameVirtualHost *:80
<VirtualHost *:80>
ProxyPreserveHost on
RewriteEngine on
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/
Redirect / http://localhost:8080/
RewriteRule ^/(.*) http://localhost:8080/$1 [P,L]
</VirtualHost>
-
Javaee Development
JavaEE6How to create a javaee6 web app using jboss maven war archetypeCreate a simple javaee6 web app with maven, glassfish and postgresqlHow to validate a JavaEE6 Bean in a jobHow to add JavaEE 6 archetypes in eclipse keplerHow to create a custom bean...
-
How To Install Artifactory And Jenkins On Ubuntu 12.04
This page is a summary of commands that need to be executed in order to install and setup artifactory and jenkins on Ubuntu 12.04. Install artifactory 1.) Download the zipped file from artifactory: >wget http://sourceforge.net/projects/artifactory/files/artifactory/2.6.4/artifactory-2.6.4.zip...
-
How To Install Subversion And Websvn On Ubuntu 12.04
This write-up contains a set of instruction on how to install and configure svn as well as setup websvn on an ubuntu 12.04 machine. 1.) Install subversion and apache2 sudo apt-get install subversion sudo apt-get install apache2 sudo apt-get install libapache2-svn...
-
Changing Jboss Server's Default Http Port
If you have installed jboss server in: C:\jboss-5.1.0\ then here's what you should do to change the default port (8080) to any port of your choice. 1.) Open the file, C:\jboss-5.1.0\server\default\conf\bindingservice.beans\META-INF\bindings-jboss-beans.xml...
-
Make_sock: Could Not Bind To Address 0.0.0.0:80
I am developing a web application and is testing it on my localhost, when suddenly the page failed to load. No error, no message. So I went to control panel -> Administrative Tools -> Event Viewer -> application and found 2 error entries related to Apache...
Tech-Today