Deploy rails app in subdirectory

With nginx and passenger, you can easily deploy multiple apps each in their own folder

Guide Nginx Deployment Rails

Protect email address displayed on your page

To prevent email harvesters from obtaining them easily

Article Security Email

Redirect www to non-www and http to https in nginx

Keep only 1 version of your page and redirect others to this version.

Guide Nginx Deployment SEO DNS

Open graph tags for Facebook

Define how Facebook crawler sees your page and how your page looks like as a post on Facebook

Snippet Facebook Meta Open graph SEO

Dynamically generated sitemap in rails

Always provide the latest sitemap to search engine when queried.

Guide Rails Sitemap SEO

SPF validation for your mail server

Add SPF entry in your DNS records to authorize a mail server

Snippet Email SEO Security DNS

Censoring data in rails log files

Log files should be free of sensitive information

Guide Rails Logging Security

Deploying rails app

In Ubuntu, Nginx, Passenger environment.

Guide Nginx Deployment Passenger Rails

Rate Limiting on Nginx

To prevent security attack, load attack and create a fair usage environment.

Snippet Nginx Config

Using a custom Domain Name for CloudFront CDN

For consistency, or white-listing, or other specific purposes.

Guide AWS DNS CloudFront

Using AWS CloudFront as your Content Delivery Network

To speed up content delivery and improve page loading time.

Article AWS CloudFront Optimization Rails

Setting up Sendy with Nginx

An alternative to Apache as taught in Sendy's Get Start.

Guide Sendy Nginx Setup

Using microdata schema to structure your web content

Search Engine and Crawler recognise the structure of your web content by reading the embedded microdata.

Article SEO Microdata Google

Log rotation and maintenance in Ubuntu

You do not want to keep all your logs in just 1 file and let it grows forever.

Guide Logging Maintenance Ubuntu

Setup rabbitmq service on Ubuntu

RabbitMQ is a message broker to manage your message's livecycle.

Guide RabbitMQ Setup Ubuntu