Entradas

How to Install Nginx Web Server on Ubuntu

 Thank to: https://phoenixnap.com/ Prerequisites A system running Ubuntu 18.04 A  user account with sudo  privileges The  apt package manager  utility, included by default The UFW, or UnComplicated Firewall, included by default SSH Access Steps to Installing Nginx on Ubuntu Update Software Repositories Log into your Server via SSH as the root user ssh root@hostname Before installing new software, it is strongly recommended to update your local software database. Updating helps to make sure you’re installing the latest and best-patched software available. Enter the following: sudo apt update Allow the process to finish. Install Nginx on Ubuntu Enter the following  to install Nginx on Ubuntu : sudo apt install nginx This may take some time for the system to download the software packages and install them. Allow it to complete before moving on. Verify Nginx Service is Running Use the following command to check the status of the Nginx service: sudo systemc...

How to Redirect HTTP to HTTPS in Nginx

Imagen
Thank to: https://phoenixnap.com/  Introduction Nginx  (pronounced “Engine-X”) is a Linux-based web server and proxy application. Nginx is a powerful tool for redirecting and managing web traffic. It can be easily configured to redirect unencrypted  HTTP  web traffic to an encrypted HTTPS server. This guide will show you how to redirect HTTP to HTTPS using Nginx. Prerequisites A Linux server running Nginx A user account with  sudo  privileges Remote login to a web server (optional, required only if you are not working directly on your web server) Access to a terminal/command line (Ctrl-Alt-T or Ctrl-Alt-F2) HTTP to HTTPS Redirect To enforce an HTTP to HTTPS redirect, you need to edit the Nginx configuration file. In most cases, you can locate the file in the  /etc/nginx/sites-available  directory. If not found, search for it here:  /etc/nginx/nginx.conf, /usr/local/nginx/conf , or  /usr/local/etc/nginx . Once you have located the Ng...

How To Configure iSCSI Initiator on Ubuntu 22.04|20.04

Imagen
 Thank to: https://techviewleo.com/ iSCSI  is a protocol used to transport packets over TCP/IP networks. It is often used to set up shared storage where multiple servers can access central resources as if they existed on the local device. This setup works using a client-server model with the  iSCSI target  holding the block storage and the  iSCSI initiator  configured to send and receive packets from the target. In our previous guide, we walked through how to  configure the iSCSI Target on Ubuntu  22.04|20.04. Today we will cover the required steps on how to configure iSCSI Initiator on Ubuntu 22.04|20.04. Requirements This guide will work best if you have the following: Ubuntu 22.04|20.04 iSCSI target installed and configured. The guide below can be used to install and configure the iSCSI target on Ubuntu 22.04|20.04. How To Configure iSCSI Target on Ubuntu Once the requirements have been met, proceed as shown. #1. Install iSCSI initiator on...