htpasswd (웹페이지에 암호 걸기) 실전


htpasswd (웹페이지에 암호 걸기) 실전

사용법 vi /usr/local/apache/conf/httpd.conf <Directory /> Options FollowSymLinks AllowOverride AuthConfig Require all granted </Directory> AuthConfig 이부분이 되게 중요하다. 이유는 하드웨어서버한대 apache에 root도메인이 있을것이다. /usr/local/apache/htdocs 여기일꺼다. 해당 디렉토리에 연결된 루트도메인이있을것이다. ex) www.abcdefgh.com or abcdefgh.com 일꺼다 하지만 하드웨어 서버한대의 apache에 여러도메인 즉 vhost를 쓸수 있다. ex) haha.abcdefgh.com (/home/hahaabcdefgh/html) hoho.abcdefgh.com (/home/hohoabcdefgh/html) haha.qwerasdf.com (/home/hahaqwerasdf/html) hoho.qwerasdf.com (/ho...


#Apache #htaccess #htpasswd

원문링크 : htpasswd (웹페이지에 암호 걸기) 실전