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
- Site-to-Site VPN
- vgw
- 자바스크립트
- 구조분해 할당
- api gateway
- docker swarm
- VPC
- elasticsearch
- 단축 평가
- Await
- transit gateway
- JavaScript
- optional chaining
- 온프레미스
- On-Premise
- AWS
- Proxy Resource
- null 병합 연산자
- prometheus
- 비구조화 할당
- 옵셔널 체이닝
- Kubernetes
- docker
- 러스트
- rust
- Custom Resource
- Endpoints
- grafana
- cognito
- Service
Archives
- Today
- Total
만자의 개발일지
[Linux] 웹 서버 로그 확인하는 법 본문
CentOS를 기준으로 아파치 서버의 log 파일은 /var/log/httpd 안에 위치해있습니다.
access_log
access_log는 웹 사이트에 접속한 사용자에 대한 정보를 볼 수 있습니다.
# tail -f /var/log/httpd/access_log


218.39.220.99 라는 ip를 사용하는 사용자가 웹 서버로 GET 요청을 보냈고 웹 서버는 그에 대한 응답으로 200 에러를 반환 해주는 내용을 보실 수 있습니다.
error_log
error_log 는 웹 사이트에서 사용자가 없는 페이지를 요청했을때 뜨는 에러에 대한 정보를 볼 수 있습니다.
# tail -f /var/log/httpd/error_log

'Linux' 카테고리의 다른 글
| [Linux] rsync 설치 및 사용 방법 (0) | 2021.11.08 |
|---|---|
| [Linux] DNS서버 설정 파일 (0) | 2021.11.08 |
| [Linux] DirectoryIndex (0) | 2021.11.05 |
| [Linux] DocumentRoot (0) | 2021.11.05 |
| [Linux] CentOS Apache HTTP Server Configuration Files (0) | 2021.11.05 |
Comments