httpd.conf 설명

UNIX&LINUX/LINUX 2015. 7. 22. 10:39
728x90
반응형

ServerRoot "/usr/local/apache"         → 아파치 서버의 루트 디렉토리(설치된 디렉토리)
Listen 80        → 아파치가 사용할 기본 포트
LoadModule php5_module   modules/libphp5.so         → php 연동을 위한 module loading
User daemon         → 아파치가 실행 될 때의 소유자
Group daemon        → 아파치가 실행 될 때의 소유 그룹
ServerAdmin you@example.com         → 서버관리자의 e-mail 주소
ServerName www.example.com        → 웹 서버 이름
DocumentRoot "/usr/local/apache/htdocs"         → 웹 문서들이 존재하는 홈 디렉토리
        → 시스템 루트(/) 디렉토리에 대한 접근제어 설정
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all

        → document root 디렉토리에 대한 접근제어 설정
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all


DirectoryIndex index.html index.htm index.php        → index 파일 우선순위 설정

        → .ht로 시작되는 파일들에 대한 접근제어 설정
Order allow,deny
Deny from all
Satisfy All

ErrorLog "logs/error_log"         → error log 파일의 경로 설정
LogLevel warn        → log 파일에 기록할 log level 설정
        → 로그파일 포맷(형식) 설정
LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i"" combined
LogFormat "%h %l %u %t "%r" %>s %b" common


# You need to enable mod_logio.c to use %I and %O
LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i" %I %O" combinedio

CustomLog "logs/access_log" common        → access log 파일의 경로 설정


ScriptAlias /cgi-bin/ "/svc/test/web/apache/cgi-bin/"         → cgi 스크립트 저장 디렉토리의 alias 설정

        → cgi-bin 디렉토리의 접근 제어 설정
AllowOverride None
Options None
Order allow,deny
Allow from all

DefaultType text/plain         → 기본 MIME type 설정, apache가 처리할 기본 문서를 정의

TypesConfig conf/mime.types        → MIME type 설정 파일의 경로 지정
AddType application/x-compress .Z         → 확장자 별 MIME type 설정
AddType application/x-gzip .gz .tgz
AddType application/x-httpd-php .php .php3 .ph .inc .html .htm .tpl        -> php source 코드를 적용할 확장자 리스트
AddType application/x-httpd-php-source .phps


# 추가 설정 include 파일 경로
# Server-pool management (MPM specific)
#Include conf/extra/httpd-mpm.conf        → mpm 설정파일(max client 등 mpm관련 설정)
# Multi-language error messages
#Include conf/extra/httpd-multilang-errordoc.conf        → multi language error 페이지 설정 파일(여러가지 언어로 error 페이지를 출력해 주기위한 설정)
# Fancy directory listings
#Include conf/extra/httpd-autoindex.conf         → directory index 설정파일(index 파일이 없을경우 file 리스트를 출력)
# Language settings
#Include conf/extra/httpd-languages.conf        → 기본 언어셋 이외의 언어 지원 설정파일
# User home directories
#Include conf/extra/httpd-userdir.conf        → 일반계정 home directory 설정파일(http://도메인/~계정 으로 접속 허용)
# Real-time info on requests and configuration
#Include conf/extra/httpd-info.conf        → apache server의 정보를 출력
# Virtual hosts
#Include conf/extra/httpd-vhosts.conf         → 가상호스트 설정파일
# Local access to the Apache HTTP Server Manual
#Include conf/extra/httpd-manual.conf        → apache manual 출력
# Distributed authoring and versioning (WebDAV)
#Include conf/extra/httpd-dav.conf        → WebDAV 설정(웹을 통하여 웹서버의 파일을 관리)
# Various default settings
#Include conf/extra/httpd-default.conf        → apache default 설정 파일
# Secure (SSL/TLS) connections
#Include conf/extra/httpd-ssl.conf        → ssl 설정 파일

SSLRandomSeed startup builtin        → 아파치 실행시에 ssl 이 실행되도록 설정
SSLRandomSeed connect builtin

728x90
반응형
블로그 이미지

nineDeveloper

안녕하세요 현직 개발자 입니다 ~ 빠르게 변화하는 세상에 뒤쳐지지 않도록 우리모두 열심히 공부합시다 ~! 개발공부는 넘나 재미있는 것~!

,