이번에 아파치 보안에 대해서 조금 공부할려고 합니다
httpd.conf 에서
................................
<Directory /home/huns/public_html/Desktop>
Options Includes
AllowOverride AuthConfig
AuthName "LinuxBible"
AuthType Basic
AuthUserFile /home/huns/pass/.htpasswd
require user aaa
Order deny,allow
Allow from 213.220.158.201
Deny from all
</Directory>
이렇게 설정하였습니다..물론 .htpasswd 파일은 만들었구요..
그런데 웹브라우저에서 띄우면 그냥 안에 내용이 나옵니다..
또한 httpd.conf안에서 고치는 방법 말구..
.htaccess 파일을 이용하는 방법입니다
Desktop디렉토리에 .htaccess 즉AuthName "LinuxBible"
AuthType Basic
AuthUserFile /home/huns/pass/.htpasswd
require user aaa
했는데도 안됍니다
설정이 잘못된건가요..?--환장하겠네