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