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

how to restrict access by IP address in NGINX

Hi All, In this document, we deal with how to restrict access by IP address in NGINX. Nginx is one of the powerful webservers with high performance. Nginx can be used as a load balancer, reverse proxy, caching, etc. Nginx comprises a lot of modules that help perform all these actions. Here we are explaining how we can restrict access to web server based on IP. To allow and deny access, use allow, and deny derivatives inside the server block.   In the above example nginx accept the connection only…

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