Skip to main content

Posts

Showing posts from 2016

Using Apache as (SSL) proxy server

If you are a using any Java web server (such as Tomcat) or app server (such as Wildfly, JBoss or Glassfish), then you know that they dont listen on http port 80. Well, why does it have to listen on port 80? because if you want your user to specify only the url and not the port; for example, http://mydomain.com and not http://mydomain:8080 Note: throughout this article mydomain.com can be replaced with localhost, if your product is in development stage. Software used: Ubuntu apache2 Any Java web/app server What we want to achieve We are going to divert all user requests coming on port 80 to Tomcat running 8080 on the same host. Installation Run the following commands sudo apt-get install apache2 sudo apt-get install libxml2-dev sudo apt-get install libapache2-mod-proxy-html Note: If your ubuntu OS is latest, then you may not have libapache2-mod-proxy-html package. Instead run the following command. sudo a2enmod proxy_html Configuration 1. Append t

How to install (K)Ubuntu alongside Yosemite and Windows 8 on Mac Book Pro?

Here let's see how we can install Windows 8 and (K)ubuntu 15.10 (Wily Werewolf) along side Mac Yosemite as triple boot. Software/Hardware required Mac book Pro 11,1 (instruction might be similar for newer models) Yosemite Windows 8 (K)Ubuntu 15.10  Wily Werewolf (might work with 15.04 as well) Refind (not reEFIt) Here is the summary of what we are going to do. Partition mac to have windows boot-camp partition  Install windows 8 Create two new partitions from mac partition for Linux Install (K)ubuntu Fix GPT-MBR Install Refind Step-0 In case you want to backup your mac:  Restart mac and hold  This will boot Mac in recovery mode as shown below    Plugin an external drive and choose Disk Utility option Select the mac partition (not your hard disk root) and go to restore tab Choose your external drive as the destination as shown below Important: ensure that your mac partition is the Source Click Restore to take a copy of Yosemite You are do