provizioning 0.1.2 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (223) hide show
  1. data/.gitignore +17 -0
  2. data/Gemfile +4 -0
  3. data/README.md +29 -0
  4. data/Rakefile +2 -0
  5. data/bootstrap/bootstrap.sh +71 -0
  6. data/{lib/templates/sources.list → bootstrap/lucid.sources.list} +2 -1
  7. data/bootstrap/natty.sources.list +14 -0
  8. data/lib/provizioning/puppet.rb +94 -0
  9. data/lib/provizioning/version.rb +3 -0
  10. data/lib/provizioning.rb +1 -3
  11. data/provizioning.gemspec +20 -0
  12. data/puppet/classes/apache/centos.conf +978 -0
  13. data/puppet/classes/apache/ssl.conf +75 -0
  14. data/puppet/classes/apache.pp +152 -0
  15. data/puppet/classes/apt.pp +5 -0
  16. data/puppet/classes/base/ntp/ntpd-sysconfig +13 -0
  17. data/puppet/classes/base.pp +79 -0
  18. data/puppet/classes/freerange.pp +53 -0
  19. data/puppet/classes/gemrc/gemrc +9 -0
  20. data/puppet/classes/gemrc.pp +10 -0
  21. data/puppet/classes/imagemagick.pp +19 -0
  22. data/puppet/classes/iptables/load-iptables +3 -0
  23. data/puppet/classes/iptables/post-iptables +2 -0
  24. data/puppet/classes/iptables/pre-iptables +2 -0
  25. data/puppet/classes/iptables.pp +59 -0
  26. data/puppet/classes/logrotate/logrotate.erb +15 -0
  27. data/puppet/classes/logrotate.pp +37 -0
  28. data/puppet/classes/mongo/mongodb.conf +89 -0
  29. data/puppet/classes/mongo.pp +86 -0
  30. data/puppet/classes/monit/monit.conf +242 -0
  31. data/puppet/classes/monit.pp +39 -0
  32. data/puppet/classes/munin/plugins/passenger_memory_stats +123 -0
  33. data/puppet/classes/munin/plugins/passenger_status +130 -0
  34. data/puppet/classes/munin/plugins/rails_database_time +174 -0
  35. data/puppet/classes/munin/plugins/rails_request_duration +173 -0
  36. data/puppet/classes/munin/plugins/rails_request_error +169 -0
  37. data/puppet/classes/munin/plugins/rails_requests +175 -0
  38. data/puppet/classes/munin/plugins/rails_view_render_time +173 -0
  39. data/puppet/classes/munin/rails-plugin-config +4 -0
  40. data/puppet/classes/munin.pp +60 -0
  41. data/puppet/classes/mysql/password.erb +1 -0
  42. data/puppet/classes/mysql.pp +71 -0
  43. data/puppet/classes/openswan/ipsec.conf +17 -0
  44. data/puppet/classes/openswan/ipsec.secrets +1 -0
  45. data/puppet/classes/openswan/patched_ipsec_initd_script +223 -0
  46. data/puppet/classes/openswan/secret.erb +1 -0
  47. data/puppet/classes/openswan.pp +71 -0
  48. data/puppet/classes/post-flight.pp +17 -0
  49. data/puppet/classes/postfix/main.cf +39 -0
  50. data/puppet/classes/postfix.pp +16 -0
  51. data/puppet/classes/rack/centos/passenger.load.erb +5 -0
  52. data/puppet/classes/rack/ubuntu/passenger.conf.erb +6 -0
  53. data/puppet/classes/rack.pp +66 -0
  54. data/puppet/classes/redis/redis.conf.erb +187 -0
  55. data/puppet/classes/redis.pp +20 -0
  56. data/puppet/classes/sudo/sudoers +6 -0
  57. data/puppet/classes/sudo.pp +24 -0
  58. data/puppet/classes/syslogng/CentOS.cnf +61 -0
  59. data/puppet/classes/syslogng/Ubuntu.cnf +347 -0
  60. data/puppet/classes/syslogng.pp +146 -0
  61. data/puppet/classes/xml.pp +23 -0
  62. data/puppet/classes/yum.pp +6 -0
  63. data/puppet/classes/zsh.pp +5 -0
  64. data/puppet/modules/README +74 -0
  65. data/puppet/modules/cron/README +4 -0
  66. data/puppet/modules/cron/manifests/base.pp +26 -0
  67. data/puppet/modules/cron/manifests/crontabs.pp +11 -0
  68. data/puppet/modules/cron/manifests/init.pp +18 -0
  69. data/puppet/modules/drupal/Modulefile +7 -0
  70. data/puppet/modules/drupal/README +110 -0
  71. data/puppet/modules/drupal/manifests/absent.pp +25 -0
  72. data/puppet/modules/drupal/manifests/backup/absent.pp +23 -0
  73. data/puppet/modules/drupal/manifests/backup.pp +49 -0
  74. data/puppet/modules/drupal/manifests/conf.pp +23 -0
  75. data/puppet/modules/drupal/manifests/debug.pp +26 -0
  76. data/puppet/modules/drupal/manifests/disable.pp +22 -0
  77. data/puppet/modules/drupal/manifests/disableboot.pp +13 -0
  78. data/puppet/modules/drupal/manifests/drush.pp +20 -0
  79. data/puppet/modules/drupal/manifests/example42/backup.pp +8 -0
  80. data/puppet/modules/drupal/manifests/example42/monitor.pp +8 -0
  81. data/puppet/modules/drupal/manifests/example42.pp +25 -0
  82. data/puppet/modules/drupal/manifests/extra.pp +30 -0
  83. data/puppet/modules/drupal/manifests/firewall/absent.pp +19 -0
  84. data/puppet/modules/drupal/manifests/firewall.pp +24 -0
  85. data/puppet/modules/drupal/manifests/init.pp +54 -0
  86. data/puppet/modules/drupal/manifests/install.pp +20 -0
  87. data/puppet/modules/drupal/manifests/module.pp +37 -0
  88. data/puppet/modules/drupal/manifests/monitor/absent.pp +42 -0
  89. data/puppet/modules/drupal/manifests/monitor.pp +77 -0
  90. data/puppet/modules/drupal/manifests/package.pp +20 -0
  91. data/puppet/modules/drupal/manifests/params.pp +277 -0
  92. data/puppet/modules/drupal/manifests/site.pp +63 -0
  93. data/puppet/modules/drupal/manifests/theme.pp +33 -0
  94. data/puppet/modules/drupal/templates/variables_drupal.erb +62 -0
  95. data/puppet/modules/drupal/tests/absent.pp +1 -0
  96. data/puppet/modules/drupal/tests/backup.pp +1 -0
  97. data/puppet/modules/drupal/tests/debug.pp +1 -0
  98. data/puppet/modules/drupal/tests/disable.pp +1 -0
  99. data/puppet/modules/drupal/tests/disableboot.pp +1 -0
  100. data/puppet/modules/drupal/tests/firewall.pp +1 -0
  101. data/puppet/modules/drupal/tests/init.pp +1 -0
  102. data/puppet/modules/drupal/tests/monitor.pp +1 -0
  103. data/puppet/modules/hosts/README +0 -0
  104. data/puppet/modules/hosts/manifests/example42.pp +5 -0
  105. data/puppet/modules/hosts/manifests/init.pp +16 -0
  106. data/puppet/modules/hosts/templates/hosts.erb +11 -0
  107. data/puppet/modules/iptables/README +4 -0
  108. data/puppet/modules/iptables/files/iptables +19 -0
  109. data/puppet/modules/iptables/manifests/disable.pp +15 -0
  110. data/puppet/modules/iptables/manifests/init.pp +9 -0
  111. data/puppet/modules/iptables/manifests/redhat.pp +24 -0
  112. data/puppet/modules/mysql/Modulefile +7 -0
  113. data/puppet/modules/mysql/README +56 -0
  114. data/puppet/modules/mysql/manifests/absent.pp +12 -0
  115. data/puppet/modules/mysql/manifests/backup/example42.pp +8 -0
  116. data/puppet/modules/mysql/manifests/backup.pp +49 -0
  117. data/puppet/modules/mysql/manifests/client.pp +18 -0
  118. data/puppet/modules/mysql/manifests/conf.pp +23 -0
  119. data/puppet/modules/mysql/manifests/debug.pp +25 -0
  120. data/puppet/modules/mysql/manifests/disable.pp +13 -0
  121. data/puppet/modules/mysql/manifests/disableboot.pp +13 -0
  122. data/puppet/modules/mysql/manifests/example42.pp +25 -0
  123. data/puppet/modules/mysql/manifests/firewall.pp +23 -0
  124. data/puppet/modules/mysql/manifests/grant.pp +29 -0
  125. data/puppet/modules/mysql/manifests/init.pp +67 -0
  126. data/puppet/modules/mysql/manifests/monitor/example42.pp +8 -0
  127. data/puppet/modules/mysql/manifests/monitor.pp +77 -0
  128. data/puppet/modules/mysql/manifests/params.pp +240 -0
  129. data/puppet/modules/mysql/manifests/query.pp +30 -0
  130. data/puppet/modules/mysql/templates/grant.erb +6 -0
  131. data/puppet/modules/mysql/templates/query.erb +5 -0
  132. data/puppet/modules/mysql/templates/variables_mysql.erb +42 -0
  133. data/puppet/modules/network/README +4 -0
  134. data/puppet/modules/network/manifests/init.pp +13 -0
  135. data/puppet/modules/nginx/manifests/fcgi.pp +87 -0
  136. data/puppet/modules/nginx/manifests/init.pp +205 -0
  137. data/puppet/modules/nginx/templates/fcgi_site.erb +38 -0
  138. data/puppet/modules/nginx/templates/includes/fastcgi_params.erb +23 -0
  139. data/puppet/modules/nginx/templates/nginx.conf.erb +31 -0
  140. data/puppet/modules/passenger/manifests/init.pp +12 -0
  141. data/puppet/modules/passenger/templates/myapp +39 -0
  142. data/puppet/modules/php/README +26 -0
  143. data/puppet/modules/php/manifests/init.pp +42 -0
  144. data/puppet/modules/php/manifests/module.pp +22 -0
  145. data/puppet/modules/php/manifests/pear/module.pp +21 -0
  146. data/puppet/modules/php/manifests/pear.pp +20 -0
  147. data/puppet/modules/php/manifests/pecl/config.pp +19 -0
  148. data/puppet/modules/php/manifests/pecl/module.pp +44 -0
  149. data/puppet/modules/php/manifests/pecl.pp +8 -0
  150. data/puppet/modules/php/manifests/soap.pp +20 -0
  151. data/puppet/modules/postgres/Copyright +13 -0
  152. data/puppet/modules/postgres/manifests/database.pp +40 -0
  153. data/puppet/modules/postgres/manifests/init.pp +25 -0
  154. data/puppet/modules/postgres/manifests/role.pp +40 -0
  155. data/puppet/modules/ruby/files/install-ruby-stow +43 -0
  156. data/puppet/modules/ruby/manifests/init.pp +18 -0
  157. data/puppet/modules/rvm/files/install-system-rvm +2 -0
  158. data/puppet/modules/rvm/manifests/classes/dependencies.pp +24 -0
  159. data/puppet/modules/rvm/manifests/classes/passenger.pp +166 -0
  160. data/puppet/modules/rvm/manifests/classes/system.pp +33 -0
  161. data/puppet/modules/rvm/manifests/definitions/system_user.pp +13 -0
  162. data/puppet/modules/rvm/manifests/init.pp +2 -0
  163. data/puppet/modules/rvm/templates/passenger-apache.conf.erb +9 -0
  164. data/puppet/modules/ssh/README +4 -0
  165. data/puppet/modules/ssh/manifests/auth.pp +39 -0
  166. data/puppet/modules/ssh/manifests/auth.pp.good +340 -0
  167. data/puppet/modules/ssh/manifests/eal4.pp +69 -0
  168. data/puppet/modules/ssh/manifests/init.pp +74 -0
  169. data/puppet/modules/stow/manifests/init.pp +5 -0
  170. data/puppet/modules/sudo/files/sudoers +25 -0
  171. data/puppet/modules/sudo/manifests/init.pp +1 -0
  172. data/puppet/modules/sudo/manifests/install.pp +5 -0
  173. data/puppet/modules/sudo/manifests/sudoers.pp +14 -0
  174. data/puppet/modules/ufw/manifests/init.pp +12 -0
  175. data/puppet/modules/users/README +28 -0
  176. data/puppet/modules/users/manifests/adduser.pp +16 -0
  177. data/puppet/modules/users/manifests/admin.pp +11 -0
  178. data/puppet/modules/users/manifests/automount.pp +34 -0
  179. data/puppet/modules/users/manifests/deluser.pp +8 -0
  180. data/puppet/modules/users/manifests/example42.pp +16 -0
  181. data/puppet/modules/users/manifests/init.pp +31 -0
  182. data/puppet/modules/users/manifests/ldap.pp +114 -0
  183. data/puppet/modules/users/manifests/params.pp +84 -0
  184. data/puppet/modules/users/templates/ldap/ldap.conf.erb +13 -0
  185. data/puppet/modules/users/templates/ldap/nsswitch.conf.erb +23 -0
  186. data/puppet/modules/users/templates/ldap/openldap-ldap.conf.erb +8 -0
  187. data/puppet/modules/webmin/manifests/init.pp +31 -0
  188. data/puppet/roles/blank.pp +1 -0
  189. data/puppet/site.pp +8 -0
  190. metadata +235 -81
  191. data/README +0 -3
  192. data/bin/provizion +0 -52
  193. data/lib/policies/chef-client.rb +0 -37
  194. data/lib/policies/lamp.rb +0 -42
  195. data/lib/policies/passenger.rb +0 -44
  196. data/lib/recipes/apache.rb +0 -70
  197. data/lib/recipes/apache_conf.rb +0 -3
  198. data/lib/recipes/bundler.rb +0 -4
  199. data/lib/recipes/chef_client.rb +0 -11
  200. data/lib/recipes/curl.rb +0 -8
  201. data/lib/recipes/essential.rb +0 -4
  202. data/lib/recipes/git.rb +0 -15
  203. data/lib/recipes/imagemagick.rb +0 -8
  204. data/lib/recipes/mailserver.rb +0 -9
  205. data/lib/recipes/memcached.rb +0 -16
  206. data/lib/recipes/mysql.rb +0 -21
  207. data/lib/recipes/nginx/init.d +0 -63
  208. data/lib/recipes/nginx.rb +0 -25
  209. data/lib/recipes/passenger.rb +0 -67
  210. data/lib/recipes/php.rb +0 -8
  211. data/lib/recipes/postgresql.rb +0 -21
  212. data/lib/recipes/ruby_enterprise.rb +0 -24
  213. data/lib/recipes/rvm.rb +0 -25
  214. data/lib/recipes/sources.rb +0 -5
  215. data/lib/recipes/subversion.rb +0 -8
  216. data/lib/recipes/syslog.rb +0 -7
  217. data/lib/recipes/ufw.rb +0 -12
  218. data/lib/recipes/vim.rb +0 -8
  219. data/lib/recipes/webmin.rb +0 -17
  220. data/lib/templates/apache.conf.erb +0 -12
  221. data/lib/templates/my.cnf +0 -132
  222. data/lib/templates/passenger.conf +0 -11
  223. data/lib/templates/passenger.load +0 -1
@@ -0,0 +1,978 @@
1
+ #
2
+ # This is the main Apache 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
+ #
10
+ # Do NOT simply read the instructions in here without understanding
11
+ # what they do. They're here only as hints or reminders. If you are unsure
12
+ # consult the online docs. You have been warned.
13
+ #
14
+ # The configuration directives are grouped into three basic sections:
15
+ # 1. Directives that control the operation of the Apache server process as a
16
+ # whole (the 'global environment').
17
+ # 2. Directives that define the parameters of the 'main' or 'default' server,
18
+ # which responds to requests that aren't handled by a virtual host.
19
+ # These directives also provide default values for the settings
20
+ # of all virtual hosts.
21
+ # 3. Settings for virtual hosts, which allow Web requests to be sent to
22
+ # different IP addresses or hostnames and have them handled by the
23
+ # same Apache server process.
24
+ #
25
+ # Configuration and logfile names: If the filenames you specify for many
26
+ # of the server's control files begin with "/" (or "drive:/" for Win32), the
27
+ # server will use that explicit path. If the filenames do *not* begin
28
+ # with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
29
+ # with ServerRoot set to "/etc/httpd" will be interpreted by the
30
+ # server as "/etc/httpd/logs/foo.log".
31
+ #
32
+
33
+ ### Section 1: Global Environment
34
+ #
35
+ # The directives in this section affect the overall operation of Apache,
36
+ # such as the number of concurrent requests it can handle or where it
37
+ # can find its configuration files.
38
+ #
39
+
40
+ #
41
+ # Don't give away too much information about all the subcomponents
42
+ # we are running. Comment out this line if you don't mind remote sites
43
+ # finding out what major optional modules you are running
44
+ ServerTokens OS
45
+
46
+ #
47
+ # ServerRoot: The top of the directory tree under which the server's
48
+ # configuration, error, and log files are kept.
49
+ #
50
+ # NOTE! If you intend to place this on an NFS (or otherwise network)
51
+ # mounted filesystem then please read the LockFile documentation
52
+ # (available at <URL:http://httpd.apache.org/docs/2.2/mod/mpm_common.html#lockfile>);
53
+ # you will save yourself a lot of trouble.
54
+ #
55
+ # Do NOT add a slash at the end of the directory path.
56
+ #
57
+ ServerRoot "/etc/httpd"
58
+
59
+ #
60
+ # PidFile: The file in which the server should record its process
61
+ # identification number when it starts.
62
+ #
63
+ PidFile run/httpd.pid
64
+
65
+ #
66
+ # Timeout: The number of seconds before receives and sends time out.
67
+ #
68
+ Timeout 120
69
+
70
+ #
71
+ # KeepAlive: Whether or not to allow persistent connections (more than
72
+ # one request per connection). Set to "Off" to deactivate.
73
+ #
74
+ KeepAlive Off
75
+
76
+ #
77
+ # MaxKeepAliveRequests: The maximum number of requests to allow
78
+ # during a persistent connection. Set to 0 to allow an unlimited amount.
79
+ # We recommend you leave this number high, for maximum performance.
80
+ #
81
+ MaxKeepAliveRequests 100
82
+
83
+ #
84
+ # KeepAliveTimeout: Number of seconds to wait for the next request from the
85
+ # same client on the same connection.
86
+ #
87
+ KeepAliveTimeout 15
88
+
89
+ ##
90
+ ## Server-Pool Size Regulation (MPM specific)
91
+ ##
92
+
93
+ # prefork MPM
94
+ # StartServers: number of server processes to start
95
+ # MinSpareServers: minimum number of server processes which are kept spare
96
+ # MaxSpareServers: maximum number of server processes which are kept spare
97
+ # ServerLimit: maximum value for MaxClients for the lifetime of the server
98
+ # MaxClients: maximum number of server processes allowed to start
99
+ # MaxRequestsPerChild: maximum number of requests a server process serves
100
+ <IfModule prefork.c>
101
+ StartServers 8
102
+ MinSpareServers 5
103
+ MaxSpareServers 20
104
+ ServerLimit 256
105
+ MaxClients 256
106
+ MaxRequestsPerChild 4000
107
+ </IfModule>
108
+
109
+ # worker MPM
110
+ # StartServers: initial number of server processes to start
111
+ # MaxClients: maximum number of simultaneous client connections
112
+ # MinSpareThreads: minimum number of worker threads which are kept spare
113
+ # MaxSpareThreads: maximum number of worker threads which are kept spare
114
+ # ThreadsPerChild: constant number of worker threads in each server process
115
+ # MaxRequestsPerChild: maximum number of requests a server process serves
116
+ <IfModule worker.c>
117
+ StartServers 2
118
+ MaxClients 150
119
+ MinSpareThreads 25
120
+ MaxSpareThreads 75
121
+ ThreadsPerChild 25
122
+ MaxRequestsPerChild 0
123
+ </IfModule>
124
+
125
+ #
126
+ # Listen: Allows you to bind Apache to specific IP addresses and/or
127
+ # ports, in addition to the default. See also the <VirtualHost>
128
+ # directive.
129
+ #
130
+ # Change this to Listen on specific IP addresses as shown below to
131
+ # prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
132
+ #
133
+ #Listen 12.34.56.78:80
134
+ Listen 80
135
+
136
+ #
137
+ # Dynamic Shared Object (DSO) Support
138
+ #
139
+ # To be able to use the functionality of a module which was built as a DSO you
140
+ # have to place corresponding `LoadModule' lines at this location so the
141
+ # directives contained in it are actually available _before_ they are used.
142
+ # Statically compiled modules (those listed by `httpd -l') do not need
143
+ # to be loaded here.
144
+ #
145
+ # Example:
146
+ # LoadModule foo_module modules/mod_foo.so
147
+ #
148
+ LoadModule auth_basic_module modules/mod_auth_basic.so
149
+ LoadModule auth_digest_module modules/mod_auth_digest.so
150
+ LoadModule authn_file_module modules/mod_authn_file.so
151
+ LoadModule authn_alias_module modules/mod_authn_alias.so
152
+ LoadModule authn_anon_module modules/mod_authn_anon.so
153
+ LoadModule authn_dbm_module modules/mod_authn_dbm.so
154
+ LoadModule authn_default_module modules/mod_authn_default.so
155
+ LoadModule authz_host_module modules/mod_authz_host.so
156
+ LoadModule authz_user_module modules/mod_authz_user.so
157
+ LoadModule authz_owner_module modules/mod_authz_owner.so
158
+ LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
159
+ LoadModule authz_dbm_module modules/mod_authz_dbm.so
160
+ LoadModule authz_default_module modules/mod_authz_default.so
161
+ LoadModule ldap_module modules/mod_ldap.so
162
+ LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
163
+ LoadModule include_module modules/mod_include.so
164
+ LoadModule log_config_module modules/mod_log_config.so
165
+ LoadModule logio_module modules/mod_logio.so
166
+ LoadModule env_module modules/mod_env.so
167
+ LoadModule ext_filter_module modules/mod_ext_filter.so
168
+ LoadModule mime_magic_module modules/mod_mime_magic.so
169
+ LoadModule expires_module modules/mod_expires.so
170
+ LoadModule deflate_module modules/mod_deflate.so
171
+ LoadModule headers_module modules/mod_headers.so
172
+ LoadModule usertrack_module modules/mod_usertrack.so
173
+ LoadModule setenvif_module modules/mod_setenvif.so
174
+ LoadModule mime_module modules/mod_mime.so
175
+ LoadModule dav_module modules/mod_dav.so
176
+ LoadModule status_module modules/mod_status.so
177
+ LoadModule autoindex_module modules/mod_autoindex.so
178
+ LoadModule info_module modules/mod_info.so
179
+ LoadModule dav_fs_module modules/mod_dav_fs.so
180
+ LoadModule vhost_alias_module modules/mod_vhost_alias.so
181
+ LoadModule negotiation_module modules/mod_negotiation.so
182
+ LoadModule dir_module modules/mod_dir.so
183
+ LoadModule actions_module modules/mod_actions.so
184
+ LoadModule speling_module modules/mod_speling.so
185
+ LoadModule userdir_module modules/mod_userdir.so
186
+ LoadModule alias_module modules/mod_alias.so
187
+ LoadModule rewrite_module modules/mod_rewrite.so
188
+ LoadModule proxy_module modules/mod_proxy.so
189
+ LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
190
+ LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
191
+ LoadModule proxy_http_module modules/mod_proxy_http.so
192
+ LoadModule proxy_connect_module modules/mod_proxy_connect.so
193
+ LoadModule cache_module modules/mod_cache.so
194
+ LoadModule suexec_module modules/mod_suexec.so
195
+ LoadModule disk_cache_module modules/mod_disk_cache.so
196
+ LoadModule file_cache_module modules/mod_file_cache.so
197
+ LoadModule mem_cache_module modules/mod_mem_cache.so
198
+ LoadModule cgi_module modules/mod_cgi.so
199
+ LoadModule version_module modules/mod_version.so
200
+
201
+ #
202
+ # The following modules are not loaded by default:
203
+ #
204
+ #LoadModule cern_meta_module modules/mod_cern_meta.so
205
+ #LoadModule asis_module modules/mod_asis.so
206
+
207
+ # Load modules defined in ubuntu style folders
208
+
209
+ #
210
+ # Load config files from the config directory "/etc/httpd/conf.d".
211
+ #
212
+ Include conf.d/*.conf
213
+
214
+ #
215
+ # ExtendedStatus controls whether Apache will generate "full" status
216
+ # information (ExtendedStatus On) or just basic information (ExtendedStatus
217
+ # Off) when the "server-status" handler is called. The default is Off.
218
+ #
219
+ #ExtendedStatus On
220
+
221
+ #
222
+ # If you wish httpd to run as a different user or group, you must run
223
+ # httpd as root initially and it will switch.
224
+ #
225
+ # User/Group: The name (or #number) of the user/group to run httpd as.
226
+ # . On SCO (ODT 3) use "User nouser" and "Group nogroup".
227
+ # . On HPUX you may not be able to use shared memory as nobody, and the
228
+ # suggested workaround is to create a user www and use that user.
229
+ # NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
230
+ # when the value of (unsigned)Group is above 60000;
231
+ # don't use Group #-1 on these systems!
232
+ #
233
+ User apache
234
+ Group apache
235
+
236
+ ### Section 2: 'Main' server configuration
237
+ #
238
+ # The directives in this section set up the values used by the 'main'
239
+ # server, which responds to any requests that aren't handled by a
240
+ # <VirtualHost> definition. These values also provide defaults for
241
+ # any <VirtualHost> containers you may define later in the file.
242
+ #
243
+ # All of these directives may appear inside <VirtualHost> containers,
244
+ # in which case these default settings will be overridden for the
245
+ # virtual host being defined.
246
+ #
247
+
248
+ #
249
+ # ServerAdmin: Your address, where problems with the server should be
250
+ # e-mailed. This address appears on some server-generated pages, such
251
+ # as error documents. e.g. admin@your-domain.com
252
+ #
253
+ ServerAdmin root@localhost
254
+
255
+ #
256
+ # ServerName gives the name and port that the server uses to identify itself.
257
+ # This can often be determined automatically, but we recommend you specify
258
+ # it explicitly to prevent problems during startup.
259
+ #
260
+ # If this is not set to valid DNS name for your host, server-generated
261
+ # redirections will not work. See also the UseCanonicalName directive.
262
+ #
263
+ # If your host doesn't have a registered DNS name, enter its IP address here.
264
+ # You will have to access it by its address anyway, and this will make
265
+ # redirections work in a sensible way.
266
+ #
267
+ #ServerName www.example.com:80
268
+
269
+ #
270
+ # UseCanonicalName: Determines how Apache constructs self-referencing
271
+ # URLs and the SERVER_NAME and SERVER_PORT variables.
272
+ # When set "Off", Apache will use the Hostname and Port supplied
273
+ # by the client. When set "On", Apache will use the value of the
274
+ # ServerName directive.
275
+ #
276
+ UseCanonicalName Off
277
+
278
+ #
279
+ # DocumentRoot: The directory out of which you will serve your
280
+ # documents. By default, all requests are taken from this directory, but
281
+ # symbolic links and aliases may be used to point to other locations.
282
+ #
283
+ DocumentRoot "/var/www/html"
284
+
285
+ #
286
+ # Each directory to which Apache has access can be configured with respect
287
+ # to which services and features are allowed and/or disabled in that
288
+ # directory (and its subdirectories).
289
+ #
290
+ # First, we configure the "default" to be a very restrictive set of
291
+ # features.
292
+ #
293
+ <Directory />
294
+ Options FollowSymLinks
295
+ AllowOverride None
296
+ </Directory>
297
+
298
+ #
299
+ # Note that from this point forward you must specifically allow
300
+ # particular features to be enabled - so if something's not working as
301
+ # you might expect, make sure that you have specifically enabled it
302
+ # below.
303
+ #
304
+
305
+ #
306
+ # This should be changed to whatever you set DocumentRoot to.
307
+ #
308
+ <Directory "/var/www/html">
309
+
310
+ #
311
+ # Possible values for the Options directive are "None", "All",
312
+ # or any combination of:
313
+ # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
314
+ #
315
+ # Note that "MultiViews" must be named *explicitly* --- "Options All"
316
+ # doesn't give it to you.
317
+ #
318
+ # The Options directive is both complicated and important. Please see
319
+ # http://httpd.apache.org/docs/2.2/mod/core.html#options
320
+ # for more information.
321
+ #
322
+ Options Indexes FollowSymLinks
323
+
324
+ #
325
+ # AllowOverride controls what directives may be placed in .htaccess files.
326
+ # It can be "All", "None", or any combination of the keywords:
327
+ # Options FileInfo AuthConfig Limit
328
+ #
329
+ AllowOverride None
330
+
331
+ #
332
+ # Controls who can get stuff from this server.
333
+ #
334
+ Order allow,deny
335
+ Allow from all
336
+
337
+ </Directory>
338
+
339
+ #
340
+ # UserDir: The name of the directory that is appended onto a user's home
341
+ # directory if a ~user request is received.
342
+ #
343
+ # The path to the end user account 'public_html' directory must be
344
+ # accessible to the webserver userid. This usually means that ~userid
345
+ # must have permissions of 711, ~userid/public_html must have permissions
346
+ # of 755, and documents contained therein must be world-readable.
347
+ # Otherwise, the client will only receive a "403 Forbidden" message.
348
+ #
349
+ # See also: http://httpd.apache.org/docs/misc/FAQ.html#forbidden
350
+ #
351
+ <IfModule mod_userdir.c>
352
+ #
353
+ # UserDir is disabled by default since it can confirm the presence
354
+ # of a username on the system (depending on home directory
355
+ # permissions).
356
+ #
357
+ UserDir disable
358
+
359
+ #
360
+ # To enable requests to /~user/ to serve the user's public_html
361
+ # directory, remove the "UserDir disable" line above, and uncomment
362
+ # the following line instead:
363
+ #
364
+ #UserDir public_html
365
+
366
+ </IfModule>
367
+
368
+ #
369
+ # Control access to UserDir directories. The following is an example
370
+ # for a site where these directories are restricted to read-only.
371
+ #
372
+ #<Directory /home/*/public_html>
373
+ # AllowOverride FileInfo AuthConfig Limit
374
+ # Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
375
+ # <Limit GET POST OPTIONS>
376
+ # Order allow,deny
377
+ # Allow from all
378
+ # </Limit>
379
+ # <LimitExcept GET POST OPTIONS>
380
+ # Order deny,allow
381
+ # Deny from all
382
+ # </LimitExcept>
383
+ #</Directory>
384
+
385
+ #
386
+ # DirectoryIndex: sets the file that Apache will serve if a directory
387
+ # is requested.
388
+ #
389
+ # The index.html.var file (a type-map) is used to deliver content-
390
+ # negotiated documents. The MultiViews Option can be used for the
391
+ # same purpose, but it is much slower.
392
+ #
393
+ DirectoryIndex index.html index.html.var
394
+
395
+ #
396
+ # AccessFileName: The name of the file to look for in each directory
397
+ # for additional configuration directives. See also the AllowOverride
398
+ # directive.
399
+ #
400
+ AccessFileName .htaccess
401
+
402
+ #
403
+ # The following lines prevent .htaccess and .htpasswd files from being
404
+ # viewed by Web clients.
405
+ #
406
+ <Files ~ "^\.ht">
407
+ Order allow,deny
408
+ Deny from all
409
+ </Files>
410
+
411
+ #
412
+ # TypesConfig describes where the mime.types file (or equivalent) is
413
+ # to be found.
414
+ #
415
+ TypesConfig /etc/mime.types
416
+
417
+ #
418
+ # DefaultType is the default MIME type the server will use for a document
419
+ # if it cannot otherwise determine one, such as from filename extensions.
420
+ # If your server contains mostly text or HTML documents, "text/plain" is
421
+ # a good value. If most of your content is binary, such as applications
422
+ # or images, you may want to use "application/octet-stream" instead to
423
+ # keep browsers from trying to display binary files as though they are
424
+ # text.
425
+ #
426
+ DefaultType text/plain
427
+
428
+ #
429
+ # The mod_mime_magic module allows the server to use various hints from the
430
+ # contents of the file itself to determine its type. The MIMEMagicFile
431
+ # directive tells the module where the hint definitions are located.
432
+ #
433
+ <IfModule mod_mime_magic.c>
434
+ # MIMEMagicFile /usr/share/magic.mime
435
+ MIMEMagicFile conf/magic
436
+ </IfModule>
437
+
438
+ #
439
+ # HostnameLookups: Log the names of clients or just their IP addresses
440
+ # e.g., www.apache.org (on) or 204.62.129.132 (off).
441
+ # The default is off because it'd be overall better for the net if people
442
+ # had to knowingly turn this feature on, since enabling it means that
443
+ # each client request will result in AT LEAST one lookup request to the
444
+ # nameserver.
445
+ #
446
+ HostnameLookups Off
447
+
448
+ #
449
+ # EnableMMAP: Control whether memory-mapping is used to deliver
450
+ # files (assuming that the underlying OS supports it).
451
+ # The default is on; turn this off if you serve from NFS-mounted
452
+ # filesystems. On some systems, turning it off (regardless of
453
+ # filesystem) can improve performance; for details, please see
454
+ # http://httpd.apache.org/docs/2.2/mod/core.html#enablemmap
455
+ #
456
+ #EnableMMAP off
457
+
458
+ #
459
+ # EnableSendfile: Control whether the sendfile kernel support is
460
+ # used to deliver files (assuming that the OS supports it).
461
+ # The default is on; turn this off if you serve from NFS-mounted
462
+ # filesystems. Please see
463
+ # http://httpd.apache.org/docs/2.2/mod/core.html#enablesendfile
464
+ #
465
+ #EnableSendfile off
466
+
467
+ #
468
+ # ErrorLog: The location of the error log file.
469
+ # If you do not specify an ErrorLog directive within a <VirtualHost>
470
+ # container, error messages relating to that virtual host will be
471
+ # logged here. If you *do* define an error logfile for a <VirtualHost>
472
+ # container, that host's errors will be logged there and not here.
473
+ #
474
+ ErrorLog logs/error_log
475
+
476
+ #
477
+ # LogLevel: Control the number of messages logged to the error_log.
478
+ # Possible values include: debug, info, notice, warn, error, crit,
479
+ # alert, emerg.
480
+ #
481
+ LogLevel warn
482
+
483
+ #
484
+ # The following directives define some format nicknames for use with
485
+ # a CustomLog directive (see below).
486
+ #
487
+ LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
488
+ LogFormat "%h %l %u %t \"%r\" %>s %b" common
489
+ LogFormat "%{Referer}i -> %U" referer
490
+ LogFormat "%{User-agent}i" agent
491
+
492
+ # "combinedio" includes actual counts of actual bytes received (%I) and sent (%O); this
493
+ # requires the mod_logio module to be loaded.
494
+ #LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
495
+
496
+ #
497
+ # The location and format of the access logfile (Common Logfile Format).
498
+ # If you do not define any access logfiles within a <VirtualHost>
499
+ # container, they will be logged here. Contrariwise, if you *do*
500
+ # define per-<VirtualHost> access logfiles, transactions will be
501
+ # logged therein and *not* in this file.
502
+ #
503
+ #CustomLog logs/access_log common
504
+
505
+ #
506
+ # If you would like to have separate agent and referer logfiles, uncomment
507
+ # the following directives.
508
+ #
509
+ #CustomLog logs/referer_log referer
510
+ #CustomLog logs/agent_log agent
511
+
512
+ #
513
+ # For a single logfile with access, agent, and referer information
514
+ # (Combined Logfile Format), use the following directive:
515
+ #
516
+ CustomLog logs/access_log combined
517
+
518
+ #
519
+ # Optionally add a line containing the server version and virtual host
520
+ # name to server-generated pages (internal error documents, FTP directory
521
+ # listings, mod_status and mod_info output etc., but not CGI generated
522
+ # documents or custom error documents).
523
+ # Set to "EMail" to also include a mailto: link to the ServerAdmin.
524
+ # Set to one of: On | Off | EMail
525
+ #
526
+ ServerSignature On
527
+
528
+ #
529
+ # Aliases: Add here as many aliases as you need (with no limit). The format is
530
+ # Alias fakename realname
531
+ #
532
+ # Note that if you include a trailing / on fakename then the server will
533
+ # require it to be present in the URL. So "/icons" isn't aliased in this
534
+ # example, only "/icons/". If the fakename is slash-terminated, then the
535
+ # realname must also be slash terminated, and if the fakename omits the
536
+ # trailing slash, the realname must also omit it.
537
+ #
538
+ # We include the /icons/ alias for FancyIndexed directory listings. If you
539
+ # do not use FancyIndexing, you may comment this out.
540
+ #
541
+ Alias /icons/ "/var/www/icons/"
542
+
543
+ <Directory "/var/www/icons">
544
+ Options Indexes MultiViews
545
+ AllowOverride None
546
+ Order allow,deny
547
+ Allow from all
548
+ </Directory>
549
+
550
+ #
551
+ # WebDAV module configuration section.
552
+ #
553
+ <IfModule mod_dav_fs.c>
554
+ # Location of the WebDAV lock database.
555
+ DAVLockDB /var/lib/dav/lockdb
556
+ </IfModule>
557
+
558
+ #
559
+ # ScriptAlias: This controls which directories contain server scripts.
560
+ # ScriptAliases are essentially the same as Aliases, except that
561
+ # documents in the realname directory are treated as applications and
562
+ # run by the server when requested rather than as documents sent to the client.
563
+ # The same rules about trailing "/" apply to ScriptAlias directives as to
564
+ # Alias.
565
+ #
566
+ ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
567
+
568
+ #
569
+ # "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
570
+ # CGI directory exists, if you have that configured.
571
+ #
572
+ <Directory "/var/www/cgi-bin">
573
+ AllowOverride None
574
+ Options None
575
+ Order allow,deny
576
+ Allow from all
577
+ </Directory>
578
+
579
+ #
580
+ # Redirect allows you to tell clients about documents which used to exist in
581
+ # your server's namespace, but do not anymore. This allows you to tell the
582
+ # clients where to look for the relocated document.
583
+ # Example:
584
+ # Redirect permanent /foo http://www.example.com/bar
585
+
586
+ #
587
+ # Directives controlling the display of server-generated directory listings.
588
+ #
589
+
590
+ #
591
+ # IndexOptions: Controls the appearance of server-generated directory
592
+ # listings.
593
+ #
594
+ IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable
595
+
596
+ #
597
+ # AddIcon* directives tell the server which icon to show for different
598
+ # files or filename extensions. These are only displayed for
599
+ # FancyIndexed directories.
600
+ #
601
+ AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
602
+
603
+ AddIconByType (TXT,/icons/text.gif) text/*
604
+ AddIconByType (IMG,/icons/image2.gif) image/*
605
+ AddIconByType (SND,/icons/sound2.gif) audio/*
606
+ AddIconByType (VID,/icons/movie.gif) video/*
607
+
608
+ AddIcon /icons/binary.gif .bin .exe
609
+ AddIcon /icons/binhex.gif .hqx
610
+ AddIcon /icons/tar.gif .tar
611
+ AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
612
+ AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
613
+ AddIcon /icons/a.gif .ps .ai .eps
614
+ AddIcon /icons/layout.gif .html .shtml .htm .pdf
615
+ AddIcon /icons/text.gif .txt
616
+ AddIcon /icons/c.gif .c
617
+ AddIcon /icons/p.gif .pl .py
618
+ AddIcon /icons/f.gif .for
619
+ AddIcon /icons/dvi.gif .dvi
620
+ AddIcon /icons/uuencoded.gif .uu
621
+ AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
622
+ AddIcon /icons/tex.gif .tex
623
+ AddIcon /icons/bomb.gif core
624
+
625
+ AddIcon /icons/back.gif ..
626
+ AddIcon /icons/hand.right.gif README
627
+ AddIcon /icons/folder.gif ^^DIRECTORY^^
628
+ AddIcon /icons/blank.gif ^^BLANKICON^^
629
+
630
+ #
631
+ # DefaultIcon is which icon to show for files which do not have an icon
632
+ # explicitly set.
633
+ #
634
+ DefaultIcon /icons/unknown.gif
635
+
636
+ #
637
+ # AddDescription allows you to place a short description after a file in
638
+ # server-generated indexes. These are only displayed for FancyIndexed
639
+ # directories.
640
+ # Format: AddDescription "description" filename
641
+ #
642
+ #AddDescription "GZIP compressed document" .gz
643
+ #AddDescription "tar archive" .tar
644
+ #AddDescription "GZIP compressed tar archive" .tgz
645
+
646
+ #
647
+ # ReadmeName is the name of the README file the server will look for by
648
+ # default, and append to directory listings.
649
+ #
650
+ # HeaderName is the name of a file which should be prepended to
651
+ # directory indexes.
652
+ ReadmeName README.html
653
+ HeaderName HEADER.html
654
+
655
+ #
656
+ # IndexIgnore is a set of filenames which directory indexing should ignore
657
+ # and not include in the listing. Shell-style wildcarding is permitted.
658
+ #
659
+ IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
660
+
661
+ #
662
+ # DefaultLanguage and AddLanguage allows you to specify the language of
663
+ # a document. You can then use content negotiation to give a browser a
664
+ # file in a language the user can understand.
665
+ #
666
+ # Specify a default language. This means that all data
667
+ # going out without a specific language tag (see below) will
668
+ # be marked with this one. You probably do NOT want to set
669
+ # this unless you are sure it is correct for all cases.
670
+ #
671
+ # * It is generally better to not mark a page as
672
+ # * being a certain language than marking it with the wrong
673
+ # * language!
674
+ #
675
+ # DefaultLanguage nl
676
+ #
677
+ # Note 1: The suffix does not have to be the same as the language
678
+ # keyword --- those with documents in Polish (whose net-standard
679
+ # language code is pl) may wish to use "AddLanguage pl .po" to
680
+ # avoid the ambiguity with the common suffix for perl scripts.
681
+ #
682
+ # Note 2: The example entries below illustrate that in some cases
683
+ # the two character 'Language' abbreviation is not identical to
684
+ # the two character 'Country' code for its country,
685
+ # E.g. 'Danmark/dk' versus 'Danish/da'.
686
+ #
687
+ # Note 3: In the case of 'ltz' we violate the RFC by using a three char
688
+ # specifier. There is 'work in progress' to fix this and get
689
+ # the reference data for rfc1766 cleaned up.
690
+ #
691
+ # Catalan (ca) - Croatian (hr) - Czech (cs) - Danish (da) - Dutch (nl)
692
+ # English (en) - Esperanto (eo) - Estonian (et) - French (fr) - German (de)
693
+ # Greek-Modern (el) - Hebrew (he) - Italian (it) - Japanese (ja)
694
+ # Korean (ko) - Luxembourgeois* (ltz) - Norwegian Nynorsk (nn)
695
+ # Norwegian (no) - Polish (pl) - Portugese (pt)
696
+ # Brazilian Portuguese (pt-BR) - Russian (ru) - Swedish (sv)
697
+ # Simplified Chinese (zh-CN) - Spanish (es) - Traditional Chinese (zh-TW)
698
+ #
699
+ AddLanguage ca .ca
700
+ AddLanguage cs .cz .cs
701
+ AddLanguage da .dk
702
+ AddLanguage de .de
703
+ AddLanguage el .el
704
+ AddLanguage en .en
705
+ AddLanguage eo .eo
706
+ AddLanguage es .es
707
+ AddLanguage et .et
708
+ AddLanguage fr .fr
709
+ AddLanguage he .he
710
+ AddLanguage hr .hr
711
+ AddLanguage it .it
712
+ AddLanguage ja .ja
713
+ AddLanguage ko .ko
714
+ AddLanguage ltz .ltz
715
+ AddLanguage nl .nl
716
+ AddLanguage nn .nn
717
+ AddLanguage no .no
718
+ AddLanguage pl .po
719
+ AddLanguage pt .pt
720
+ AddLanguage pt-BR .pt-br
721
+ AddLanguage ru .ru
722
+ AddLanguage sv .sv
723
+ AddLanguage zh-CN .zh-cn
724
+ AddLanguage zh-TW .zh-tw
725
+
726
+ #
727
+ # LanguagePriority allows you to give precedence to some languages
728
+ # in case of a tie during content negotiation.
729
+ #
730
+ # Just list the languages in decreasing order of preference. We have
731
+ # more or less alphabetized them here. You probably want to change this.
732
+ #
733
+ LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW
734
+
735
+ #
736
+ # ForceLanguagePriority allows you to serve a result page rather than
737
+ # MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback)
738
+ # [in case no accepted languages matched the available variants]
739
+ #
740
+ ForceLanguagePriority Prefer Fallback
741
+
742
+ #
743
+ # Specify a default charset for all content served; this enables
744
+ # interpretation of all content as UTF-8 by default. To use the
745
+ # default browser choice (ISO-8859-1), or to allow the META tags
746
+ # in HTML content to override this choice, comment out this
747
+ # directive:
748
+ #
749
+ AddDefaultCharset UTF-8
750
+
751
+ #
752
+ # AddType allows you to add to or override the MIME configuration
753
+ # file mime.types for specific file types.
754
+ #
755
+ #AddType application/x-tar .tgz
756
+
757
+ #
758
+ # AddEncoding allows you to have certain browsers uncompress
759
+ # information on the fly. Note: Not all browsers support this.
760
+ # Despite the name similarity, the following Add* directives have nothing
761
+ # to do with the FancyIndexing customization directives above.
762
+ #
763
+ #AddEncoding x-compress .Z
764
+ #AddEncoding x-gzip .gz .tgz
765
+
766
+ # If the AddEncoding directives above are commented-out, then you
767
+ # probably should define those extensions to indicate media types:
768
+ #
769
+ AddType application/x-compress .Z
770
+ AddType application/x-gzip .gz .tgz
771
+
772
+ #
773
+ # AddHandler allows you to map certain file extensions to "handlers":
774
+ # actions unrelated to filetype. These can be either built into the server
775
+ # or added with the Action directive (see below)
776
+ #
777
+ # To use CGI scripts outside of ScriptAliased directories:
778
+ # (You will also need to add "ExecCGI" to the "Options" directive.)
779
+ #
780
+ #AddHandler cgi-script .cgi
781
+
782
+ #
783
+ # For files that include their own HTTP headers:
784
+ #
785
+ #AddHandler send-as-is asis
786
+
787
+ #
788
+ # For type maps (negotiated resources):
789
+ # (This is enabled by default to allow the Apache "It Worked" page
790
+ # to be distributed in multiple languages.)
791
+ #
792
+ AddHandler type-map var
793
+
794
+ #
795
+ # Filters allow you to process content before it is sent to the client.
796
+ #
797
+ # To parse .shtml files for server-side includes (SSI):
798
+ # (You will also need to add "Includes" to the "Options" directive.)
799
+ #
800
+ AddType text/html .shtml
801
+ AddOutputFilter INCLUDES .shtml
802
+
803
+ #
804
+ # Action lets you define media types that will execute a script whenever
805
+ # a matching file is called. This eliminates the need for repeated URL
806
+ # pathnames for oft-used CGI file processors.
807
+ # Format: Action media/type /cgi-script/location
808
+ # Format: Action handler-name /cgi-script/location
809
+ #
810
+
811
+ #
812
+ # Customizable error responses come in three flavors:
813
+ # 1) plain text 2) local redirects 3) external redirects
814
+ #
815
+ # Some examples:
816
+ #ErrorDocument 500 "The server made a boo boo."
817
+ #ErrorDocument 404 /missing.html
818
+ #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
819
+ #ErrorDocument 402 http://www.example.com/subscription_info.html
820
+ #
821
+
822
+ #
823
+ # Putting this all together, we can internationalize error responses.
824
+ #
825
+ # We use Alias to redirect any /error/HTTP_<error>.html.var response to
826
+ # our collection of by-error message multi-language collections. We use
827
+ # includes to substitute the appropriate text.
828
+ #
829
+ # You can modify the messages' appearance without changing any of the
830
+ # default HTTP_<error>.html.var files by adding the line:
831
+ #
832
+ # Alias /error/include/ "/your/include/path/"
833
+ #
834
+ # which allows you to create your own set of files by starting with the
835
+ # /var/www/error/include/ files and
836
+ # copying them to /your/include/path/, even on a per-VirtualHost basis.
837
+ #
838
+
839
+ Alias /error/ "/var/www/error/"
840
+
841
+ <IfModule mod_negotiation.c>
842
+ <IfModule mod_include.c>
843
+ <Directory "/var/www/error">
844
+ AllowOverride None
845
+ Options IncludesNoExec
846
+ AddOutputFilter Includes html
847
+ AddHandler type-map var
848
+ Order allow,deny
849
+ Allow from all
850
+ LanguagePriority en es de fr
851
+ ForceLanguagePriority Prefer Fallback
852
+ </Directory>
853
+
854
+ # ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
855
+ # ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
856
+ # ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
857
+ # ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
858
+ # ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
859
+ # ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
860
+ # ErrorDocument 410 /error/HTTP_GONE.html.var
861
+ # ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
862
+ # ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
863
+ # ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
864
+ # ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
865
+ # ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
866
+ # ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
867
+ # ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
868
+ # ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
869
+ # ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
870
+ # ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var
871
+
872
+ </IfModule>
873
+ </IfModule>
874
+
875
+ #
876
+ # The following directives modify normal HTTP response behavior to
877
+ # handle known problems with browser implementations.
878
+ #
879
+ BrowserMatch "Mozilla/2" nokeepalive
880
+ BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
881
+ BrowserMatch "RealPlayer 4\.0" force-response-1.0
882
+ BrowserMatch "Java/1\.0" force-response-1.0
883
+ BrowserMatch "JDK/1\.0" force-response-1.0
884
+
885
+ #
886
+ # The following directive disables redirects on non-GET requests for
887
+ # a directory that does not include the trailing slash. This fixes a
888
+ # problem with Microsoft WebFolders which does not appropriately handle
889
+ # redirects for folders with DAV methods.
890
+ # Same deal with Apple's DAV filesystem and Gnome VFS support for DAV.
891
+ #
892
+ BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
893
+ BrowserMatch "MS FrontPage" redirect-carefully
894
+ BrowserMatch "^WebDrive" redirect-carefully
895
+ BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
896
+ BrowserMatch "^gnome-vfs/1.0" redirect-carefully
897
+ BrowserMatch "^XML Spy" redirect-carefully
898
+ BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully
899
+
900
+ #
901
+ # Allow server status reports generated by mod_status,
902
+ # with the URL of http://servername/server-status
903
+ # Change the ".example.com" to match your domain to enable.
904
+ #
905
+ #<Location /server-status>
906
+ # SetHandler server-status
907
+ # Order deny,allow
908
+ # Deny from all
909
+ # Allow from .example.com
910
+ #</Location>
911
+
912
+ #
913
+ # Allow remote server configuration reports, with the URL of
914
+ # http://servername/server-info (requires that mod_info.c be loaded).
915
+ # Change the ".example.com" to match your domain to enable.
916
+ #
917
+ #<Location /server-info>
918
+ # SetHandler server-info
919
+ # Order deny,allow
920
+ # Deny from all
921
+ # Allow from .example.com
922
+ #</Location>
923
+
924
+ #
925
+ # Proxy Server directives. Uncomment the following lines to
926
+ # enable the proxy server:
927
+ #
928
+ #<IfModule mod_proxy.c>
929
+ #ProxyRequests On
930
+ #
931
+ #<Proxy *>
932
+ # Order deny,allow
933
+ # Deny from all
934
+ # Allow from .example.com
935
+ #</Proxy>
936
+
937
+ #
938
+ # Enable/disable the handling of HTTP/1.1 "Via:" headers.
939
+ # ("Full" adds the server version; "Block" removes all outgoing Via: headers)
940
+ # Set to one of: Off | On | Full | Block
941
+ #
942
+ #ProxyVia On
943
+
944
+ #
945
+ # To enable a cache of proxied content, uncomment the following lines.
946
+ # See http://httpd.apache.org/docs/2.2/mod/mod_cache.html for more details.
947
+ #
948
+ #<IfModule mod_disk_cache.c>
949
+ # CacheEnable disk /
950
+ # CacheRoot "/var/cache/mod_proxy"
951
+ #</IfModule>
952
+ #
953
+
954
+ #</IfModule>
955
+ # End of proxy directives.
956
+
957
+ ### Section 3: Virtual Hosts
958
+ #
959
+ # VirtualHost: If you want to maintain multiple domains/hostnames on your
960
+ # machine you can setup VirtualHost containers for them. Most configurations
961
+ # use only name-based virtual hosts so the server doesn't need to worry about
962
+ # IP addresses. This is indicated by the asterisks in the directives below.
963
+ #
964
+ # Please see the documentation at
965
+ # <URL:http://httpd.apache.org/docs/2.2/vhosts/>
966
+ # for further details before you try to setup virtual hosts.
967
+ #
968
+ # You may use the command line option '-S' to verify your virtual host
969
+ # configuration.
970
+
971
+ #
972
+ # Use name-based virtual hosting.
973
+ #
974
+ NameVirtualHost *:80
975
+
976
+ # Load sites defined in ubuntu style folders
977
+
978
+ Include /etc/httpd/sites-enabled/