Skip to main content

Posts

Showing posts from December, 2017

Automated API Monitoring & Status Page

Have you ever thought about setting automated API monitoring? If yes, then it is good idea to setup an open source status page as well for your APIs. This way, you can establish trust and provide a view to your clients to check how your APIs are behaving over past few days. There could be several other ways to implement this, but this is what I am going to propose. Basically, we can interconnect few systems together and automatated API monitoring and status page. The workflow will be something like this: Build API monitoring script using Postman tool Export Postman collection Install following softwares on AWS EC2 instance: Jenkins (Installation steps in serarate article) Cachet (Installation steps in serarate article) MariaDB (Installation steps in serarate article) Newman (Command Line Postman Utility) (Installation steps in serarate article) Setup Jenkins job and configure postman collection using Newman Configure Jenkins job to run periodically Next, when

Securing Websited Hosted with Apache Web Server

In my previous article about Creating or Updating Users in htpasswd File, we saw how to create, update and remove user from htpasswd file. In this article, we will see how we can configure this file in Apache web server so that users will be prompts to provide credentials for accessing the web sites hosted with Apache web server. Follow my previous article and setup the users. Next, go to httpd and open the file which has virtual host configurations for your web site. Update the virtual host entry, it should looks something like this: Note that AuthType , AuthName , AuthUserFile and Require are important. Make sure to remove " Require all granted " from the virtual host entry (if you have it already). Otherwise, your website will be accessible without any authentication. That's it. Restart you Apache Web Server and now you will be prompted to provide credentials when you try to access the web site. P.S. Click here to access my other posts.