Hide Nginx version

By default, the Nginx version will be displayed when we query HTTP headers or error generated by the Nginx server. lets see how we can hide or remove the Nginx version. First lets see how Nginx version is displaying using cli Through curl command,we can see the version on error pages and in the “Server” response header field. Sample Output Now lets hide Nginx Version using server_tokens directive We need to set server_tokens to off to hide the Nginx server version.Now we will edit nginx.conf file.We will set server_tokens in…

Read More

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

how to set up folder-based access for svn repository

Hi All, This document deals with how to set up folder-based access for svn repository. SVN or subversion one of the other opensource version control tools. This can be used as a source control management system if you are not looking for any many features that git and other source tools provide. Sometimes there are some needs for you to provide folder-based access on your project for certain users. Some people may need to read or some need to read-write access. This document deals with the above-mentioned scenario. I hope…

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

Grafana reverse proxy setup with Nginx

Hi Techrunnr, this document deals with Grafana reverse proxy setup  Prerequisites Check the Nginx status Now we are going to edit the configuration file (/etc/nginx/nginx) to the reverse proxy, Remember that Grafana runs on port number: 3000, set up reverse proxy add below lines to the file Now start the , and open to http://localhost:3000 It should be straight forward to and running behind , but you need make some changes in the serverdomain block in configuration file (/etc//grafana.ini) Restart the   Now start the Service (If already service is…

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