Devops

NGINX – Redirecting traffic between www and non-www domain

Just in case you ever wondered whether the re-routing from www to non-www or non-www to www domain is possible using NGINX then you bet it is! In fact it is very simple and can be done using the following steps 1. Redirecting from www to non-www Setup a initial virtual server block to point your domain to your content, a simple example would look something Continue Reading

NGINX – Disable direct access (via http and https) to a website using IP address

For the requirements wherein direct access to a website using IP address has to be disabled/blocked, following steps can be followed To disable/block direct access to IP for port 80 create a new or add to an existing (as required) server configurations as follows server { listen 80 default_server; server_name _; return 404; } where _ catches all the domain names pointing to your server’s Continue Reading

NGINX – Easiest way to setup SSL using .pfx files

I’ll try to explain the easiest way to use a .pfx file that can be used to install SSL on NGINX. We’ll start by extracting the CRT file using openssl with the following command openssl pkcs12 -in ./YOUR-PFX-FILE.pfx -clcerts -nokeys -out domain.crt Followed by extracting the private key with the following command openssl pkcs12 -in ./YOUR-PFX-FILE.pfx -nocerts -nodes -out domain.rsa

Ansible: Do more with ease.

In software engineering, software configuration management (SCM or S/W CM) is the task of tracking and controlling changes in the software, part of the larger cross-disciplinary field of configuration management. SCM practices include revision control and the establishment of baselines. If something goes wrong, SCM can determine what was changed and who changed it. If a configuration is working well, SCM can determine how to Continue Reading

Jinja2 Template: The modern design friendly templating engine

Jinja2 is a modern and design friendly templating engine for Python programming language. Jinja2 is a library for Python that is flexible, fast and secure.Jinja can generate any text-based format (HTML, XML, CSV, JSON, etc.). It can generate different documents based on one or more predefined templates. It is also used as a part of the backend of the websites where we need to create Continue Reading

Ansible

Getting Started with Ansible

What is Configuration Management? Before starting with Ansible let’s discuss what configuration management is. Configuration Management (CM) is the process of handling changes in any system systematically, and it maintains the consistency of the product. It retains its consistency because it is applied over the entire lifecycle of the system. Configuration Management provides the capability of controlling and monitoring the performance of the system. Using Continue Reading

Introduction to Ansible

Ansible is an open-source automation engine that automates software provisioning, configuration management, and application deployment. It lets you control and configure nodes from a single machine. What makes it different from other management software is that Ansible uses  SSH infrastructure. It uses push mode, where the configuration is pushed from a master machine to nodes. Architecture Ansible has two types of servers: controlling machines and Continue Reading

Knoldus Pune Careers - Hiring Freshers

Get a head start on your career at Knoldus. Join us!