1 / 20

APACHE

APACHE. 조준희 (Cho, Junhee ) ssaljalu@sparcs.kaist.ac.kr ssaljalu@gmail.com. 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.

ellery
Télécharger la présentation

APACHE

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  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 <IfModulempm_prefork_module> StartServers 5 MinSpareServers 5 MaxSpareServers 10 MaxClients 150 MaxRequestsPerChild 0 </IfModule>

  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 <IfModulempm_worker_module> StartServers 2 MaxClients 150 MinSpareThreads 25 MaxSpareThreads 75 ThreadsPerChild 25 MaxRequestsPerChild 0 </IfModule>

  10. /etc/apache2/apache.conf • TimeOutThe number of seconds before receives and sends time out • AccessFileNameThe name of the file for additional configuration directives • DefaultTypeThe default MIME type

  11. /etc/apache2/apache.conf • ErrorLogThe default location of the error log file • LogLeveldebug, info, notice, warn, error, crit, alert, emergControl the number of messages logged to the error_log

  12. /etc/apache2/ports.conf NameVirtualHost *:80 Listen 80 <IfModulemod_ssl.c> # SSL name based virtual hosts are not yet supported, therefore no # NameVirtualHost statement here Listen 443 </IfModule>

  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 Foundationhttp://www.apache.org • The Apache HTTP Server Projecthttp://httpd.apache.org • Documentationhttp://httpd.apache.org/docs/trunk/en/

  20. Thanks. Q&A

More Related