Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- transit gateway
- CloudFormation
- 구조분해 할당
- Custom Resource
- Kubernetes
- AWS
- api gateway
- grafana
- elasticsearch
- docker
- JavaScript
- 단축 평가
- Await
- 옵셔널 체이닝
- null 병합 연산자
- optional chaining
- vgw
- 비구조화 할당
- Endpoints
- docker swarm
- Service
- VPC
- DynamoDB
- Site-to-Site VPN
- On-Premise
- prometheus
- 자바스크립트
- Proxy Resource
- 온프레미스
- cognito
Archives
- Today
- Total
만자의 개발일지
[Linux] DocumentRoot 본문
DocumentRoot
Apache는 www 서버이기 떄문에 클라이언트 요청에 대해 대응하는 응답을 반환합니다. 그러한 내용을 저장해 두는 위치를 DocumentRoot로 지정합니다.
DocumentRoot 디렉토리는 절대 경로 또는 상대 경로로 지정할 수 있다. 마지막에 슬래시(/)는 붙이지 않습니다.
CentOS를 기준으로 DocumentRoot에 대한 정보는 httpd.conf 파일에 있습니다.
httpd.conf의 위치는 아래 글을 참고하시면 됩니다.
https://yoo11052.tistory.com/86
[Linux] CentOS Apache HTTP Server Configuration Files
아파치 설정 파일 /etc/httpd/conf/httpd.conf httpd.conf 파일은 아파치의 대한 정보를 담고있는 파일이다. # vi /etc/httpd/conf/httpd.conf vi 로 파일을 열어서 여러가지 설정들을 변경할 수 있다. 예를들어 D..
yoo11052.tistory.com
httpd.conf 파일을 보면 DocumentRoot가 정의되있는 부분을 보실 수 있을 겁니다.
DocumentRoot는 기본적으로 /var/www/html 로 지정되 있습니다. 입력모드를 통해 다른 경로로 설정할 수 있습니다.
클라이언트가 웹 서버로 접속해 페이지를 요청하면 웹 서버는 클라아언트가 요청한 웹 페이지를 DocumentRoot 에서 찾게 됩니다.
참고
'Linux' 카테고리의 다른 글
[Linux] 웹 서버 로그 확인하는 법 (0) | 2021.11.08 |
---|---|
[Linux] DirectoryIndex (0) | 2021.11.05 |
[Linux] CentOS Apache HTTP Server Configuration Files (0) | 2021.11.05 |
[Linux] 리눅스 파일 및 폴더 권한 (0) | 2021.11.05 |
[Linux] 사용자와 사용자 추가 및 sudo 권한 부여 (0) | 2021.11.05 |
Comments