Example Configuration File
### Main Configuration Section
###
ServerRoot /usr/lib/apache2 # Section-Type = ' ', Section Instance Name = ' '
PidFile /var/run/apache2.pid # These are 5 name / value pairs with a delimiter of ' '
ErrorLog logs/error_log # each at the top-most section-type and instance
LogLevel warn
DocumentRoot /var/www/localhost/htdocs
###
### Global Configuration
###
# For Apache2 we load all conf files in conf/modules.d
Include conf/modules.d/*.conf # more top-most name / value pairs
Include conf/commonapache2.conf
###
### IP Address/Port
###
#BindAddress *
Listen 80
###
### Log configuration Section
###
<IfModule mod_log_config.c> # Section-Type = 'IfModule', Section Instance Name = 'mod_log_config.c'
CustomLog logs/access_log combined env=!VLOG # this name / value pair will be added to the 'mod_log_config.c' section
</IfModule> # instance of the 'IfModule' section-type
###
### Virtual Hosts
###
Include conf/vhosts/vhosts.conf # This name / value pair, being outside of any <></> section identifiers
# will be added to the top-most collection of name / value pairs
###
### Performance settings Section
###
#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 300 # More top-most name / value pairs
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
<IfModule prefork.c> # Section-Type = 'IfModule' (like above) and
StartServers 5 # section instance name = 'prefork.c'
MinSpareServers 5 # These name / value pairs will be added to the 'prefork.c' instance
MaxSpareServers 10 # of the 'IfModule' section-type
MaxClients 150
MaxRequestsPerChild 0
</IfModule>
<IfModule worker.c> # Another section instance of the 'IfModule' section type
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>
<IfModule perchild.c> # Yet another 'IfModule' section-type instance
NumServers 5
StartThreads 5
MinSpareThreads 5
MaxSpareThreads 10
MaxThreadsPerChild 20
MaxRequestsPerChild 0
</IfModule>
Alias /awstatsclasses "/etc/awstats/wwwroot/classes/"
Alias /awstatscss "/etc/awstats/wwwroot/css/"
Alias /awstatsicons "/etc/awstats/wwwroot/icon/"
ScriptAlias /awstats/ "/etc/awstats/wwwroot/cgi-bin/"
<Directory "/etc/awstats/wwwroot"> # A second section-type (Conf4CSection) will be added to accomodate
Options None # a new section-type of 'Directory' with '"/etc/awstats/wwwroot"' as
AllowOverride None # the first instance of this new section-type
Order allow,deny
Allow from all
</Directory>
This document was generated on October, 29 2004 using texi2html 1.70.