June 22, 2024, 9:01 a.m. | S Karthik

DEV Community dev.to




Introduction


In this guide, we’ll walk you through setting up HTTP Basic Authentication for your application using Nginx. This will help you add an extra layer of security by requiring a username and password to access your application.





Setup Instructions


Step 1: Install Apache Utilities

First, we need to install apache2-utils, which provides the htpasswd utility for creating password files. I’m using an Ubuntu machine, so I have installed apache2-utils using the following commands.



sudo apt update
sudo apt install …

access apache application authentication basic cloud guide http install instructions introduction nginx password securing security setup username using utilities

Information Technology Specialist I: Windows Engineer

@ Los Angeles County Employees Retirement Association (LACERA) | Pasadena, California

Information Technology Specialist I, LACERA: Information Security Engineer

@ Los Angeles County Employees Retirement Association (LACERA) | Pasadena, CA

Executive Head: CVM and Artificial Intelligence Enablement

@ Vodafone | Midrand, ZA

AWS SysOps Administrator

@ BridgePhase | San Antonio, TX

Major Accounts Executive - France (Public Sector)

@ Cyberark | Paris, France

Account Executive - Denmark

@ Cyberark | Copenhagen, Denmark