different types of load balancing in nginx

Hi All, this document is about different types of load balancing in nginx. Nginx is one of the best and commonly used webserver in the world. It famous more for its capability of handling the requests. It supports various modules that can be used for real-time examples. Nginx can be used as a reverse proxy, mail proxy, HTTP cache, and even a load balancer. Today I’m going to brief you about the load balancing techniques which are supported by Nginx. Nginx supports various support of load balancer types such as…

Read More

htpasswd with Nginx

nginx

  Hi All, this document deals with the web page security using  Prerequisites we use this is found in the apache- package Now we create a password file, for the first time we need to use -C option to create the specified file, We mention the user name at the end of the command, it will prompt to enter password If you want to add another new user then remove -c Now we are going to mention the file into the configuration, mention the file location as show below (In…

Read More

mail catcher reverse proxy with Nginx

Hi All, this document deals with how to set up mail catcher reverse proxy with Nginx. Prerequisites Nginx mailcatcher If Not installed please go through our blog for mailcatcher: https://www.techrunnr.com/?s=mailcatcher, For Nginx: https://www.techrunnr.com/nginx-source-installation-in-centos/ Now start the mailcatcher service mailcatcher listens 1080(http), 1025(smtp) port number For mailcatcher GUI mode, open your browser and http://<IP>:1080 Setup Nginx as a reverse proxy for mailcatcher, Go to Nginx conf file (/etc/nginx/nginx.conf) to add below content to the conf file Restart the Nginx service To verify the mailcatcher reverse proxy configuration with the nginx, Go…

Read More

how to monitor nginx active connections

nginx

Hi All, this document deals with how to monitor nginx active connections. Nginx is one of the best open source web servers. It performs much faster than the Apache web server. Nginx is a web server which can also be used as a reverse proxy, load balancer, mail proxy, and HTTP cache. The software was created by Igor Sysoev and first publicly released in 2004. A company of the same name was founded in 2011 to provide support and Nginx plus paid software. So here is the configuration to see…

Read More

PHP Fatal error: Uncaught Error: Call to undefined function curl_init()

php

Hi all, this document deals with how to fix the error “PHP Fatal error: Uncaught Error: Call to undefined function curl_init()”. This is an exception by PHP when it detects the required plugin is missing. Here the missing PHP library is curl. Step 1: check your PHP version.   Expected output Step 2: Now you can see the PHP version is 7.2 using Step 3: Now install the dependency packages such as gd and ImageMagick Step 4: choose the package for your version. For Ubuntu For Centos   Step 5: …

Read More

The server doesn’t have ImageMagick or GD installed and/or enabled

php

The above error occurs when you tires to resize any image uploaded to WordPress. Here are the steps to resolve the above issue. Step 1: Identify the version of PHP used in your system. You can this by executing below command Step 2: Now you can see the PHP version is 7.2 using Step 3: Now install the dependency packages such as gd and ImageMagick Step 4: choose the package for your version. For Ubuntu For centos Here is the sample output from Centos/RHEL Step 5: Installing the package Imagick…

Read More

how to setup mod cache in apache2

apache

Hi All, this document deals with how to setup mod cache in apache2. Web caching the way of improving the server performance, so all the cached requests will be served from the cache resource without directly accessing from the web server. The dynamic contents will be shared from the web server itself. In this document, I will show you how to install and configure mod_cache in apache web server. Requirements: * Running apache web server. Installation Enable the mod cache modules Restart the apache service in order to modules get…

Read More

disable outdated version of SSL/TLS in apache

disable outdated version of SSL/TLS in apache Hi Techrunnr readers, this document deals with how to disable outdated version of SSL/TLS in apache. AS per the new PCI compliance following SSL protocols should be disabled from the server side. TLS 1.0/1.1 SSL 2.0/3.0 The above SSL protocols don’t provide any sort of protection while data transfer. Some cases of TLS 1.0 leads to Man In the Middle attack. Here are the following steps to disable above-mentioned SSL protocols, Add the the ssl.conf in /etc/httpd/conf.d/ by commenting on the existing Add…

Read More

apache failover using keepalived

apache

apache failover using keepalived Hi Techrunnr Readers, this document deals with configuration of apache failover using keepalived. Configuring failover helps to run a service continuously if any of the systems failed without any help of human intervention. Here we are configuring Failover for apache service using keepalived with floating IP. Floating IP will switch from master to backup server automatically when the master is unavailable. Here is the configuration to how to set up failover for apache service. Prerequisites * 2 Servers with root access * Floating IP Installation My…

Read More

how to configure Letsencrypt for nginx on Ubuntu 18.04

how to configure Letsencrypt for nginx on Ubuntu 18.04 Hello Techrunnr readers, this document shows you how to configure Letsencrypt for nginx on Ubuntu 18.04. Letsencrypt is a free SSL certificate service provider, where you can get SSL certificate for your websites, blog, etc. Letsencrypt issues SSL certificate for 90 days, a task scheduler verifies the expiry date and reissue new certificate before it gets expired. So, Let’s start the configuration Let’s say you have 2 sites test.com and example.com and you have two separate files for virtual hosting, The…

Read More