HowTo: Enable Nginx Status Page

To enable the Nginx status page, you need to add a location block to your Nginx configuration file that will return information about the status of Nginx. Here’s an example of how you can enable the Nginx status page: Open the Nginx configuration file in your preferred text editor: sudo nano /etc/nginx/nginx.conf Add the following … Read more

Nginx: Redirect Backend Traffic Based Upon Client IP Address

You can redirect backend traffic based upon the client’s IP address in Nginx by using the nginx location block and the proxy_pass directive. Here’s an example: http { server { listen 80; server_name example.com; location / { # Redirect client with IP address 10.0.0.1 to backend server A if ($remote_addr = “10.0.0.1”) { proxy_pass http://backend-server-A; … Read more

Linux / Unix whereis Command Examples

The whereis command is a Linux/Unix utility that is used to locate the binary, source code, and manual page files for a given command or program. The whereis command searches the standard Linux/Unix paths for executables, libraries, and man pages, and it displays the location of the files it finds. Here are some common examples … Read more