Download presentation
Presentation is loading. Please wait.
1
APACHE 조준희 (Cho, Junhee) ssaljalu@sparcs.kaist.ac.kr ssaljalu@gmail.com
2
The Apache Software Foundation Collaborative Consensus based development process Open and pragmatic software license A desire to create high quality software Lots of software, not only the Apache HTTP Server
3
The Apache HTTP Server Secure, Efficient, Extensible HTTP standards Most popular web server since 1996 Robust, Commercial-grade, Featureful Open-Source, Free!
4
Multi-Processing Module Worker MPM 하나의 쓰레드가 하나의 요청을 처리 적은 메모리 – 많은 트래픽에 적합 Prefork MPM 하나의 프로세스가 하나의 요청을 처리 많은 메모리 Thread-safe
5
/etc/apache2/httpd.conf Apache HTTP Server Version 1 에서 설정 파일 Apache HTTP Server Version 2 에서는 설 정이 여러 파일에 나뉘어 있고, 이 파일은 사용하지 않고, 호환성만을 위해 남아있다.
6
/etc/apache2/apache.conf prefork MPM StartServers: number of server processes to start MinSpareServers: minimum number of server processes which are kept spare MaxSpareServers: maximum number of server processes which are kept spare MaxClients: maximum number of server processes allowed to start MaxRequestsPerChild: maximum number of requests a server process serves
7
/etc/apache2/apache.conf StartServers5 MinSpareServers5 MaxSpareServers10 MaxClients150 MaxRequestsPerChild0
8
/etc/apache2/apache.conf worker MPM StartServers: initial number of server processes to start MaxClients: maximum number of simultaneous client connections MinSpareThreads: minimum number of worker threads which are kept spare MaxSpareThreads: maximum number of worker threads which are kept spare ThreadsPerChild: constant number of worker threads in each server process MaxRequestsPerChild: maximum number of requests a server process serves
9
/etc/apache2/apache.conf StartServers2 MaxClients150 MinSpareThreads25 MaxSpareThreads75 ThreadsPerChild25 MaxRequestsPerChild0
10
/etc/apache2/apache.conf TimeOut The number of seconds before receives and sends time out AccessFileName The name of the file for additional configuration directives DefaultType The default MIME type
11
/etc/apache2/apache.conf ErrorLog The default location of the error log file LogLevel debug, info, notice, warn, error, crit, alert, emerg Control the number of messages logged to the error_log
12
/etc/apache2/ports.conf NameVirtualHost *:80 Listen 80 # SSL name based virtual hosts are not yet supported, therefore no # NameVirtualHost statement here Listen 443
13
/etc/apache2/envvars Default environment variables for apache2ctl 아파치 계정의 기본 환경 변수
14
/etc/apache2/conf.d 여러 설정 파일이 모여있는 디렉토리
15
Module Configuration Files /etc/apache2/mods-available 사용 가능한 모듈 설정 파일이 모여있는 디 렉토리 /etc/apache2/mods-enable 활성화할 모듈의 심볼릭 링크가 모여있는 디렉토리
16
Site Configuration Files /etc/apache2/sites-available 사용 가능한 사이트 설정 파일이 모여있는 디렉토리 /etc/apache2/sites-enable 활성화할 사이트의 심볼릭 링크가 모여있 는 디렉토리
17
# /etc/init.d/apache2 start stop restart reload force-reload start-htcacheclean stop-htcacheclean status
18
.htaccess 디렉토리 별로 개별적인 아파치 설정을 할 수 있다. 이 설정을 가능하면 사용하지 않는 것이 좋 다. – 성능 문제 – 보안 문제
19
Reference The Apache Software Foundation http://www.apache.org http://www.apache.org The Apache HTTP Server Project http://httpd.apache.org http://httpd.apache.org Documentation http://httpd.apache.org/docs/trunk/en/ http://httpd.apache.org/docs/trunk/en/
20
Q&A Thanks.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.