Apache Web Server WWW Apache org Apache Overview
Apache Web Server WWW. Apache. org
Apache Overview • A Patchy Web server--put together over time by the Apache group, with contributions from numerous individuals. • Based on the NCSA Web daemon. NCSA used government funds, so their source code was available, as is Apache’s. • Free, open-source, as is LINUX
Apache Overview - 2 • Configured with Text files • Dependable • Available for numerous platforms, even Windows! But windows is not as dependable. • Over 50% of all Web sites are served with Apache, including many of the CSUS’s!
Configuring: <Directive Container [variables]> Directive Value #Comment </Directive Container> Global Directives #outside of container #Comments all over #about a gross (144) directives possible, but not needed #Directive Containers indicate Scope
Config Files TEXT files you edit Httpd. conf Main file the server starts with Srm. conf Defines where documents are found Access. conf Access Information Mimes. type (rarely edited) Helps the server and client associate files with the routines to properly read them.
Httpd. conf • Configuration file • Main one • First one • May be configured as the only one
Directives • • • Directory Containers dictate Scope < Directory abs/path/> <Files *. *, *hello*> <Location /actual/path/on/server/> <Virtual. Host mydomain. com>
Common Directives • • • Disable Method: Disable GET Error. Url: Error. Url 500 my_error 500. html Hostname boysenberry Port 80 Script. Time. Out 5 mins Document. Root /usr/local/webdocs Server. Root /usr/local/web/apache
Common Directives - 2 • • • Server. Type stand. Alone|inetd Host. Name. Lookups off User Nobody Error. Log logs/error_log Transfer. Log logs/access_log Pid. File logs/httpd. pid Timeout 300 Keep. Alive On Keep. Alive. Timeout 15
- Slides: 9