
DocumentRoot는 웹 서버가 제공하는 웹 콘텐츠의 기본 루트 디렉토리를 의미합니다. 예를 들어, DocumentRoot가 /var/www/html로 설정되어 있다면, 웹 서버는 이 디렉토리와 그 하위 디렉토리에 있는 모든 파일을 제공합니다.
httpd.conf에서 DocumentRoot를 /var/www/html로 설정한 경우, index.html 파일은 /var/www/html 디렉토리 안에 위치하게 됩니다.
이때, 웹 서버는 /var/www/html/index.html 파일을 제공합니다. 웹 브라우저에서 http://localhost/index.html 또는 http://localhost/html/index.html를 입력하면, index.html 파일을 열 수 있습니다.
2025-08-12 01:40