1.) Make certain that you lot convey download, installed as well as configured Glassfish to run on port 8080. (Just ask to download the zipped file from oracle: http://glassfish.java.net/downloads/).
2.) Download, installed as well as configured apache on port 8080.
sudo apt-get install apache2
3.) Enable proxy, proxy_http as well as rewrite modules on apache:
sudo a2enmod proxy sudo a2enmod proxy_http sudo a2enmod rewrite
4.) Create your custom apache proxy configuration file within /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>
0 komentar:
Please comment if there are any that need to be asked.