본문 바로가기
Others

Apache2 비밀번호 걸기

by suminhan 2019. 5. 22.

https://www.digitalocean.com/community/tutorials/how-to-set-up-password-authentication-with-apache-on-ubuntu-14-04

 

How To Set Up Password Authentication with Apache on Ubuntu 14.04 | DigitalOcean

When setting up a web server, there are often sections of the site that you wish to restrict access to. Web applications often provide their own authentication and authorization methods, but the web server itself can be used to restrict access if thes

www.digitalocean.com

 

$ sudo htpasswd -c /etc/apache2/.htpasswd username

하면 알아서 비밀번호 입력하라고 뜬다

 

그다음

$ sudo nano /etc/apache2/sites-enabled/000-default.conf

들어가서

요로코롬 넣어주면 된다.

댓글