Sunday, September 29, 2013

Creating custom error pages in amazon cloudfront

Advertisements

You know Amazon is a company who introduce new features often. Recently they came up with custom error page for cloudfront cdn. In this post we will see how to create a custom error page for 404(page not found) errors.

Open the cloudfront distribution
Click on error pages.








Tuesday, September 17, 2013

Checking the amazon cloudfront edge-location in use

Advertisements

You have uploaded your files in Amazon S3 or Custom Origin. Created a cloudfront distribution. You checked and everything is working. Amazon has started new edge-locations in India. Mumbai and Chennai. How can you check your files are served from nearest edge? Or is it served from far edge? Then you have to change something. Getting the content from the nearest edge will reduce the latencies and improve the quality of service.

You can verify this two ways.

1) You can check Using the Amazon test tool. Easiest way.
2) Enable the cloudfront logs and check the logs. Little painful. But worth it.

Thursday, September 5, 2013

chkconfig add service in linux

Advertisements

We all now we use chkconfig entry to survive the reboots. If you enable a service for a particular runlevel using chkconfig the service will automatically start when server reboots in that particular runlevel. In this post we will see how to add a service to chkconfig.

You can list the entries using the following command
[root@localhost init.d]# chkconfig --list Service
Service          0:off   1:off   2:on    3:on    4:on    5:off   6:off