Category: nginx

  • HTTP Basic Authentication in nginx using htpasswd on Ubuntu 20.04

    Install apache2-utils Create htpasswd 유의할 점은 htpasswd 파일 신규 생성시에만 -c 옵션을 주고, 기존 파일에 추가시에는 옵션을 주지 않아야 한다. Modify nginx.conf 적용을 원하는 server 블록 혹은 location 블록에 아래와 같은 설정을 추가해준다. 이외 내용은 여기를 참조하기 바람.