Introduction To Apache: Ken Coar
Introduction To Apache: Ken Coar
Ken Coar
[email protected], The Apache Group
Prepared 6/24/99 Slide 1
Disclaimers
l UNIX is a registered trademark of X/Open
Company Ltd l OpenVMS is a registered trademark of Compaq Corporation l PostScript is a registered trademark of Adobe Systems, Inc l All other trademarks are the property of their respective owners, and no misuse is intended
Prepared 6/24/99
Slide 2
Acknowledgements
l I would like to gratefully acknowledge the
Prepared 6/24/99
Slide 3
http://Web.Golux.Com/coar/
Prepared 6/24/99
Slide 4
Contents
l What IS Apache, Anyway? l Whats Open-Source? l Getting Apache l Installing the server l Configuring Apache l Logfiles l Troubleshooting
Prepared 6/24/99
Slide 5
NCSA server l Available on over 160 varieties of Unix -- and Windows NT l Over 56% of Internet Web servers run Apache or an Apache derivative
Prepared 6/24/99
Slide 6
Whats Open-Source?
l Open-Source refers to software that is not
only free, but includes the source as well l Users are free to make whatever modifications they like to make the software work better for them l Users are generally encouraged to submit improvements for inclusion in the master distribution
Prepared 6/24/99
Slide 7
Getting Apache
l You can pull the distribution down from the
provide pre-built packaged versions l Some companies offer support (for a price, of course!) l The Apache site is mirrored all over the world, so theres probably a site nearer to you
Prepared 6/24/99
Slide 8
Prepared 6/24/99
Slide 9
Install it l Otherwise, Unpack the tarball Choose your modules Compile the server Modify configuration files to reflect your environment
Prepared 6/24/99
Slide 10
Configuring Apache
l Choosing functionality
Apache functionality is available through modules which are either built into or loaded into the server l Server instructions Apache reads its run-time configuration instructions from text files No GUI available 182 configuration directives in base package
Prepared 6/24/99 Slide 11
Pre-Forked or Multi-Threaded
l On Unix, Apache uses a pre-forking model,
which means that several processes are created to implement the server and handle requests Control via the parent process; dont touch the children! l On Windows NT, there are only two processes to handle multiple request threads
Prepared 6/24/99
Slide 12
Virtual Hosts
l A single Apache server installation can
actually support hundreds of different Web sites l NSPs and ISPs do this a lot l Allows additional Web presence without accompanying hardware or software investment required
Prepared 6/24/99
Slide 13
Content Negotiation
l If you have multiple language-specific
versions of documents, Apache can automatically choose the correct one according to the clients language preferences l Server can choose among different graphics formats; if it has both GIF and JPEG versions, it can send the one for which the client has expressed a preference
Prepared 6/24/99
Slide 14
external applications (scripts) l Server-side includes allow the server to modify pages at run-time before sending them l Java servlet modules are available, but not yet part of the base package (still under development) l SSL-enabled versions of Apache are available, both from commercial vendors and under open-source licence
Prepared 6/24/99 Slide 15
Logfiles
l Two basic logfiles
Access log -- whos been visiting your server and what they wanted Error log -- problems the server has encountered and things it has noticed l Can be configured for each virtual host, or for entire server l Access log format can be customised
Prepared 6/24/99
Slide 16
Troubleshooting
l First and foremost, check the error log! l Check the Apache FAQ
<http://www.apache.org/docs/misc/FAQ.html>
Going Further
l The main Apache site
http://www.apache.org/
l CGI Specification:
http://www.w3.org/pub/WWW/CGI/
l USENET News:
comp.infosystems.www.servers.unix
Prepared 6/24/99 Slide 18