1# For this to work, you need to have ssl.conf and ssl.load in 2# /etc/apache/mods-enabled. You also need to be able to write to 3# /var/run/apache2. (Tested on Ubuntu Hardy, directory names may 4# vary with other distros.) 5 6Listen 127.0.0.1:8000 7ServerName 127.0.0.1 8 9# 10# Timeout: The number of seconds before receives and sends time out. 11# 12Timeout 300 13 14# 15# KeepAlive: Whether or not to allow persistent connections (more than 16# one request per connection). Set to "Off" to deactivate. 17# 18KeepAlive On 19 20# 21# MaxKeepAliveRequests: The maximum number of requests to allow 22# during a persistent connection. Set to 0 to allow an unlimited amount. 23# We recommend you leave this number high, for maximum performance. 24# 25MaxKeepAliveRequests 100 26 27# 28# KeepAliveTimeout: Number of seconds to wait for the next request from the 29# same client on the same connection. 30# 31KeepAliveTimeout 15 32 33## 34## Server-Pool Size Regulation (MPM specific) 35## 36 37# prefork MPM 38# StartServers: number of server processes to start 39# MinSpareServers: minimum number of server processes which are kept spare 40# MaxSpareServers: maximum number of server processes which are kept spare 41# MaxClients: maximum number of server processes allowed to start 42# MaxRequestsPerChild: maximum number of requests a server process serves 43<IfModule mpm_prefork_module> 44 StartServers 5 45 MinSpareServers 5 46 MaxSpareServers 10 47 MaxClients 150 48 MaxRequestsPerChild 0 49</IfModule> 50 51# worker MPM 52# StartServers: initial number of server processes to start 53# MaxClients: maximum number of simultaneous client connections 54# MinSpareThreads: minimum number of worker threads which are kept spare 55# MaxSpareThreads: maximum number of worker threads which are kept spare 56# ThreadsPerChild: constant number of worker threads in each server process 57# MaxRequestsPerChild: maximum number of requests a server process serves 58<IfModule mpm_worker_module> 59 StartServers 2 60 MaxClients 150 61 MinSpareThreads 25 62 MaxSpareThreads 75 63 ThreadsPerChild 25 64 MaxRequestsPerChild 0 65</IfModule> 66 67# 68# AccessFileName: The name of the file to look for in each directory 69# for additional configuration directives. See also the AllowOverride 70# directive. 71# 72 73AccessFileName .htaccess 74 75# 76# The following lines prevent .htaccess and .htpasswd files from being 77# viewed by Web clients. 78# 79<Files ~ "^\.ht"> 80 Order allow,deny 81 Deny from all 82</Files> 83 84# 85# DefaultType is the default MIME type the server will use for a document 86# if it cannot otherwise determine one, such as from filename extensions. 87# If your server contains mostly text or HTML documents, "text/plain" is 88# a good value. If most of your content is binary, such as applications 89# or images, you may want to use "application/octet-stream" instead to 90# keep browsers from trying to display binary files as though they are 91# text. 92# 93DefaultType text/plain 94 95 96# 97# HostnameLookups: Log the names of clients or just their IP addresses 98# e.g., www.apache.org (on) or 204.62.129.132 (off). 99# The default is off because it'd be overall better for the net if people 100# had to knowingly turn this feature on, since enabling it means that 101# each client request will result in AT LEAST one lookup request to the 102# nameserver. 103# 104HostnameLookups Off 105 106# 107# LogLevel: Control the number of messages logged to the error_log. 108# Possible values include: debug, info, notice, warn, error, crit, 109# alert, emerg. 110# 111LogLevel warn 112 113Include /etc/apache2/mods-enabled/*.load 114Include /etc/apache2/mods-enabled/*.conf 115 116# 117# The following directives define some format nicknames for use with 118# a CustomLog directive (see below). 119# If you are behind a reverse proxy, you might want to change %h into %{X-Forwarded-For}i 120# 121LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined 122LogFormat "%h %l %u %t \"%r\" %>s %b" common 123LogFormat "%{Referer}i -> %U" referer 124LogFormat "%{User-agent}i" agent 125 126# 127# ServerTokens 128# This directive configures what you return as the Server HTTP response 129# Header. The default is 'Full' which sends information about the OS-Type 130# and compiled in modules. 131# Set to one of: Full | OS | Minor | Minimal | Major | Prod 132# where Full conveys the most information, and Prod the least. 133# 134ServerTokens Full 135 136# 137# Optionally add a line containing the server version and virtual host 138# name to server-generated pages (internal error documents, FTP directory 139# listings, mod_status and mod_info output etc., but not CGI generated 140# documents or custom error documents). 141# Set to "EMail" to also include a mailto: link to the ServerAdmin. 142# Set to one of: On | Off | EMail 143# 144ServerSignature On 145