Apache HTTPd Server 2.2 Presentation
Upcoming SlideShare
Loading in...5
×
 

Apache HTTPd Server 2.2 Presentation

on

  • 3,163 views

A presentation I gave on 06, June 2009 about Apache HTTPd 2.2 covering an overview of its functionality and capabilities when I was at NetSignature.

A presentation I gave on 06, June 2009 about Apache HTTPd 2.2 covering an overview of its functionality and capabilities when I was at NetSignature.

Statistics

Views

Total Views
3,163
Views on SlideShare
3,155
Embed Views
8

Actions

Likes
1
Downloads
48
Comments
0

2 Embeds 8

http://www.slideshare.net 4
http://www.linkedin.com 4

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Apache HTTPd Server 2.2 Presentation Apache HTTPd Server 2.2 Presentation Presentation Transcript

  • Apache HTTP Server 2.2 By, Ahmed Medhat
  • Introduction • Apache HTTP Server is a project from Apache Software Foundation • a.k.a HTTPD
  • Installation • Super easy on GNU/Linux, Unix.. • On RedHat derivatives – yum install httpd – service httpd start
  • Configuration • /etc/httpd/conf/httpd.conf • Important directives: – DocumentRoot (where to serve content) – Listen (bind on which socket (ip:port)) – LogLevel (debug,info,notice,warn,error,crit,alert,emerg) – DirectoryIndex (default directory index page)
  • Multi-Processing Module • Respecting modularity, you can control the most basic functions of the web server. • Responsible for: – Binding to network ports – Accepting requests – Dispatching request handling children. • Available MPM – Worker (POSIX) – Prefork (POSIX) – Mpm_winnt (for windows) *won’t talk about, Unix biased :) POSIX = Portable Operating System Interface for Unix
  • Prefork MPM • Old Apache 1.3 only MPM • Non-threaded, for sake of respect to non- thread safe libraries • Single process/thread, many child, one process rule them all • Resource hungry, Listener process embedded • Lots of tuning, expandability needs reconfiguration
  • Worker MPM • Hybrid multi-process multi-threaded server • Many threads, Many requests, Few resources • Retains stability by having many processes, each with many threads • Respects memory, GC • Listener process, The guarding angel process
  • Sample Request
  • Virtual Hosts • A blessing for business • Many web sites -> one web-server GET /hello.html HTTP/1.1 Host: www.example.com • Many web sites -> one IP address (name-based) – NameVirtualHost – <VirtualHost> • Many web sites -> many IP addresses (IP-based) – Supported out-of-the-box • Sample configuration <VirtualHost *:80> ServerAdmin webmaster@example.com DocumentRoot /var/www/example.com ServerName example.com ServerAlias www.example.com ErrorLog logs/example.com-error_log CustomLog logs/example.com-access_log common </VirtualHost>
  • Native Languages Support • mod_php • mod_python • mod_ruby • mod_cgi
  • Application Stacks Available • XAMPP http://www.apachefriends.org/en/xampp.html • WAMP http://www.wampserver.com/en/
  • Thank you  • Questions ?