vagrant-managed-servers 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +17 -0
- data/Berksfile +4 -0
- data/CHANGELOG.md +4 -0
- data/Gemfile +14 -0
- data/LICENSE +8 -0
- data/README.md +142 -0
- data/Rakefile +21 -0
- data/Vagrantfile +44 -0
- data/cookbooks/apache2/CHANGELOG.md +95 -0
- data/cookbooks/apache2/CONTRIBUTING.md +257 -0
- data/cookbooks/apache2/Gemfile +10 -0
- data/cookbooks/apache2/LICENSE +201 -0
- data/cookbooks/apache2/README.md +567 -0
- data/cookbooks/apache2/attributes/default.rb +149 -0
- data/cookbooks/apache2/attributes/mod_auth_cas.rb +2 -0
- data/cookbooks/apache2/attributes/mod_auth_openid.rb +32 -0
- data/cookbooks/apache2/definitions/apache_conf.rb +26 -0
- data/cookbooks/apache2/definitions/apache_module.rb +53 -0
- data/cookbooks/apache2/definitions/apache_site.rb +43 -0
- data/cookbooks/apache2/definitions/web_app.rb +49 -0
- data/cookbooks/apache2/files/default/apache2_module_conf_generate.pl +41 -0
- data/cookbooks/apache2/files/default/tests/minitest/default_test.rb +77 -0
- data/cookbooks/apache2/files/default/tests/minitest/god_monitor_test.rb +34 -0
- data/cookbooks/apache2/files/default/tests/minitest/mod_apreq2_test.rb +19 -0
- data/cookbooks/apache2/files/default/tests/minitest/mod_auth_cas_test.rb +11 -0
- data/cookbooks/apache2/files/default/tests/minitest/mod_auth_openid_test.rb +37 -0
- data/cookbooks/apache2/files/default/tests/minitest/mod_cgi_test.rb +13 -0
- data/cookbooks/apache2/files/default/tests/minitest/mod_dav_svn_test.rb +14 -0
- data/cookbooks/apache2/files/default/tests/minitest/mod_fastcgi.rb +11 -0
- data/cookbooks/apache2/files/default/tests/minitest/mod_perl_test.rb +18 -0
- data/cookbooks/apache2/files/default/tests/minitest/mod_php5_test.rb +13 -0
- data/cookbooks/apache2/files/default/tests/minitest/mod_python_test.rb +10 -0
- data/cookbooks/apache2/files/default/tests/minitest/mod_ssl_test.rb +23 -0
- data/cookbooks/apache2/files/default/tests/minitest/support/helpers.rb +50 -0
- data/cookbooks/apache2/metadata.json +513 -0
- data/cookbooks/apache2/metadata.rb +207 -0
- data/cookbooks/apache2/recipes/default.rb +208 -0
- data/cookbooks/apache2/recipes/god_monitor.rb +33 -0
- data/cookbooks/apache2/recipes/logrotate.rb +29 -0
- data/cookbooks/apache2/recipes/mod_alias.rb +22 -0
- data/cookbooks/apache2/recipes/mod_apreq2.rb +54 -0
- data/cookbooks/apache2/recipes/mod_auth_basic.rb +20 -0
- data/cookbooks/apache2/recipes/mod_auth_cas.rb +59 -0
- data/cookbooks/apache2/recipes/mod_auth_digest.rb +20 -0
- data/cookbooks/apache2/recipes/mod_auth_openid.rb +111 -0
- data/cookbooks/apache2/recipes/mod_authn_file.rb +20 -0
- data/cookbooks/apache2/recipes/mod_authnz_ldap.rb +20 -0
- data/cookbooks/apache2/recipes/mod_authz_default.rb +20 -0
- data/cookbooks/apache2/recipes/mod_authz_groupfile.rb +20 -0
- data/cookbooks/apache2/recipes/mod_authz_host.rb +20 -0
- data/cookbooks/apache2/recipes/mod_authz_user.rb +20 -0
- data/cookbooks/apache2/recipes/mod_autoindex.rb +22 -0
- data/cookbooks/apache2/recipes/mod_cgi.rb +20 -0
- data/cookbooks/apache2/recipes/mod_dav.rb +20 -0
- data/cookbooks/apache2/recipes/mod_dav_fs.rb +21 -0
- data/cookbooks/apache2/recipes/mod_dav_svn.rb +41 -0
- data/cookbooks/apache2/recipes/mod_deflate.rb +22 -0
- data/cookbooks/apache2/recipes/mod_dir.rb +22 -0
- data/cookbooks/apache2/recipes/mod_env.rb +20 -0
- data/cookbooks/apache2/recipes/mod_expires.rb +20 -0
- data/cookbooks/apache2/recipes/mod_fastcgi.rb +26 -0
- data/cookbooks/apache2/recipes/mod_fcgid.rb +55 -0
- data/cookbooks/apache2/recipes/mod_headers.rb +20 -0
- data/cookbooks/apache2/recipes/mod_include.rb +20 -0
- data/cookbooks/apache2/recipes/mod_ldap.rb +20 -0
- data/cookbooks/apache2/recipes/mod_log_config.rb +24 -0
- data/cookbooks/apache2/recipes/mod_logio.rb +24 -0
- data/cookbooks/apache2/recipes/mod_mime.rb +22 -0
- data/cookbooks/apache2/recipes/mod_negotiation.rb +22 -0
- data/cookbooks/apache2/recipes/mod_perl.rb +44 -0
- data/cookbooks/apache2/recipes/mod_php5.rb +77 -0
- data/cookbooks/apache2/recipes/mod_proxy.rb +22 -0
- data/cookbooks/apache2/recipes/mod_proxy_ajp.rb +21 -0
- data/cookbooks/apache2/recipes/mod_proxy_balancer.rb +20 -0
- data/cookbooks/apache2/recipes/mod_proxy_connect.rb +20 -0
- data/cookbooks/apache2/recipes/mod_proxy_http.rb +20 -0
- data/cookbooks/apache2/recipes/mod_python.rb +38 -0
- data/cookbooks/apache2/recipes/mod_rewrite.rb +20 -0
- data/cookbooks/apache2/recipes/mod_setenvif.rb +22 -0
- data/cookbooks/apache2/recipes/mod_ssl.rb +46 -0
- data/cookbooks/apache2/recipes/mod_status.rb +22 -0
- data/cookbooks/apache2/recipes/mod_wsgi.rb +38 -0
- data/cookbooks/apache2/recipes/mod_xsendfile.rb +38 -0
- data/cookbooks/apache2/templates/default/a2dismod.erb +22 -0
- data/cookbooks/apache2/templates/default/a2dissite.erb +29 -0
- data/cookbooks/apache2/templates/default/a2enmod.erb +37 -0
- data/cookbooks/apache2/templates/default/a2ensite.erb +38 -0
- data/cookbooks/apache2/templates/default/apache2.conf.erb +237 -0
- data/cookbooks/apache2/templates/default/apache2.god.erb +19 -0
- data/cookbooks/apache2/templates/default/charset.erb +6 -0
- data/cookbooks/apache2/templates/default/default-site.erb +57 -0
- data/cookbooks/apache2/templates/default/mods/README +2 -0
- data/cookbooks/apache2/templates/default/mods/alias.conf.erb +24 -0
- data/cookbooks/apache2/templates/default/mods/auth_cas.conf.erb +1 -0
- data/cookbooks/apache2/templates/default/mods/auth_cas.load.erb +1 -0
- data/cookbooks/apache2/templates/default/mods/authopenid.load.erb +1 -0
- data/cookbooks/apache2/templates/default/mods/autoindex.conf.erb +101 -0
- data/cookbooks/apache2/templates/default/mods/deflate.conf.erb +16 -0
- data/cookbooks/apache2/templates/default/mods/dir.conf.erb +5 -0
- data/cookbooks/apache2/templates/default/mods/fastcgi.conf.erb +5 -0
- data/cookbooks/apache2/templates/default/mods/fcgid.conf.erb +10 -0
- data/cookbooks/apache2/templates/default/mods/mime.conf.erb +198 -0
- data/cookbooks/apache2/templates/default/mods/negotiation.conf.erb +18 -0
- data/cookbooks/apache2/templates/default/mods/php5.conf.erb +16 -0
- data/cookbooks/apache2/templates/default/mods/proxy.conf.erb +19 -0
- data/cookbooks/apache2/templates/default/mods/setenvif.conf.erb +28 -0
- data/cookbooks/apache2/templates/default/mods/ssl.conf.erb +76 -0
- data/cookbooks/apache2/templates/default/mods/status.conf.erb +26 -0
- data/cookbooks/apache2/templates/default/port_apache.erb +2 -0
- data/cookbooks/apache2/templates/default/ports.conf.erb +6 -0
- data/cookbooks/apache2/templates/default/security.erb +50 -0
- data/cookbooks/apache2/templates/default/web_app.conf.erb +43 -0
- data/cookbooks/apt/Berksfile +8 -0
- data/cookbooks/apt/CHANGELOG.md +97 -0
- data/cookbooks/apt/CONTRIBUTING +29 -0
- data/cookbooks/apt/LICENSE +201 -0
- data/cookbooks/apt/README.md +243 -0
- data/cookbooks/apt/TESTING.md +25 -0
- data/cookbooks/apt/attributes/default.rb +4 -0
- data/cookbooks/apt/files/default/apt-proxy-v2.conf +50 -0
- data/cookbooks/apt/metadata.json +1 -0
- data/cookbooks/apt/metadata.rb +30 -0
- data/cookbooks/apt/providers/preference.rb +61 -0
- data/cookbooks/apt/providers/repository.rb +132 -0
- data/cookbooks/apt/recipes/cacher-client.rb +59 -0
- data/cookbooks/apt/recipes/cacher-ng.rb +40 -0
- data/cookbooks/apt/recipes/default.rb +68 -0
- data/cookbooks/apt/resources/preference.rb +30 -0
- data/cookbooks/apt/resources/repository.rb +40 -0
- data/cookbooks/apt/templates/debian-6.0/acng.conf.erb +174 -0
- data/cookbooks/apt/templates/default/01proxy.erb +2 -0
- data/cookbooks/apt/templates/default/acng.conf.erb +276 -0
- data/cookbooks/apt/templates/ubuntu-10.04/acng.conf.erb +270 -0
- data/dummy.box +0 -0
- data/lib/vagrant-managed-servers.rb +18 -0
- data/lib/vagrant-managed-servers/action.rb +114 -0
- data/lib/vagrant-managed-servers/action/is_created.rb +18 -0
- data/lib/vagrant-managed-servers/action/is_reachable.rb +18 -0
- data/lib/vagrant-managed-servers/action/link_server.rb +31 -0
- data/lib/vagrant-managed-servers/action/message_not_reachable.rb +16 -0
- data/lib/vagrant-managed-servers/action/read_state.rb +84 -0
- data/lib/vagrant-managed-servers/action/sync_folders.rb +85 -0
- data/lib/vagrant-managed-servers/action/unlink_server.rb +30 -0
- data/lib/vagrant-managed-servers/action/warn_networks.rb +19 -0
- data/lib/vagrant-managed-servers/config.rb +28 -0
- data/lib/vagrant-managed-servers/errors.rb +19 -0
- data/lib/vagrant-managed-servers/plugin.rb +72 -0
- data/lib/vagrant-managed-servers/provider.rb +51 -0
- data/lib/vagrant-managed-servers/util/timer.rb +17 -0
- data/lib/vagrant-managed-servers/version.rb +5 -0
- data/locales/en.yml +45 -0
- data/spec/vagrant-managed-servers/config_spec.rb +28 -0
- data/vagrant-managed-servers.gemspec +56 -0
- metadata +264 -0
@@ -0,0 +1,24 @@
|
|
1
|
+
<IfModule alias_module>
|
2
|
+
#
|
3
|
+
# Aliases: Add here as many aliases as you need (with no limit). The format is
|
4
|
+
# Alias fakename realname
|
5
|
+
#
|
6
|
+
# Note that if you include a trailing / on fakename then the server will
|
7
|
+
# require it to be present in the URL. So "/icons" isn't aliased in this
|
8
|
+
# example, only "/icons/". If the fakename is slash-terminated, then the
|
9
|
+
# realname must also be slash terminated, and if the fakename omits the
|
10
|
+
# trailing slash, the realname must also omit it.
|
11
|
+
#
|
12
|
+
# We include the /icons/ alias for FancyIndexed directory listings. If
|
13
|
+
# you do not use FancyIndexing, you may comment this out.
|
14
|
+
#
|
15
|
+
Alias /icons/ "<%= node['apache']['icondir'] %>/"
|
16
|
+
|
17
|
+
<Directory "<%= node['apache']['icondir'] %>">
|
18
|
+
Options Indexes MultiViews
|
19
|
+
AllowOverride None
|
20
|
+
Order allow,deny
|
21
|
+
Allow from all
|
22
|
+
</Directory>
|
23
|
+
|
24
|
+
</IfModule>
|
@@ -0,0 +1 @@
|
|
1
|
+
CASCookiePath <%= node['apache']['cache_dir'] %>/mod_auth_cas/
|
@@ -0,0 +1 @@
|
|
1
|
+
LoadModule auth_cas_module <%= node['apache']['libexecdir'] %>/mod_auth_cas.so
|
@@ -0,0 +1 @@
|
|
1
|
+
LoadModule authopenid_module <%= node['apache']['libexecdir'] %>/mod_auth_openid.so
|
@@ -0,0 +1,101 @@
|
|
1
|
+
<IfModule mod_autoindex.c>
|
2
|
+
#
|
3
|
+
# Directives controlling the display of server-generated directory listings.
|
4
|
+
#
|
5
|
+
|
6
|
+
#
|
7
|
+
# IndexOptions: Controls the appearance of server-generated directory
|
8
|
+
# listings.
|
9
|
+
# Remove/replace the "Charset=UTF-8" if you don't use UTF-8 for your filenames.
|
10
|
+
#
|
11
|
+
IndexOptions FancyIndexing VersionSort HTMLTable NameWidth=* DescriptionWidth=* Charset=UTF-8
|
12
|
+
|
13
|
+
#
|
14
|
+
# AddIcon* directives tell the server which icon to show for different
|
15
|
+
# files or filename extensions. These are only displayed for
|
16
|
+
# FancyIndexed directories.
|
17
|
+
#
|
18
|
+
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip x-bzip2
|
19
|
+
|
20
|
+
AddIconByType (TXT,/icons/text.gif) text/*
|
21
|
+
AddIconByType (IMG,/icons/image2.gif) image/*
|
22
|
+
AddIconByType (SND,/icons/sound2.gif) audio/*
|
23
|
+
AddIconByType (VID,/icons/movie.gif) video/*
|
24
|
+
|
25
|
+
AddIcon /icons/binary.gif .bin .exe
|
26
|
+
AddIcon /icons/binhex.gif .hqx
|
27
|
+
AddIcon /icons/tar.gif .tar
|
28
|
+
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
|
29
|
+
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
|
30
|
+
AddIcon /icons/a.gif .ps .ai .eps
|
31
|
+
AddIcon /icons/layout.gif .html .shtml .htm .pdf
|
32
|
+
AddIcon /icons/text.gif .txt
|
33
|
+
AddIcon /icons/c.gif .c
|
34
|
+
AddIcon /icons/p.gif .pl .py
|
35
|
+
AddIcon /icons/f.gif .for
|
36
|
+
AddIcon /icons/dvi.gif .dvi
|
37
|
+
AddIcon /icons/uuencoded.gif .uu
|
38
|
+
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
|
39
|
+
AddIcon /icons/tex.gif .tex
|
40
|
+
# It's a suffix rule, so simply matching "core" matches "score" as well !
|
41
|
+
AddIcon /icons/bomb.gif /core
|
42
|
+
AddIcon (SND,/icons/sound2.gif) .ogg
|
43
|
+
AddIcon (VID,/icons/movie.gif) .ogm
|
44
|
+
|
45
|
+
AddIcon /icons/back.gif ..
|
46
|
+
AddIcon /icons/hand.right.gif README
|
47
|
+
AddIcon /icons/folder.gif ^^DIRECTORY^^
|
48
|
+
AddIcon /icons/blank.gif ^^BLANKICON^^
|
49
|
+
|
50
|
+
# Default icons for OpenDocument format
|
51
|
+
AddIcon /icons/odf6odt-20x22.png .odt
|
52
|
+
AddIcon /icons/odf6ods-20x22.png .ods
|
53
|
+
AddIcon /icons/odf6odp-20x22.png .odp
|
54
|
+
AddIcon /icons/odf6odg-20x22.png .odg
|
55
|
+
AddIcon /icons/odf6odc-20x22.png .odc
|
56
|
+
AddIcon /icons/odf6odf-20x22.png .odf
|
57
|
+
AddIcon /icons/odf6odb-20x22.png .odb
|
58
|
+
AddIcon /icons/odf6odi-20x22.png .odi
|
59
|
+
AddIcon /icons/odf6odm-20x22.png .odm
|
60
|
+
|
61
|
+
AddIcon /icons/odf6ott-20x22.png .ott
|
62
|
+
AddIcon /icons/odf6ots-20x22.png .ots
|
63
|
+
AddIcon /icons/odf6otp-20x22.png .otp
|
64
|
+
AddIcon /icons/odf6otg-20x22.png .otg
|
65
|
+
AddIcon /icons/odf6otc-20x22.png .otc
|
66
|
+
AddIcon /icons/odf6otf-20x22.png .otf
|
67
|
+
AddIcon /icons/odf6oti-20x22.png .oti
|
68
|
+
AddIcon /icons/odf6oth-20x22.png .oth
|
69
|
+
|
70
|
+
#
|
71
|
+
# DefaultIcon is which icon to show for files which do not have an icon
|
72
|
+
# explicitly set.
|
73
|
+
#
|
74
|
+
DefaultIcon /icons/unknown.gif
|
75
|
+
|
76
|
+
#
|
77
|
+
# AddDescription allows you to place a short description after a file in
|
78
|
+
# server-generated indexes. These are only displayed for FancyIndexed
|
79
|
+
# directories.
|
80
|
+
# Format: AddDescription "description" filename
|
81
|
+
#
|
82
|
+
#AddDescription "GZIP compressed document" .gz
|
83
|
+
#AddDescription "tar archive" .tar
|
84
|
+
#AddDescription "GZIP compressed tar archive" .tgz
|
85
|
+
|
86
|
+
#
|
87
|
+
# ReadmeName is the name of the README file the server will look for by
|
88
|
+
# default, and append to directory listings.
|
89
|
+
#
|
90
|
+
# HeaderName is the name of a file which should be prepended to
|
91
|
+
# directory indexes.
|
92
|
+
ReadmeName README.html
|
93
|
+
HeaderName HEADER.html
|
94
|
+
|
95
|
+
#
|
96
|
+
# IndexIgnore is a set of filenames which directory indexing should ignore
|
97
|
+
# and not include in the listing. Shell-style wildcarding is permitted.
|
98
|
+
#
|
99
|
+
IndexIgnore .??* *~ *# RCS CVS *,v *,t
|
100
|
+
|
101
|
+
</IfModule>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<IfModule mod_deflate.c>
|
2
|
+
AddOutputFilterByType DEFLATE text/html
|
3
|
+
AddOutputFilterByType DEFLATE text/css
|
4
|
+
AddOutputFilterByType DEFLATE text/plain
|
5
|
+
AddOutputFilterByType DEFLATE text/xml
|
6
|
+
AddOutputFilterByType DEFLATE application/xhtml+xml
|
7
|
+
AddOutputFilterByType DEFLATE application/xml
|
8
|
+
AddOutputFilterByType DEFLATE image/svg+xml
|
9
|
+
AddOutputFilterByType DEFLATE application/rss+xml
|
10
|
+
AddOutputFilterByType DEFLATE application/atom_xml
|
11
|
+
AddOutputFilterByType DEFLATE application/javascript
|
12
|
+
AddOutputFilterByType DEFLATE application/x-javascript
|
13
|
+
AddOutputFilterByType DEFLATE application/x-httpd-php
|
14
|
+
AddOutputFilterByType DEFLATE application/x-httpd-fastphp
|
15
|
+
AddOutputFilterByType DEFLATE application/x-httpd-eruby
|
16
|
+
</IfModule>
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<IfModule mod_fcgid.c>
|
2
|
+
AddHandler fcgid-script .fcgi
|
3
|
+
IPCConnectTimeout 20
|
4
|
+
</IfModule>
|
5
|
+
|
6
|
+
<% if %w{ rhel fedora }.include?(node['platform_family']) -%>
|
7
|
+
# Sane place to put sockets and shared memory file
|
8
|
+
SocketPath run/mod_fcgid
|
9
|
+
SharememPath run/mod_fcgid/fcgid_shm
|
10
|
+
<% end -%>
|
@@ -0,0 +1,198 @@
|
|
1
|
+
<IfModule mod_mime.c>
|
2
|
+
|
3
|
+
#
|
4
|
+
# TypesConfig points to the file containing the list of mappings from
|
5
|
+
# filename extension to MIME-type.
|
6
|
+
#
|
7
|
+
<% case node['platform_family'] -%>
|
8
|
+
<% when "arch" -%>
|
9
|
+
TypesConfig <%= node['apache']['dir'] %>/conf/mime.types
|
10
|
+
<% when "freebsd" -%>
|
11
|
+
TypesConfig <%= node['apache']['dir'] %>/mime.types
|
12
|
+
<% else -%>
|
13
|
+
TypesConfig /etc/mime.types
|
14
|
+
<% end -%>
|
15
|
+
|
16
|
+
#
|
17
|
+
# AddType allows you to add to or override the MIME configuration
|
18
|
+
# file mime.types for specific file types.
|
19
|
+
#
|
20
|
+
#AddType application/x-gzip .tgz
|
21
|
+
#
|
22
|
+
# AddEncoding allows you to have certain browsers uncompress
|
23
|
+
# information on the fly. Note: Not all browsers support this.
|
24
|
+
# Despite the name similarity, the following Add* directives have
|
25
|
+
# nothing to do with the FancyIndexing customization directives above.
|
26
|
+
#
|
27
|
+
#AddEncoding x-compress .Z
|
28
|
+
#AddEncoding x-gzip .gz .tgz
|
29
|
+
#AddEncoding x-bzip2 .bz2
|
30
|
+
#
|
31
|
+
# If the AddEncoding directives above are commented-out, then you
|
32
|
+
# probably should define those extensions to indicate media types:
|
33
|
+
#
|
34
|
+
AddType application/x-compress .Z
|
35
|
+
AddType application/x-gzip .gz .tgz
|
36
|
+
AddType application/x-bzip2 .bz2
|
37
|
+
|
38
|
+
#
|
39
|
+
# DefaultLanguage and AddLanguage allows you to specify the language of
|
40
|
+
# a document. You can then use content negotiation to give a browser a
|
41
|
+
# file in a language the user can understand.
|
42
|
+
#
|
43
|
+
# Specify a default language. This means that all data
|
44
|
+
# going out without a specific language tag (see below) will
|
45
|
+
# be marked with this one. You probably do NOT want to set
|
46
|
+
# this unless you are sure it is correct for all cases.
|
47
|
+
#
|
48
|
+
# * It is generally better to not mark a page as
|
49
|
+
# * being a certain language than marking it with the wrong
|
50
|
+
# * language!
|
51
|
+
#
|
52
|
+
# DefaultLanguage nl
|
53
|
+
#
|
54
|
+
# Note 1: The suffix does not have to be the same as the language
|
55
|
+
# keyword --- those with documents in Polish (whose net-standard
|
56
|
+
# language code is pl) may wish to use "AddLanguage pl .po" to
|
57
|
+
# avoid the ambiguity with the common suffix for perl scripts.
|
58
|
+
#
|
59
|
+
# Note 2: The example entries below illustrate that in some cases
|
60
|
+
# the two character 'Language' abbreviation is not identical to
|
61
|
+
# the two character 'Country' code for its country,
|
62
|
+
# E.g. 'Danmark/dk' versus 'Danish/da'.
|
63
|
+
#
|
64
|
+
# Note 3: In the case of 'ltz' we violate the RFC by using a three char
|
65
|
+
# specifier. There is 'work in progress' to fix this and get
|
66
|
+
# the reference data for rfc1766 cleaned up.
|
67
|
+
#
|
68
|
+
# Catalan (ca) - Croatian (hr) - Czech (cs) - Danish (da) - Dutch (nl)
|
69
|
+
# English (en) - Esperanto (eo) - Estonian (et) - French (fr) - German (de)
|
70
|
+
# Greek-Modern (el) - Hebrew (he) - Italian (it) - Japanese (ja)
|
71
|
+
# Korean (ko) - Luxembourgeois* (ltz) - Norwegian Nynorsk (nn)
|
72
|
+
# Norwegian (no) - Polish (pl) - Portugese (pt)
|
73
|
+
# Brazilian Portuguese (pt-BR) - Russian (ru) - Swedish (sv)
|
74
|
+
# Simplified Chinese (zh-CN) - Spanish (es) - Traditional Chinese (zh-TW)
|
75
|
+
#
|
76
|
+
AddLanguage ca .ca
|
77
|
+
AddLanguage cs .cz .cs
|
78
|
+
AddLanguage da .dk
|
79
|
+
AddLanguage de .de
|
80
|
+
AddLanguage el .el
|
81
|
+
AddLanguage en .en
|
82
|
+
AddLanguage eo .eo
|
83
|
+
# See README.Debian for Spanish
|
84
|
+
AddLanguage es .es
|
85
|
+
AddLanguage et .et
|
86
|
+
AddLanguage fr .fr
|
87
|
+
AddLanguage he .he
|
88
|
+
AddLanguage hr .hr
|
89
|
+
AddLanguage it .it
|
90
|
+
AddLanguage ja .ja
|
91
|
+
AddLanguage ko .ko
|
92
|
+
AddLanguage ltz .ltz
|
93
|
+
AddLanguage nl .nl
|
94
|
+
AddLanguage nn .nn
|
95
|
+
AddLanguage no .no
|
96
|
+
AddLanguage pl .po
|
97
|
+
AddLanguage pt .pt
|
98
|
+
AddLanguage pt-BR .pt-br
|
99
|
+
AddLanguage ru .ru
|
100
|
+
AddLanguage sv .sv
|
101
|
+
# See README.Debian for Turkish
|
102
|
+
AddLanguage tr .tr
|
103
|
+
AddLanguage zh-CN .zh-cn
|
104
|
+
AddLanguage zh-TW .zh-tw
|
105
|
+
|
106
|
+
#
|
107
|
+
# Commonly used filename extensions to character sets. You probably
|
108
|
+
# want to avoid clashes with the language extensions, unless you
|
109
|
+
# are good at carefully testing your setup after each change.
|
110
|
+
# See http://www.iana.org/assignments/character-sets for the
|
111
|
+
# official list of charset names and their respective RFCs.
|
112
|
+
#
|
113
|
+
AddCharset us-ascii .ascii .us-ascii
|
114
|
+
AddCharset ISO-8859-1 .iso8859-1 .latin1
|
115
|
+
AddCharset ISO-8859-2 .iso8859-2 .latin2 .cen
|
116
|
+
AddCharset ISO-8859-3 .iso8859-3 .latin3
|
117
|
+
AddCharset ISO-8859-4 .iso8859-4 .latin4
|
118
|
+
AddCharset ISO-8859-5 .iso8859-5 .cyr .iso-ru
|
119
|
+
AddCharset ISO-8859-6 .iso8859-6 .arb .arabic
|
120
|
+
AddCharset ISO-8859-7 .iso8859-7 .grk .greek
|
121
|
+
AddCharset ISO-8859-8 .iso8859-8 .heb .hebrew
|
122
|
+
AddCharset ISO-8859-9 .iso8859-9 .latin5 .trk
|
123
|
+
AddCharset ISO-8859-10 .iso8859-10 .latin6
|
124
|
+
AddCharset ISO-8859-13 .iso8859-13
|
125
|
+
AddCharset ISO-8859-14 .iso8859-14 .latin8
|
126
|
+
AddCharset ISO-8859-15 .iso8859-15 .latin9
|
127
|
+
AddCharset ISO-8859-16 .iso8859-16 .latin10
|
128
|
+
AddCharset ISO-2022-JP .iso2022-jp .jis
|
129
|
+
AddCharset ISO-2022-KR .iso2022-kr .kis
|
130
|
+
AddCharset ISO-2022-CN .iso2022-cn .cis
|
131
|
+
AddCharset Big5 .Big5 .big5 .b5
|
132
|
+
AddCharset cn-Big5 .cn-big5
|
133
|
+
# For russian, more than one charset is used (depends on client, mostly):
|
134
|
+
AddCharset WINDOWS-1251 .cp-1251 .win-1251
|
135
|
+
AddCharset CP866 .cp866
|
136
|
+
AddCharset KOI8 .koi8
|
137
|
+
AddCharset KOI8-E .koi8-e
|
138
|
+
AddCharset KOI8-r .koi8-r .koi8-ru
|
139
|
+
AddCharset KOI8-U .koi8-u
|
140
|
+
AddCharset KOI8-ru .koi8-uk .ua
|
141
|
+
AddCharset ISO-10646-UCS-2 .ucs2
|
142
|
+
AddCharset ISO-10646-UCS-4 .ucs4
|
143
|
+
AddCharset UTF-7 .utf7
|
144
|
+
AddCharset UTF-8 .utf8
|
145
|
+
AddCharset UTF-16 .utf16
|
146
|
+
AddCharset UTF-16BE .utf16be
|
147
|
+
AddCharset UTF-16LE .utf16le
|
148
|
+
AddCharset UTF-32 .utf32
|
149
|
+
AddCharset UTF-32BE .utf32be
|
150
|
+
AddCharset UTF-32LE .utf32le
|
151
|
+
AddCharset euc-cn .euc-cn
|
152
|
+
AddCharset euc-gb .euc-gb
|
153
|
+
AddCharset euc-jp .euc-jp
|
154
|
+
AddCharset euc-kr .euc-kr
|
155
|
+
#Not sure how euc-tw got in - IANA doesn't list it???
|
156
|
+
AddCharset EUC-TW .euc-tw
|
157
|
+
AddCharset gb2312 .gb2312 .gb
|
158
|
+
AddCharset iso-10646-ucs-2 .ucs-2 .iso-10646-ucs-2
|
159
|
+
AddCharset iso-10646-ucs-4 .ucs-4 .iso-10646-ucs-4
|
160
|
+
AddCharset shift_jis .shift_jis .sjis
|
161
|
+
|
162
|
+
#
|
163
|
+
# AddHandler allows you to map certain file extensions to "handlers":
|
164
|
+
# actions unrelated to filetype. These can be either built into the server
|
165
|
+
# or added with the Action directive (see below)
|
166
|
+
#
|
167
|
+
# To use CGI scripts outside of ScriptAliased directories:
|
168
|
+
# (You will also need to add "ExecCGI" to the "Options" directive.)
|
169
|
+
#
|
170
|
+
#AddHandler cgi-script .cgi
|
171
|
+
|
172
|
+
#
|
173
|
+
# For files that include their own HTTP headers:
|
174
|
+
#
|
175
|
+
#AddHandler send-as-is asis
|
176
|
+
|
177
|
+
#
|
178
|
+
# For server-parsed imagemap files:
|
179
|
+
#
|
180
|
+
#AddHandler imap-file map
|
181
|
+
|
182
|
+
#
|
183
|
+
# For type maps (negotiated resources):
|
184
|
+
# (This is enabled by default to allow the Apache "It Worked" page
|
185
|
+
# to be distributed in multiple languages.)
|
186
|
+
#
|
187
|
+
AddHandler type-map var
|
188
|
+
|
189
|
+
#
|
190
|
+
# Filters allow you to process content before it is sent to the client.
|
191
|
+
#
|
192
|
+
# To parse .shtml files for server-side includes (SSI):
|
193
|
+
# (You will also need to add "Includes" to the "Options" directive.)
|
194
|
+
#
|
195
|
+
AddType text/html .shtml
|
196
|
+
AddOutputFilter INCLUDES .shtml
|
197
|
+
|
198
|
+
</IfModule>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<IfModule mod_negotiation.c>
|
2
|
+
#
|
3
|
+
# LanguagePriority allows you to give precedence to some languages
|
4
|
+
# in case of a tie during content negotiation.
|
5
|
+
#
|
6
|
+
# Just list the languages in decreasing order of preference. We have
|
7
|
+
# more or less alphabetized them here. You probably want to change this.
|
8
|
+
#
|
9
|
+
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 tr zh-CN zh-TW
|
10
|
+
|
11
|
+
#
|
12
|
+
# ForceLanguagePriority allows you to serve a result page rather than
|
13
|
+
# MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback)
|
14
|
+
# [in case no accepted languages matched the available variants]
|
15
|
+
#
|
16
|
+
ForceLanguagePriority Prefer Fallback
|
17
|
+
|
18
|
+
</IfModule>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<IfModule mod_php5.c>
|
2
|
+
<FilesMatch "\.ph(p3?|tml)$">
|
3
|
+
SetHandler application/x-httpd-php
|
4
|
+
</FilesMatch>
|
5
|
+
<FilesMatch "\.phps$">
|
6
|
+
SetHandler application/x-httpd-php-source
|
7
|
+
</FilesMatch>
|
8
|
+
# To re-enable php in user directories comment the following lines
|
9
|
+
# (from <IfModule ...> to </IfModule>.) Do NOT set it to On as it
|
10
|
+
# prevents .htaccess files from disabling it.
|
11
|
+
<IfModule mod_userdir.c>
|
12
|
+
<Directory /home/*/public_html>
|
13
|
+
php_admin_value engine Off
|
14
|
+
</Directory>
|
15
|
+
</IfModule>
|
16
|
+
</IfModule>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<IfModule mod_proxy.c>
|
2
|
+
#turning ProxyRequests on and allowing proxying from all may allow
|
3
|
+
#spammers to use your proxy to send email.
|
4
|
+
|
5
|
+
ProxyRequests Off
|
6
|
+
|
7
|
+
<Proxy *>
|
8
|
+
AddDefaultCharset off
|
9
|
+
Order deny,allow
|
10
|
+
Deny from all
|
11
|
+
#Allow from .example.com
|
12
|
+
</Proxy>
|
13
|
+
|
14
|
+
# Enable/disable the handling of HTTP/1.1 "Via:" headers.
|
15
|
+
# ("Full" adds the server version; "Block" removes all outgoing Via: headers)
|
16
|
+
# Set to one of: Off | On | Full | Block
|
17
|
+
|
18
|
+
ProxyVia On
|
19
|
+
</IfModule>
|
@@ -0,0 +1,28 @@
|
|
1
|
+
<IfModule mod_setenvif.c>
|
2
|
+
|
3
|
+
#
|
4
|
+
# The following directives modify normal HTTP response behavior to
|
5
|
+
# handle known problems with browser implementations.
|
6
|
+
#
|
7
|
+
BrowserMatch "Mozilla/2" nokeepalive
|
8
|
+
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
|
9
|
+
BrowserMatch "RealPlayer 4\.0" force-response-1.0
|
10
|
+
BrowserMatch "Java/1\.0" force-response-1.0
|
11
|
+
BrowserMatch "JDK/1\.0" force-response-1.0
|
12
|
+
|
13
|
+
#
|
14
|
+
# The following directive disables redirects on non-GET requests for
|
15
|
+
# a directory that does not include the trailing slash. This fixes a
|
16
|
+
# problem with Microsoft WebFolders which does not appropriately handle
|
17
|
+
# redirects for folders with DAV methods.
|
18
|
+
# Same deal with Apple's DAV filesystem and Gnome VFS support for DAV.
|
19
|
+
#
|
20
|
+
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
|
21
|
+
BrowserMatch "MS FrontPage" redirect-carefully
|
22
|
+
BrowserMatch "^WebDrive" redirect-carefully
|
23
|
+
BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
|
24
|
+
BrowserMatch "^gnome-vfs/1.0" redirect-carefully
|
25
|
+
BrowserMatch "^XML Spy" redirect-carefully
|
26
|
+
BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully
|
27
|
+
|
28
|
+
</IfModule>
|