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
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
DirectoryIndex index.html index.htm index.php → index 파일 우선순위 설정
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 설정
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
'UNIX&LINUX > LINUX' 카테고리의 다른 글
리눅스에서 기본적인 환경설정하기 (Path 위주로) (0) | 2017.06.08 |
---|---|
리눅스 시스템 ping 명령어 사용하기 (0) | 2017.06.08 |
[Linux]리눅스,링크,아이노드,하드링크,심볼릭링크,링크명령어 (0) | 2015.08.17 |
[리눅스]리눅스의 링크란?,리눅스 링크의 종류,하드링크와 심볼링크에 대해 (0) | 2015.08.17 |
리눅스 그룹생성 과 그룹내 유저생성 (0) | 2015.07.22 |
[리눅스] Apache 2.2 설치 (0) | 2015.07.21 |
리눅스 java 삭제 및 설치 (0) | 2014.10.15 |
Redhat(레드햇, 리눅스)에서 Java 설치 후에 버전 업이 안 될 때 (0) | 2014.10.15 |