728x90
Web site sub directory
# mkdir /var//www/html/web1
# echo web1 > /var/www/html/web1/index.html
기본 디렉터리(index.html)가 있으므로 web1이 출력되는 페이지 출력
index.html 을 1.html로 바꿨을 때
기본 디렉터리가 없는 경우 디렉터리 전체 목록을 출력함
==> 보안에 아주 취약하고 해킹당할 위험이 큼
파일의 내용들이 안보이게 하는 법
# vi /etc/httpd/conf/httpd.conf
/web1/1.html은 들어가진다 !
#cd /var/www/error
# ls
파일 중 noindex.html 이란 파일이 있다
이 파일을 잠시 이름을 바꿔준다면 ?
# mv noindex.html noindex.html.bak
index.html도 출력되지 않음을 알 수 있다.
728x90
'운영체제' 카테고리의 다른 글
dns mail 구축 (0) | 2021.07.02 |
---|---|
DNS와 Resolver (0) | 2021.06.30 |
WWW server 구축과 실습 (2) | 2021.06.30 |
FTP(File Transfer Protocol) (0) | 2021.06.29 |
DHCP (Dynamic Host Configuration Protocol) (0) | 2021.06.29 |