Nginx Rewrite Rules for WordPress on a Subdirectory with Ruby on Rails in App

nginx-ruby-wordpress

There was a Ruby on Rails (Unicorn) app running on domain root. Client wanted to have a WordPress blog on domain.com/blog. I had an idea what I should do to get this working. But it was still a challenge for me since I was a total noob to Ruby on Rails. But after few hours of searching around and seeking experts on the subject, I come up with proper rewrite rules for getting WordPress work with Ruby on Rails on an Nginx server.

Continue reading

Using Key Pair to Login to an Amazon EC2 Instance

Amazon-EC2-Keys-PuTTY
When you first create an Amazon EC2 instance, you’re offered to download a key file which you can use to get access to your instance via SSH. Since the password logins are disabled by default on all EC2 instances, key pair is the only way you can authorize yourself to the instance. This post will show you how you can use these key pairs with PuTTY to login to your EC2 instance. Continue reading