Compilation
Rules
Rule STATUS=yes // Provides interactive server status information
// status_module must be included and status
// support must be enabled in access.conf
Rule SOCKS4=no // Socks support ??
Rule IRIXNIS=no // IRIX Unix running NIS
Rule WANTHSREGEX=default // Henry Spencer's POSIX regex implementation
Modules (listed in order)
mime_module Determine file type by file name
access_module Access control based on client hostname or IP
address
auth_module User authentication via text files
negotiation_module Provide content negotiation via type maps and
multiviews
includes_module Provide server parsed HTML documents
dir_module Provide directory indexing
cgi_module Provide execution of CGI scripts
userdir_module Allow user specific directories
alias_module Map different parts of the host filesystem in
the document tree
env_module Allow for passing of environment variables to
CGI/SSI
config_log_module Configurable log format and supports Common
Logfile Format
asis_module Allow httpd/send-as-is files to be sent without
being processed
imap_module Replace CGI imagemap program functionality with
.map files
action_module Provide execution of CGI scripts based on media
type or request method
browser_module Set environmental variables based on browser type
agent_log_module Log client user agent
referer_log_module Log documents which reference documents on server
rewrite_module Provide a rule-based rewriting engine
cern_meta_module Provide CERN HTTPD metafile symantics, custom
HTTP headers
status_module Provide current server performance statistics
info_module Provide a comprehensive overview of current
server configuration, useful for debugging
anon_auth_module Provide functionality similar to anonymous ftp
db_auth_module User authentication via Berkeley DB files
dbm_auth_module User authentication via DBM files
msql_auth_module User authentication via mSQL database
digest_module User authentication via MD5 Digest Authentication
expires_module Control HTTP expires header by directive
headers_module Allow customization of HTTP response headers
dld_module Provide loading of executale code and modules
into the server at startup time
usertrack_module Log user specific activity, replaces "cookie"
module
proxy_module Provide a caching proxy server
Proposed Directory Hierarchy & Permissions
/tmp/web# ls -lR total 7 dr-x--x--x 2 root root 1024 Feb 17 15:09 bin dr-x--x--x 2 root root 1024 Feb 17 15:35 cgi-bin dr-x--x--x 2 root root 1024 Feb 17 16:15 conf dr-x--x--x 2 root root 1024 Feb 17 15:11 htdocs dr-x--x--x 2 root root 2048 Feb 17 16:16 icons dr-x--x--x 2 root root 1024 Feb 17 16:18 logs bin: total 218 ---x------ 1 root root 221530 Feb 17 15:09 httpd cgi-bin: total 0 conf: total 20 -r-------- 1 root root 2110 Feb 17 15:09 access.conf -r-------- 1 root root 6145 Feb 17 15:09 httpd.conf -r-------- 1 root root 2394 Feb 17 15:09 mime.types -r-------- 1 root root 6591 Feb 17 15:09 srm.conf htdocs: total 1 -r--r--r-- 1 root root 329 Feb 17 15:11 index.html icons: ( everything here is -r--r--r--, files not shown to conserve space ) logs: total 6 -rw------- 1 root root 332 Feb 17 16:14 access_log -rw-r--r-- 1 root 65535 2052 Feb 17 16:18 apache_status -rw------- 1 root root 353 Feb 17 16:18 error_log -rw------- 1 root 65535 5 Feb 17 16:18 httpd.pid
The Configuration Files
First edit httpd.conf. This sets up general attributes about the server; the port number, the user it runs as, etc. Next edit the srm.conf file; this sets up the root of the document tree, special functions like server-parsed HTML or internal imagemap parsing, etc. Finally, edit the access.conf file to at least set the base cases of access.
- From the Apache Documentation
Starting the Apache Web Server
For Web Services to be available at boot time a startup script or "rc" file should be created. Here is my startup script.
Last Modified: 17 February 1997
St. Louis Unix Users Group - Linux SIG