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 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/> <VirtualHost mydomain.com>
Common Directives Disable Method: Disable GET ErrorUrl: ErrorUrl 500 my_error500.html Hostname boysenberry Port 80 ScriptTimeOut 5 mins DocumentRoot /usr/local/webdocs ServerRoot /usr/local/web/apache
Common Directives - 2 ServerType standAlone|inetd HostNameLookups off User Nobody ErrorLog logs/error_log TransferLog logs/access_log PidFile logs/httpd.pid Timeout 300 KeepAlive On KeepAliveTimeout 15