OLD | NEW |
| 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 |
1 Listen 127.0.0.1:8000 | 6 Listen 127.0.0.1:8000 |
2 ServerName 127.0.0.1 | 7 ServerName 127.0.0.1 |
3 | 8 |
4 # | 9 # |
5 # Timeout: The number of seconds before receives and sends time out. | 10 # Timeout: The number of seconds before receives and sends time out. |
6 # | 11 # |
7 Timeout 300 | 12 Timeout 300 |
8 | 13 |
9 # | 14 # |
10 # KeepAlive: Whether or not to allow persistent connections (more than | 15 # KeepAlive: Whether or not to allow persistent connections (more than |
11 # one request per connection). Set to "Off" to deactivate. | 16 # one request per connection). Set to "Off" to deactivate. |
12 # | 17 # |
13 KeepAlive On | 18 KeepAlive On |
14 | 19 |
15 # | 20 # |
16 # MaxKeepAliveRequests: The maximum number of requests to allow | 21 # MaxKeepAliveRequests: The maximum number of requests to allow |
17 # during a persistent connection. Set to 0 to allow an unlimited amount. | 22 # during a persistent connection. Set to 0 to allow an unlimited amount. |
18 # We recommend you leave this number high, for maximum performance. | 23 # We recommend you leave this number high, for maximum performance. |
19 # | 24 # |
20 MaxKeepAliveRequests 100 | 25 MaxKeepAliveRequests 100 |
21 | 26 |
22 # | 27 # |
23 # KeepAliveTimeout: Number of seconds to wait for the next request from the | 28 # KeepAliveTimeout: Number of seconds to wait for the next request from the |
24 # same client on the same connection. | 29 # same client on the same connection. |
25 # | 30 # |
26 KeepAliveTimeout 15 | 31 KeepAliveTimeout 15 |
27 | 32 |
28 ## | 33 ## |
29 ## Server-Pool Size Regulation (MPM specific) | 34 ## Server-Pool Size Regulation (MPM specific) |
30 ## | 35 ## |
31 | 36 |
32 # prefork MPM | 37 # prefork MPM |
33 # StartServers: number of server processes to start | 38 # StartServers: number of server processes to start |
34 # MinSpareServers: minimum number of server processes which are kept spare | 39 # MinSpareServers: minimum number of server processes which are kept spare |
35 # MaxSpareServers: maximum number of server processes which are kept spare | 40 # MaxSpareServers: maximum number of server processes which are kept spare |
36 # MaxClients: maximum number of server processes allowed to start | 41 # MaxClients: maximum number of server processes allowed to start |
37 # MaxRequestsPerChild: maximum number of requests a server process serves | 42 # MaxRequestsPerChild: maximum number of requests a server process serves |
38 <IfModule mpm_prefork_module> | 43 <IfModule mpm_prefork_module> |
39 StartServers 5 | 44 StartServers 5 |
40 MinSpareServers 5 | 45 MinSpareServers 5 |
41 MaxSpareServers 10 | 46 MaxSpareServers 10 |
42 MaxClients 150 | 47 MaxClients 150 |
43 MaxRequestsPerChild 0 | 48 MaxRequestsPerChild 0 |
44 </IfModule> | 49 </IfModule> |
45 | 50 |
46 # worker MPM | 51 # worker MPM |
47 # StartServers: initial number of server processes to start | 52 # StartServers: initial number of server processes to start |
48 # MaxClients: maximum number of simultaneous client connections | 53 # MaxClients: maximum number of simultaneous client connections |
49 # MinSpareThreads: minimum number of worker threads which are kept spare | 54 # MinSpareThreads: minimum number of worker threads which are kept spare |
50 # MaxSpareThreads: maximum number of worker threads which are kept spare | 55 # MaxSpareThreads: maximum number of worker threads which are kept spare |
51 # ThreadsPerChild: constant number of worker threads in each server process | 56 # ThreadsPerChild: constant number of worker threads in each server process |
52 # MaxRequestsPerChild: maximum number of requests a server process serves | 57 # MaxRequestsPerChild: maximum number of requests a server process serves |
53 <IfModule mpm_worker_module> | 58 <IfModule mpm_worker_module> |
54 StartServers 2 | 59 StartServers 2 |
55 MaxClients 150 | 60 MaxClients 150 |
56 MinSpareThreads 25 | 61 MinSpareThreads 25 |
57 MaxSpareThreads 75 | 62 MaxSpareThreads 75 |
58 ThreadsPerChild 25 | 63 ThreadsPerChild 25 |
59 MaxRequestsPerChild 0 | 64 MaxRequestsPerChild 0 |
60 </IfModule> | 65 </IfModule> |
61 | 66 |
62 # | 67 # |
63 # AccessFileName: The name of the file to look for in each directory | 68 # AccessFileName: The name of the file to look for in each directory |
64 # for additional configuration directives. See also the AllowOverride | 69 # for additional configuration directives. See also the AllowOverride |
65 # directive. | 70 # directive. |
66 # | 71 # |
67 | 72 |
68 AccessFileName .htaccess | 73 AccessFileName .htaccess |
69 | 74 |
70 # | 75 # |
71 # The following lines prevent .htaccess and .htpasswd files from being | 76 # The following lines prevent .htaccess and .htpasswd files from being |
72 # viewed by Web clients. | 77 # viewed by Web clients. |
73 # | 78 # |
74 <Files ~ "^\.ht"> | 79 <Files ~ "^\.ht"> |
75 Order allow,deny | 80 Order allow,deny |
76 Deny from all | 81 Deny from all |
77 </Files> | 82 </Files> |
78 | 83 |
79 # | 84 # |
80 # DefaultType is the default MIME type the server will use for a document | 85 # 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. | 86 # if it cannot otherwise determine one, such as from filename extensions. |
82 # If your server contains mostly text or HTML documents, "text/plain" is | 87 # If your server contains mostly text or HTML documents, "text/plain" is |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 # This directive configures what you return as the Server HTTP response | 128 # This directive configures what you return as the Server HTTP response |
124 # Header. The default is 'Full' which sends information about the OS-Type | 129 # Header. The default is 'Full' which sends information about the OS-Type |
125 # and compiled in modules. | 130 # and compiled in modules. |
126 # Set to one of: Full | OS | Minor | Minimal | Major | Prod | 131 # Set to one of: Full | OS | Minor | Minimal | Major | Prod |
127 # where Full conveys the most information, and Prod the least. | 132 # where Full conveys the most information, and Prod the least. |
128 # | 133 # |
129 ServerTokens Full | 134 ServerTokens Full |
130 | 135 |
131 # | 136 # |
132 # Optionally add a line containing the server version and virtual host | 137 # Optionally add a line containing the server version and virtual host |
133 # name to server-generated pages (internal error documents, FTP directory | 138 # name to server-generated pages (internal error documents, FTP directory |
134 # listings, mod_status and mod_info output etc., but not CGI generated | 139 # listings, mod_status and mod_info output etc., but not CGI generated |
135 # documents or custom error documents). | 140 # documents or custom error documents). |
136 # Set to "EMail" to also include a mailto: link to the ServerAdmin. | 141 # Set to "EMail" to also include a mailto: link to the ServerAdmin. |
137 # Set to one of: On | Off | EMail | 142 # Set to one of: On | Off | EMail |
138 # | 143 # |
139 ServerSignature On | 144 ServerSignature On |
OLD | NEW |