# httpd-conf

## Description:

이 패키지는 안녕 리눅스 아파치2의 바이너리를 제외한 설정파일들을 포함하고 있다.

## Dependency:

* None

## Features:

* **/etc/httpd/conf**
  * 기본 설정파일 httpd.conf 포함.
  * httpd.conf는 apache web server가 구동이 가능한 최소한의 설정
  * 이 파일은 수정하지 않고, **/etc/httpd/user.d/Default.conf** 수정을 권고
* **/etc/httpd/conf.d**
  * LoadModules.conf (기본 Module loading 설정)
  * 개별 Module 설정 파일 위치
  * Welcome.conf &#x20;

    **Document root directory**에 index 파일이 존재하지 않을 경우 기본 index 설정 파일 출력 설정
  * Security.conf
    * */tmp, /var/tmp, /etc, /usr/local/etc, /var/lib/php* 의 접근 방지
    * URI에 *tmp, temp, etc, conf, config, log, logs, class, inc, global, install* 디렉토리가 있으면 접근 방지
    * *.inc, .ph, .template, .conf, .dat* 파일 확장자 접근 방지
* **/etc/httpd/user.d**
  * Default.conf : 사용자 설정 파일
  * vhost.conf   : 가상 호스트 설정
* **/etc/logrotate.d/httpd** &#x20;
  * /var/log/httpd의 로그 중, *\_log, .log* 파일을 rotate 시킴
  * rotate 완료 후에, httpd reload 명령이 구동 됨

## Reference:

* None

## Dependencies:

* None

## Sub Packages:

* None

## Related Packages:

* [httpd](/annyung-3-user-guide/annyung3-package-catalog/annyung3-base-packages/pkg-base-httpd.md) package의 sub package


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://joungkyun.gitbook.io/annyung-3-user-guide/annyung3-package-catalog/annyung3-core-packages/pkg-core-httpd-conf.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
