Empact-deprec 1.99.21

Sign up to get free protection for your applications and to get access to all the features.
Files changed (148) hide show
  1. data/CHANGELOG +170 -0
  2. data/COPYING +19 -0
  3. data/LICENSE +339 -0
  4. data/README +136 -0
  5. data/THANKS +5 -0
  6. data/bin/depify +133 -0
  7. data/docs/ANNOUNCE.deprec2 +47 -0
  8. data/docs/README.install +88 -0
  9. data/docs/README.nagios +28 -0
  10. data/docs/README.rails +20 -0
  11. data/docs/README.svn +31 -0
  12. data/docs/ROADMAP.txt +74 -0
  13. data/docs/deprec-1.x/deprec-1.x.quickstart +50 -0
  14. data/docs/deprec-1.x/notes.txt +12 -0
  15. data/docs/deprec_banner.gif +0 -0
  16. data/lib/deprec.rb +8 -0
  17. data/lib/deprec/capistrano_extensions.rb +378 -0
  18. data/lib/deprec/recipes.rb +40 -0
  19. data/lib/deprec/recipes/aoe.rb +117 -0
  20. data/lib/deprec/recipes/apache.rb +179 -0
  21. data/lib/deprec/recipes/ar_sendmail.rb +65 -0
  22. data/lib/deprec/recipes/canonical.rb +57 -0
  23. data/lib/deprec/recipes/deprec.rb +155 -0
  24. data/lib/deprec/recipes/deprecated.rb +71 -0
  25. data/lib/deprec/recipes/example.rb +115 -0
  26. data/lib/deprec/recipes/git.rb +168 -0
  27. data/lib/deprec/recipes/gitosis.rb +47 -0
  28. data/lib/deprec/recipes/god.rb +107 -0
  29. data/lib/deprec/recipes/heartbeat.rb +138 -0
  30. data/lib/deprec/recipes/iptables.rb +53 -0
  31. data/lib/deprec/recipes/logrotate.rb +51 -0
  32. data/lib/deprec/recipes/lvm.rb +20 -0
  33. data/lib/deprec/recipes/memcached.rb +102 -0
  34. data/lib/deprec/recipes/mongrel.rb +209 -0
  35. data/lib/deprec/recipes/monit.rb +130 -0
  36. data/lib/deprec/recipes/mysql.rb +115 -0
  37. data/lib/deprec/recipes/nagios.rb +302 -0
  38. data/lib/deprec/recipes/network.rb +84 -0
  39. data/lib/deprec/recipes/nginx.rb +154 -0
  40. data/lib/deprec/recipes/ntp.rb +96 -0
  41. data/lib/deprec/recipes/php.rb +99 -0
  42. data/lib/deprec/recipes/postfix.rb +105 -0
  43. data/lib/deprec/recipes/rails.rb +302 -0
  44. data/lib/deprec/recipes/ruby.rb +66 -0
  45. data/lib/deprec/recipes/sphinx.rb +83 -0
  46. data/lib/deprec/recipes/ssh.rb +93 -0
  47. data/lib/deprec/recipes/svn.rb +169 -0
  48. data/lib/deprec/recipes/swiftiply.rb +108 -0
  49. data/lib/deprec/recipes/thin.rb +201 -0
  50. data/lib/deprec/recipes/trac.rb +277 -0
  51. data/lib/deprec/recipes/ubuntu.rb +20 -0
  52. data/lib/deprec/recipes/users.rb +90 -0
  53. data/lib/deprec/recipes/utils.rb +39 -0
  54. data/lib/deprec/recipes/xen.rb +259 -0
  55. data/lib/deprec/templates/aoe/aoe-init +55 -0
  56. data/lib/deprec/templates/aoe/fence_aoemask +351 -0
  57. data/lib/deprec/templates/apache/httpd-vhost-app.conf.erb +144 -0
  58. data/lib/deprec/templates/apache/httpd.conf +465 -0
  59. data/lib/deprec/templates/apache/index.html.erb +37 -0
  60. data/lib/deprec/templates/apache/master.css +72 -0
  61. data/lib/deprec/templates/ar_sendmail/logrotate.conf.erb +9 -0
  62. data/lib/deprec/templates/ar_sendmail/monit.conf.erb +5 -0
  63. data/lib/deprec/templates/coraid/aoe-init +55 -0
  64. data/lib/deprec/templates/deprec/caprc.erb +14 -0
  65. data/lib/deprec/templates/god/god-init-script +71 -0
  66. data/lib/deprec/templates/god/god-notifications +0 -0
  67. data/lib/deprec/templates/god/god_mongrel.erb +81 -0
  68. data/lib/deprec/templates/god/god_mysql.erb +50 -0
  69. data/lib/deprec/templates/god/god_nginx.erb +61 -0
  70. data/lib/deprec/templates/god/god_thin.erb +80 -0
  71. data/lib/deprec/templates/heartbeat/authkeys.erb +2 -0
  72. data/lib/deprec/templates/heartbeat/ha.cf.erb +15 -0
  73. data/lib/deprec/templates/heartbeat/haresources.erb +1 -0
  74. data/lib/deprec/templates/iptables/iptables.up.erb +41 -0
  75. data/lib/deprec/templates/logrotate/logrotate.conf.erb +32 -0
  76. data/lib/deprec/templates/memcached/memcached-init-script +65 -0
  77. data/lib/deprec/templates/memcached/memcached.conf.erb +46 -0
  78. data/lib/deprec/templates/mongrel/logrotate.conf.erb +11 -0
  79. data/lib/deprec/templates/mongrel/mongrel_cluster-init-script +54 -0
  80. data/lib/deprec/templates/mongrel/mongrel_cluster.logrotate.d +14 -0
  81. data/lib/deprec/templates/mongrel/mongrel_cluster.yml.erb +10 -0
  82. data/lib/deprec/templates/mongrel/monit.conf.erb +17 -0
  83. data/lib/deprec/templates/monit/monit-init-script +104 -0
  84. data/lib/deprec/templates/monit/monitrc.erb +227 -0
  85. data/lib/deprec/templates/monit/nothing +0 -0
  86. data/lib/deprec/templates/mysql/create_databases.sql +20 -0
  87. data/lib/deprec/templates/mysql/database.yml.prod +6 -0
  88. data/lib/deprec/templates/mysql/database.yml.stage +6 -0
  89. data/lib/deprec/templates/mysql/my.cnf.erb +140 -0
  90. data/lib/deprec/templates/mysql/sphinx.conf.prod +542 -0
  91. data/lib/deprec/templates/mysql/sphinx.conf.stage +542 -0
  92. data/lib/deprec/templates/nagios/cgi.cfg.erb +321 -0
  93. data/lib/deprec/templates/nagios/commands.cfg.erb +240 -0
  94. data/lib/deprec/templates/nagios/contacts.cfg.erb +75 -0
  95. data/lib/deprec/templates/nagios/hosts.cfg.erb +70 -0
  96. data/lib/deprec/templates/nagios/htpasswd.users +1 -0
  97. data/lib/deprec/templates/nagios/localhost.cfg.erb +157 -0
  98. data/lib/deprec/templates/nagios/nagios.cfg.erb +1274 -0
  99. data/lib/deprec/templates/nagios/nagios_apache_vhost.conf.erb +45 -0
  100. data/lib/deprec/templates/nagios/nrpe.cfg.erb +208 -0
  101. data/lib/deprec/templates/nagios/nrpe.xinetd.erb +16 -0
  102. data/lib/deprec/templates/nagios/resource.cfg.erb +34 -0
  103. data/lib/deprec/templates/nagios/services.cfg.erb +7 -0
  104. data/lib/deprec/templates/nagios/templates.cfg.erb +190 -0
  105. data/lib/deprec/templates/nagios/timeperiods.cfg.erb +94 -0
  106. data/lib/deprec/templates/network/hostname.erb +1 -0
  107. data/lib/deprec/templates/network/hosts.erb +2 -0
  108. data/lib/deprec/templates/network/interfaces.erb +18 -0
  109. data/lib/deprec/templates/nginx/logrotate.conf.erb +13 -0
  110. data/lib/deprec/templates/nginx/mime.types.erb +70 -0
  111. data/lib/deprec/templates/nginx/nginx-init-script +62 -0
  112. data/lib/deprec/templates/nginx/nginx.conf.erb +53 -0
  113. data/lib/deprec/templates/nginx/nginx.logrotate.d +12 -0
  114. data/lib/deprec/templates/nginx/nothing.conf +1 -0
  115. data/lib/deprec/templates/nginx/rails_nginx_vhost.conf.erb +45 -0
  116. data/lib/deprec/templates/ntp/ntp.conf.erb +42 -0
  117. data/lib/deprec/templates/postfix/aliases.erb +3 -0
  118. data/lib/deprec/templates/postfix/dynamicmaps.cf.erb +8 -0
  119. data/lib/deprec/templates/postfix/main.cf.erb +41 -0
  120. data/lib/deprec/templates/postfix/master.cf.erb +77 -0
  121. data/lib/deprec/templates/rails/database.yml.erb +6 -0
  122. data/lib/deprec/templates/sphinx/monit.conf.erb +5 -0
  123. data/lib/deprec/templates/ssh/ssh_config.erb +50 -0
  124. data/lib/deprec/templates/ssh/sshd_config.erb +78 -0
  125. data/lib/deprec/templates/subversion/svn.apache.vhost.erb +43 -0
  126. data/lib/deprec/templates/swiftiply/swiftiply-init-script +61 -0
  127. data/lib/deprec/templates/swiftiply/swiftiply.yml.erb +11 -0
  128. data/lib/deprec/templates/thin/thin-init-script +51 -0
  129. data/lib/deprec/templates/thin/thin.yml.erb +11 -0
  130. data/lib/deprec/templates/trac/apache_vhost.conf.erb +24 -0
  131. data/lib/deprec/templates/trac/nginx_vhost.conf.erb +26 -0
  132. data/lib/deprec/templates/trac/trac.ini.erb +169 -0
  133. data/lib/deprec/templates/trac/trac_deprec.png +0 -0
  134. data/lib/deprec/templates/trac/tracd-init.erb +43 -0
  135. data/lib/deprec/templates/trac/users.htdigest.erb +0 -0
  136. data/lib/deprec/templates/xen/15-disable-hwclock +40 -0
  137. data/lib/deprec/templates/xen/network-bridge-wrapper +3 -0
  138. data/lib/deprec/templates/xen/xen-tools.conf.erb +220 -0
  139. data/lib/deprec/templates/xen/xend-config.sxp.erb +195 -0
  140. data/lib/deprec/templates/xen/xend-init.erb +69 -0
  141. data/lib/deprec/templates/xen/xendomains.erb +137 -0
  142. data/lib/deprec/templates/xen/xm.tmpl.erb +85 -0
  143. data/lib/vmbuilder_plugins/all.rb +20 -0
  144. data/lib/vmbuilder_plugins/apt.rb +93 -0
  145. data/lib/vmbuilder_plugins/emerge.rb +76 -0
  146. data/lib/vmbuilder_plugins/gem.rb +90 -0
  147. data/lib/vmbuilder_plugins/std.rb +203 -0
  148. metadata +207 -0
@@ -0,0 +1,465 @@
1
+ #
2
+ # This is the main Apache HTTP server configuration file. It contains the
3
+ # configuration directives that give the server its instructions.
4
+ # See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
5
+ # In particular, see
6
+ # <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
7
+ # for a discussion of each configuration directive.
8
+ #
9
+ # Do NOT simply read the instructions in here without understanding
10
+ # what they do. They're here only as hints or reminders. If you are unsure
11
+ # consult the online docs. You have been warned.
12
+ #
13
+ # Configuration and logfile names: If the filenames you specify for many
14
+ # of the server's control files begin with "/" (or "drive:/" for Win32), the
15
+ # server will use that explicit path. If the filenames do *not* begin
16
+ # with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
17
+ # with ServerRoot set to "/usr/local/apache2" will be interpreted by the
18
+ # server as "/usr/local/apache2/logs/foo.log".
19
+
20
+ #
21
+ # ServerRoot: The top of the directory tree under which the server's
22
+ # configuration, error, and log files are kept.
23
+ #
24
+ # Do not add a slash at the end of the directory path. If you point
25
+ # ServerRoot at a non-local disk, be sure to point the LockFile directive
26
+ # at a local disk. If you wish to share the same ServerRoot for multiple
27
+ # httpd daemons, you will need to change at least LockFile and PidFile.
28
+ #
29
+ ServerRoot "/usr/local/apache2"
30
+
31
+ #
32
+ # Listen: Allows you to bind Apache to specific IP addresses and/or
33
+ # ports, instead of the default. See also the <VirtualHost>
34
+ # directive.
35
+ #
36
+ # Change this to Listen on specific IP addresses as shown below to
37
+ # prevent Apache from glomming onto all bound IP addresses.
38
+ #
39
+ #Listen 12.34.56.78:80
40
+ Listen 80
41
+
42
+ #
43
+ # Dynamic Shared Object (DSO) Support
44
+ #
45
+ # To be able to use the functionality of a module which was built as a DSO you
46
+ # have to place corresponding `LoadModule' lines at this location so the
47
+ # directives contained in it are actually available _before_ they are used.
48
+ # Statically compiled modules (those listed by `httpd -l') do not need
49
+ # to be loaded here.
50
+ #
51
+ # Example:
52
+ # LoadModule foo_module modules/mod_foo.so
53
+ #
54
+ LoadModule authn_file_module modules/mod_authn_file.so
55
+ LoadModule authn_dbm_module modules/mod_authn_dbm.so
56
+ LoadModule authn_anon_module modules/mod_authn_anon.so
57
+ LoadModule authn_dbd_module modules/mod_authn_dbd.so
58
+ LoadModule authn_default_module modules/mod_authn_default.so
59
+ LoadModule authz_host_module modules/mod_authz_host.so
60
+ LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
61
+ LoadModule authz_user_module modules/mod_authz_user.so
62
+ LoadModule authz_dbm_module modules/mod_authz_dbm.so
63
+ LoadModule authz_owner_module modules/mod_authz_owner.so
64
+ LoadModule authz_default_module modules/mod_authz_default.so
65
+ LoadModule auth_basic_module modules/mod_auth_basic.so
66
+ LoadModule auth_digest_module modules/mod_auth_digest.so
67
+ LoadModule cache_module modules/mod_cache.so
68
+ LoadModule dbd_module modules/mod_dbd.so
69
+ LoadModule dumpio_module modules/mod_dumpio.so
70
+ LoadModule ext_filter_module modules/mod_ext_filter.so
71
+ LoadModule include_module modules/mod_include.so
72
+ LoadModule filter_module modules/mod_filter.so
73
+ LoadModule deflate_module modules/mod_deflate.so
74
+ LoadModule log_config_module modules/mod_log_config.so
75
+ LoadModule log_forensic_module modules/mod_log_forensic.so
76
+ LoadModule logio_module modules/mod_logio.so
77
+ LoadModule env_module modules/mod_env.so
78
+ LoadModule mime_magic_module modules/mod_mime_magic.so
79
+ LoadModule cern_meta_module modules/mod_cern_meta.so
80
+ LoadModule expires_module modules/mod_expires.so
81
+ LoadModule headers_module modules/mod_headers.so
82
+ LoadModule ident_module modules/mod_ident.so
83
+ LoadModule usertrack_module modules/mod_usertrack.so
84
+ LoadModule unique_id_module modules/mod_unique_id.so
85
+ LoadModule setenvif_module modules/mod_setenvif.so
86
+ LoadModule version_module modules/mod_version.so
87
+ LoadModule proxy_module modules/mod_proxy.so
88
+ LoadModule proxy_connect_module modules/mod_proxy_connect.so
89
+ LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
90
+ LoadModule proxy_http_module modules/mod_proxy_http.so
91
+ LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
92
+ LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
93
+ LoadModule ssl_module modules/mod_ssl.so
94
+ LoadModule mime_module modules/mod_mime.so
95
+ LoadModule dav_module modules/mod_dav.so
96
+ LoadModule status_module modules/mod_status.so
97
+ LoadModule autoindex_module modules/mod_autoindex.so
98
+ LoadModule asis_module modules/mod_asis.so
99
+ LoadModule info_module modules/mod_info.so
100
+ LoadModule cgi_module modules/mod_cgi.so
101
+ LoadModule dav_fs_module modules/mod_dav_fs.so
102
+ LoadModule vhost_alias_module modules/mod_vhost_alias.so
103
+ LoadModule negotiation_module modules/mod_negotiation.so
104
+ LoadModule dir_module modules/mod_dir.so
105
+ LoadModule imagemap_module modules/mod_imagemap.so
106
+ LoadModule actions_module modules/mod_actions.so
107
+ LoadModule speling_module modules/mod_speling.so
108
+ LoadModule userdir_module modules/mod_userdir.so
109
+ LoadModule alias_module modules/mod_alias.so
110
+ LoadModule rewrite_module modules/mod_rewrite.so
111
+
112
+ <IfModule !mpm_netware_module>
113
+ #
114
+ # If you wish httpd to run as a different user or group, you must run
115
+ # httpd as root initially and it will switch.
116
+ #
117
+ # User/Group: The name (or #number) of the user/group to run httpd as.
118
+ # It is usually good practice to create a dedicated user and group for
119
+ # running httpd, as with most system services.
120
+ #
121
+ User daemon
122
+ Group daemon
123
+ </IfModule>
124
+
125
+ # 'Main' server configuration
126
+ #
127
+ # The directives in this section set up the values used by the 'main'
128
+ # server, which responds to any requests that aren't handled by a
129
+ # <VirtualHost> definition. These values also provide defaults for
130
+ # any <VirtualHost> containers you may define later in the file.
131
+ #
132
+ # All of these directives may appear inside <VirtualHost> containers,
133
+ # in which case these default settings will be overridden for the
134
+ # virtual host being defined.
135
+ #
136
+
137
+ #
138
+ # ServerAdmin: Your address, where problems with the server should be
139
+ # e-mailed. This address appears on some server-generated pages, such
140
+ # as error documents. e.g. admin@your-domain.com
141
+ #
142
+ ServerAdmin you@example.com
143
+
144
+ #
145
+ # ServerName gives the name and port that the server uses to identify itself.
146
+ # This can often be determined automatically, but we recommend you specify
147
+ # it explicitly to prevent problems during startup.
148
+ #
149
+ # If your host doesn't have a registered DNS name, enter its IP address here.
150
+ #
151
+ #ServerName www.example.com:80
152
+
153
+ #
154
+ # DocumentRoot: The directory out of which you will serve your
155
+ # documents. By default, all requests are taken from this directory, but
156
+ # symbolic links and aliases may be used to point to other locations.
157
+ #
158
+ DocumentRoot "/usr/local/apache2/htdocs"
159
+
160
+ #
161
+ # Each directory to which Apache has access can be configured with respect
162
+ # to which services and features are allowed and/or disabled in that
163
+ # directory (and its subdirectories).
164
+ #
165
+ # First, we configure the "default" to be a very restrictive set of
166
+ # features.
167
+ #
168
+ <Directory />
169
+ Options FollowSymLinks
170
+ AllowOverride None
171
+ Order deny,allow
172
+ Deny from all
173
+ </Directory>
174
+
175
+ #
176
+ # Note that from this point forward you must specifically allow
177
+ # particular features to be enabled - so if something's not working as
178
+ # you might expect, make sure that you have specifically enabled it
179
+ # below.
180
+ #
181
+
182
+ #
183
+ # This should be changed to whatever you set DocumentRoot to.
184
+ #
185
+ <Directory "/usr/local/apache2/htdocs">
186
+ #
187
+ # Possible values for the Options directive are "None", "All",
188
+ # or any combination of:
189
+ # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
190
+ #
191
+ # Note that "MultiViews" must be named *explicitly* --- "Options All"
192
+ # doesn't give it to you.
193
+ #
194
+ # The Options directive is both complicated and important. Please see
195
+ # http://httpd.apache.org/docs/2.2/mod/core.html#options
196
+ # for more information.
197
+ #
198
+ Options Indexes FollowSymLinks
199
+
200
+ #
201
+ # AllowOverride controls what directives may be placed in .htaccess files.
202
+ # It can be "All", "None", or any combination of the keywords:
203
+ # Options FileInfo AuthConfig Limit
204
+ #
205
+ AllowOverride None
206
+
207
+ #
208
+ # Controls who can get stuff from this server.
209
+ #
210
+ Order allow,deny
211
+ Allow from all
212
+
213
+ </Directory>
214
+
215
+ #
216
+ # DirectoryIndex: sets the file that Apache will serve if a directory
217
+ # is requested.
218
+ #
219
+ <IfModule dir_module>
220
+ DirectoryIndex index.html
221
+ </IfModule>
222
+
223
+ #
224
+ # The following lines prevent .htaccess and .htpasswd files from being
225
+ # viewed by Web clients.
226
+ #
227
+ <FilesMatch "^\.ht">
228
+ Order allow,deny
229
+ Deny from all
230
+ Satisfy All
231
+ </FilesMatch>
232
+
233
+ #
234
+ # ErrorLog: The location of the error log file.
235
+ # If you do not specify an ErrorLog directive within a <VirtualHost>
236
+ # container, error messages relating to that virtual host will be
237
+ # logged here. If you *do* define an error logfile for a <VirtualHost>
238
+ # container, that host's errors will be logged there and not here.
239
+ #
240
+ ErrorLog logs/error_log
241
+
242
+ #
243
+ # LogLevel: Control the number of messages logged to the error_log.
244
+ # Possible values include: debug, info, notice, warn, error, crit,
245
+ # alert, emerg.
246
+ #
247
+ LogLevel warn
248
+
249
+ <IfModule log_config_module>
250
+ #
251
+ # The following directives define some format nicknames for use with
252
+ # a CustomLog directive (see below).
253
+ #
254
+ LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
255
+ LogFormat "%h %l %u %t \"%r\" %>s %b" common
256
+
257
+ <IfModule logio_module>
258
+ # You need to enable mod_logio.c to use %I and %O
259
+ LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
260
+ </IfModule>
261
+
262
+ #
263
+ # The location and format of the access logfile (Common Logfile Format).
264
+ # If you do not define any access logfiles within a <VirtualHost>
265
+ # container, they will be logged here. Contrariwise, if you *do*
266
+ # define per-<VirtualHost> access logfiles, transactions will be
267
+ # logged therein and *not* in this file.
268
+ #
269
+ CustomLog logs/access_log common
270
+
271
+ #
272
+ # If you prefer a logfile with access, agent, and referer information
273
+ # (Combined Logfile Format) you can use the following directive.
274
+ #
275
+ #CustomLog logs/access_log combined
276
+ </IfModule>
277
+
278
+ <IfModule alias_module>
279
+ #
280
+ # Redirect: Allows you to tell clients about documents that used to
281
+ # exist in your server's namespace, but do not anymore. The client
282
+ # will make a new request for the document at its new location.
283
+ # Example:
284
+ # Redirect permanent /foo http://www.example.com/bar
285
+
286
+ #
287
+ # Alias: Maps web paths into filesystem paths and is used to
288
+ # access content that does not live under the DocumentRoot.
289
+ # Example:
290
+ # Alias /webpath /full/filesystem/path
291
+ #
292
+ # If you include a trailing / on /webpath then the server will
293
+ # require it to be present in the URL. You will also likely
294
+ # need to provide a <Directory> section to allow access to
295
+ # the filesystem path.
296
+
297
+ #
298
+ # ScriptAlias: This controls which directories contain server scripts.
299
+ # ScriptAliases are essentially the same as Aliases, except that
300
+ # documents in the target directory are treated as applications and
301
+ # run by the server when requested rather than as documents sent to the
302
+ # client. The same rules about trailing "/" apply to ScriptAlias
303
+ # directives as to Alias.
304
+ #
305
+ ScriptAlias /cgi-bin/ "/usr/local/apache2/cgi-bin/"
306
+
307
+ </IfModule>
308
+
309
+ <IfModule cgid_module>
310
+ #
311
+ # ScriptSock: On threaded servers, designate the path to the UNIX
312
+ # socket used to communicate with the CGI daemon of mod_cgid.
313
+ #
314
+ #Scriptsock logs/cgisock
315
+ </IfModule>
316
+
317
+ #
318
+ # "/usr/local/apache2/cgi-bin" should be changed to whatever your ScriptAliased
319
+ # CGI directory exists, if you have that configured.
320
+ #
321
+ <Directory "/usr/local/apache2/cgi-bin">
322
+ AllowOverride None
323
+ Options None
324
+ Order allow,deny
325
+ Allow from all
326
+ </Directory>
327
+
328
+ #
329
+ # DefaultType: the default MIME type the server will use for a document
330
+ # if it cannot otherwise determine one, such as from filename extensions.
331
+ # If your server contains mostly text or HTML documents, "text/plain" is
332
+ # a good value. If most of your content is binary, such as applications
333
+ # or images, you may want to use "application/octet-stream" instead to
334
+ # keep browsers from trying to display binary files as though they are
335
+ # text.
336
+ #
337
+ DefaultType text/plain
338
+
339
+ <IfModule mime_module>
340
+ #
341
+ # TypesConfig points to the file containing the list of mappings from
342
+ # filename extension to MIME-type.
343
+ #
344
+ TypesConfig conf/mime.types
345
+
346
+ #
347
+ # AddType allows you to add to or override the MIME configuration
348
+ # file specified in TypesConfig for specific file types.
349
+ #
350
+ #AddType application/x-gzip .tgz
351
+ #
352
+ # AddEncoding allows you to have certain browsers uncompress
353
+ # information on the fly. Note: Not all browsers support this.
354
+ #
355
+ #AddEncoding x-compress .Z
356
+ #AddEncoding x-gzip .gz .tgz
357
+ #
358
+ # If the AddEncoding directives above are commented-out, then you
359
+ # probably should define those extensions to indicate media types:
360
+ #
361
+ AddType application/x-compress .Z
362
+ AddType application/x-gzip .gz .tgz
363
+
364
+ #
365
+ # AddHandler allows you to map certain file extensions to "handlers":
366
+ # actions unrelated to filetype. These can be either built into the server
367
+ # or added with the Action directive (see below)
368
+ #
369
+ # To use CGI scripts outside of ScriptAliased directories:
370
+ # (You will also need to add "ExecCGI" to the "Options" directive.)
371
+ #
372
+ #AddHandler cgi-script .cgi
373
+
374
+ # For type maps (negotiated resources):
375
+ #AddHandler type-map var
376
+
377
+ #
378
+ # Filters allow you to process content before it is sent to the client.
379
+ #
380
+ # To parse .shtml files for server-side includes (SSI):
381
+ # (You will also need to add "Includes" to the "Options" directive.)
382
+ #
383
+ #AddType text/html .shtml
384
+ #AddOutputFilter INCLUDES .shtml
385
+ </IfModule>
386
+
387
+ #
388
+ # The mod_mime_magic module allows the server to use various hints from the
389
+ # contents of the file itself to determine its type. The MIMEMagicFile
390
+ # directive tells the module where the hint definitions are located.
391
+ #
392
+ #MIMEMagicFile conf/magic
393
+
394
+ #
395
+ # Customizable error responses come in three flavors:
396
+ # 1) plain text 2) local redirects 3) external redirects
397
+ #
398
+ # Some examples:
399
+ #ErrorDocument 500 "The server made a boo boo."
400
+ #ErrorDocument 404 /missing.html
401
+ #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
402
+ #ErrorDocument 402 http://www.example.com/subscription_info.html
403
+ #
404
+
405
+ #
406
+ # EnableMMAP and EnableSendfile: On systems that support it,
407
+ # memory-mapping or the sendfile syscall is used to deliver
408
+ # files. This usually improves server performance, but must
409
+ # be turned off when serving from networked-mounted
410
+ # filesystems or if support for these functions is otherwise
411
+ # broken on your system.
412
+ #
413
+ #EnableMMAP off
414
+ #EnableSendfile off
415
+
416
+ # Supplemental configuration
417
+ #
418
+ # The configuration files in the conf/extra/ directory can be
419
+ # included to add extra features or to modify the default configuration of
420
+ # the server, or you may simply copy their contents here and change as
421
+ # necessary.
422
+
423
+ # Server-pool management (MPM specific)
424
+ #Include conf/extra/httpd-mpm.conf
425
+
426
+ # Multi-language error messages
427
+ #Include conf/extra/httpd-multilang-errordoc.conf
428
+
429
+ # Fancy directory listings
430
+ #Include conf/extra/httpd-autoindex.conf
431
+
432
+ # Language settings
433
+ #Include conf/extra/httpd-languages.conf
434
+
435
+ # User home directories
436
+ #Include conf/extra/httpd-userdir.conf
437
+
438
+ # Real-time info on requests and configuration
439
+ #Include conf/extra/httpd-info.conf
440
+
441
+ # Virtual hosts
442
+ #Include conf/extra/httpd-vhosts.conf
443
+
444
+ # Local access to the Apache HTTP Server Manual
445
+ #Include conf/extra/httpd-manual.conf
446
+
447
+ # Distributed authoring and versioning (WebDAV)
448
+ #Include conf/extra/httpd-dav.conf
449
+
450
+ # Various default settings
451
+ #Include conf/extra/httpd-default.conf
452
+
453
+ # Secure (SSL/TLS) connections
454
+ #Include conf/extra/httpd-ssl.conf
455
+ #
456
+ # Note: The following must must be present to support
457
+ # starting without SSL on platforms with no /dev/random equivalent
458
+ # but a statically compiled-in mod_ssl.
459
+ #
460
+ <IfModule ssl_module>
461
+ SSLRandomSeed startup builtin
462
+ SSLRandomSeed connect builtin
463
+ </IfModule>
464
+ Include conf/apps/
465
+ NameVirtualHost *:80