auser-poolparty 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION.yml +1 -1
- data/bin/cloud-verify +2 -0
- data/bin/install-poolparty +216 -0
- data/lib/poolparty/{aska/aska.rb → aska.rb} +0 -0
- data/lib/poolparty/core/string.rb +11 -0
- data/lib/poolparty/core/symbol.rb +10 -0
- data/lib/poolparty/dependency_resolver/chef_resolver.rb +16 -34
- data/lib/poolparty/dependency_resolver/dependency_resolver_cloud_extensions.rb +4 -4
- data/lib/poolparty/dependency_resolver/puppet_resolver.rb +15 -27
- data/lib/poolparty/lite.rb +1 -1
- data/lib/poolparty/modules/searchable_paths.rb +91 -0
- data/lib/poolparty/net/init.rb +0 -1
- data/lib/poolparty/net/remote_bases.rb +0 -1
- data/lib/poolparty/net/remoter_base.rb +5 -0
- data/lib/poolparty/net/remoter_bases/ec2/ec2.rb +3 -1
- data/lib/poolparty/plugins/apache2/apache.rb +340 -0
- data/lib/poolparty/plugins/rails_deploy.rb +76 -0
- data/lib/poolparty/poolparty/default.rb +1 -0
- data/lib/poolparty/poolparty/plugin.rb +4 -1
- data/lib/poolparty/poolparty/poolparty_base_class.rb +2 -4
- data/lib/poolparty/poolparty/resource.rb +4 -0
- data/lib/poolparty/poolparty/service.rb +8 -0
- data/lib/poolparty/resources/file.rb +3 -3
- data/lib/poolparty/templates/apache2/apache2.conf +14 -0
- data/lib/poolparty/templates/apache2/base.conf.erb +168 -0
- data/lib/poolparty/templates/apache2/browser_fixes.conf.erb +26 -0
- data/lib/poolparty/templates/apache2/debian.conf.erb +675 -0
- data/lib/poolparty/templates/apache2/default-site.conf.erb +41 -0
- data/lib/poolparty/templates/apache2/directory_indexes.conf.erb +101 -0
- data/lib/poolparty/templates/apache2/logging-syslog.conf.erb +42 -0
- data/lib/poolparty/templates/apache2/mime-extras.conf.erb +211 -0
- data/lib/poolparty/templates/apache2/mime-minimal.conf.erb +15 -0
- data/lib/poolparty/templates/apache2/mpm-worker.conf.erb +20 -0
- data/lib/poolparty/templates/apache2/mpm-worker.erb +20 -0
- data/lib/poolparty/templates/apache2/passenger.conf.erb +20 -0
- data/lib/poolparty/templates/apache2/php.ini.erb +1253 -0
- data/lib/poolparty/templates/apache2/server-status.erb +19 -0
- data/lib/poolparty/verification/verifiers/http_match.rb +43 -0
- data/lib/poolparty/verification/verifiers/http_status.rb +59 -0
- data/lib/poolparty/verification/verifiers/ping.rb +13 -1
- data/lib/poolparty.rb +1 -1
- data/lib/poolpartycl.rb +51 -0
- data/spec/poolparty/dependency_resolver/dependency_resolver_cloud_extensions_spec.rb +5 -11
- data/spec/poolparty/modules/searchable_paths_spec.rb +76 -0
- data/spec/poolparty/plugins/git_spec.rb +4 -3
- data/spec/poolparty/poolparty/cloud_spec.rb +3 -19
- data/spec/poolparty/resources/file_spec.rb +1 -0
- data/spec/poolparty/resources/service_spec.rb +1 -1
- data/test/poolparty/dependency_resolver/puppet_resolver_test.rb +5 -11
- data/test/poolparty/poolparty/poolparty_base_class_test.rb +1 -1
- metadata +27 -7
- data/lib/poolparty/plugins/apache2.rb +0 -53
- data/lib/poolparty/plugins/dynomite.rb +0 -14
- data/lib/poolparty/plugins/tokyo_tyrant.rb +0 -23
@@ -0,0 +1,41 @@
|
|
1
|
+
<VirtualHost *:<%= @node[:poolparty][:port] %>>
|
2
|
+
ServerAdmin webmaster@localhost
|
3
|
+
|
4
|
+
DocumentRoot /var/www
|
5
|
+
<Directory />
|
6
|
+
Options FollowSymLinks
|
7
|
+
AllowOverride None
|
8
|
+
</Directory>
|
9
|
+
<Directory /var/www/>
|
10
|
+
Options Indexes FollowSymLinks MultiViews
|
11
|
+
AllowOverride None
|
12
|
+
Order allow,deny
|
13
|
+
allow from all
|
14
|
+
</Directory>
|
15
|
+
|
16
|
+
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
|
17
|
+
<Directory "/usr/lib/cgi-bin">
|
18
|
+
AllowOverride None
|
19
|
+
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
|
20
|
+
Order allow,deny
|
21
|
+
Allow from all
|
22
|
+
</Directory>
|
23
|
+
|
24
|
+
ErrorLog /var/log/apache2/error.log
|
25
|
+
|
26
|
+
# Possible values include: debug, info, notice, warn, error, crit,
|
27
|
+
# alert, emerg.
|
28
|
+
LogLevel warn
|
29
|
+
|
30
|
+
CustomLog /var/log/apache2/access.log combined
|
31
|
+
|
32
|
+
Alias /doc/ "/usr/share/doc/"
|
33
|
+
<Directory "/usr/share/doc/">
|
34
|
+
Options Indexes MultiViews FollowSymLinks
|
35
|
+
AllowOverride None
|
36
|
+
Order deny,allow
|
37
|
+
Deny from all
|
38
|
+
Allow from 127.0.0.0/255.0.0.0 ::1/128
|
39
|
+
</Directory>
|
40
|
+
|
41
|
+
</VirtualHost>
|
@@ -0,0 +1,101 @@
|
|
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/ "/usr/share/apache2/icons/"
|
16
|
+
|
17
|
+
<Directory "/usr/share/apache2/icons">
|
18
|
+
Options Indexes MultiViews
|
19
|
+
AllowOverride None
|
20
|
+
Order allow,deny
|
21
|
+
Allow from all
|
22
|
+
</Directory>
|
23
|
+
|
24
|
+
</IfModule>
|
25
|
+
|
26
|
+
#
|
27
|
+
# Directives controlling the display of server-generated directory listings.
|
28
|
+
#
|
29
|
+
<IfModule mod_autoindex.c>
|
30
|
+
|
31
|
+
#
|
32
|
+
# IndexOptions: Controls the appearance of server-generated directory
|
33
|
+
# listings.
|
34
|
+
#
|
35
|
+
IndexOptions FancyIndexing VersionSort HTMLTable NameWidth=*
|
36
|
+
|
37
|
+
#
|
38
|
+
# AddIcon* directives tell the server which icon to show for different
|
39
|
+
# files or filename extensions. These are only displayed for
|
40
|
+
# FancyIndexed directories.
|
41
|
+
#
|
42
|
+
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
|
43
|
+
|
44
|
+
AddIconByType (TXT,/icons/text.gif) text/*
|
45
|
+
AddIconByType (IMG,/icons/image2.gif) image/*
|
46
|
+
AddIconByType (SND,/icons/sound2.gif) audio/*
|
47
|
+
AddIconByType (VID,/icons/movie.gif) video/*
|
48
|
+
|
49
|
+
AddIcon /icons/binary.gif .bin .exe
|
50
|
+
AddIcon /icons/binhex.gif .hqx
|
51
|
+
AddIcon /icons/tar.gif .tar
|
52
|
+
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
|
53
|
+
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
|
54
|
+
AddIcon /icons/a.gif .ps .ai .eps
|
55
|
+
AddIcon /icons/layout.gif .html .shtml .htm .pdf
|
56
|
+
AddIcon /icons/text.gif .txt
|
57
|
+
AddIcon /icons/c.gif .c
|
58
|
+
AddIcon /icons/p.gif .pl .py
|
59
|
+
AddIcon /icons/f.gif .for
|
60
|
+
AddIcon /icons/dvi.gif .dvi
|
61
|
+
AddIcon /icons/uuencoded.gif .uu
|
62
|
+
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
|
63
|
+
AddIcon /icons/tex.gif .tex
|
64
|
+
AddIcon /icons/bomb.gif core
|
65
|
+
|
66
|
+
AddIcon /icons/back.gif ..
|
67
|
+
AddIcon /icons/hand.right.gif README
|
68
|
+
AddIcon /icons/folder.gif ^^DIRECTORY^^
|
69
|
+
AddIcon /icons/blank.gif ^^BLANKICON^^
|
70
|
+
|
71
|
+
#
|
72
|
+
# DefaultIcon is which icon to show for files which do not have an icon
|
73
|
+
# explicitly set.
|
74
|
+
#
|
75
|
+
DefaultIcon /icons/unknown.gif
|
76
|
+
|
77
|
+
#
|
78
|
+
# AddDescription allows you to place a short description after a file in
|
79
|
+
# server-generated indexes. These are only displayed for FancyIndexed
|
80
|
+
# directories.
|
81
|
+
# Format: AddDescription "description" filename
|
82
|
+
#
|
83
|
+
#AddDescription "GZIP compressed document" .gz
|
84
|
+
#AddDescription "tar archive" .tar
|
85
|
+
#AddDescription "GZIP compressed tar archive" .tgz
|
86
|
+
|
87
|
+
#
|
88
|
+
# ReadmeName is the name of the README file the server will look for by
|
89
|
+
# default, and append to directory listings.
|
90
|
+
#
|
91
|
+
# HeaderName is the name of a file which should be prepended to
|
92
|
+
# directory indexes.
|
93
|
+
ReadmeName README.html
|
94
|
+
HeaderName HEADER.html
|
95
|
+
|
96
|
+
#
|
97
|
+
# IndexIgnore is a set of filenames which directory indexing should ignore
|
98
|
+
# and not include in the listing. Shell-style wildcarding is permitted.
|
99
|
+
#
|
100
|
+
IndexIgnore .??* *~ *# RCS CVS *,v *,t
|
101
|
+
</IfModule>
|
@@ -0,0 +1,42 @@
|
|
1
|
+
#
|
2
|
+
# LogLevel: Control the number of messages logged to the error_log.
|
3
|
+
# Possible values include: debug, info, notice, warn, error, crit,
|
4
|
+
# alert, emerg.
|
5
|
+
#
|
6
|
+
LogLevel warn
|
7
|
+
|
8
|
+
#
|
9
|
+
# ErrorLog: The location of the error log file.
|
10
|
+
# If you do not specify an ErrorLog directive within a <VirtualHost>
|
11
|
+
# container, error messages relating to that virtual host will be
|
12
|
+
# logged here. If you *do* define an error logfile for a <VirtualHost>
|
13
|
+
# container, that host's errors will be logged there and not here.
|
14
|
+
#
|
15
|
+
ErrorLog syslog:local7
|
16
|
+
|
17
|
+
#
|
18
|
+
# The following directives define some format nicknames for use with
|
19
|
+
# a CustomLog directive (see below).
|
20
|
+
#
|
21
|
+
# NOTE: using %a instead of %h seems to save a full DNS lookup for every
|
22
|
+
# connection...
|
23
|
+
#
|
24
|
+
LogFormat "%a %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
|
25
|
+
LogFormat "%a %l %u %t \"%r\" %>s %b" common
|
26
|
+
LogFormat "%{Referer}i -> %U" referer
|
27
|
+
LogFormat "%{User-agent}i" agent
|
28
|
+
|
29
|
+
#
|
30
|
+
# This will send the access log messages to syslog
|
31
|
+
#
|
32
|
+
CustomLog "|/usr/bin/logger -p local7.info -t apache" combined
|
33
|
+
|
34
|
+
#
|
35
|
+
# The BufferedLogs directive causes mod_log_config to store several log
|
36
|
+
# entries in memory and write them together to disk, rather than writing
|
37
|
+
# them after each request. On some systems, this may result in more
|
38
|
+
# efficient disk access and hence higher performance. It may be set only
|
39
|
+
# once for the entire server; it cannot be configured per virtual-host.
|
40
|
+
# This directive is experimental and should be used with caution.
|
41
|
+
|
42
|
+
BufferedLogs On
|
@@ -0,0 +1,211 @@
|
|
1
|
+
<IfModule mod_mime.c>
|
2
|
+
#
|
3
|
+
# AddType allows you to add to or override the MIME configuration
|
4
|
+
# file mime.types for specific file types.
|
5
|
+
#
|
6
|
+
#AddType application/x-gzip .tgz
|
7
|
+
#
|
8
|
+
# AddEncoding allows you to have certain browsers uncompress
|
9
|
+
# information on the fly. Note: Not all browsers support this.
|
10
|
+
# Despite the name similarity, the following Add* directives have
|
11
|
+
# nothing to do with the FancyIndexing customization directives above.
|
12
|
+
#
|
13
|
+
#AddEncoding x-compress .Z
|
14
|
+
#AddEncoding x-gzip .gz .tgz
|
15
|
+
#
|
16
|
+
# If the AddEncoding directives above are commented-out, then you
|
17
|
+
# probably should define those extensions to indicate media types:
|
18
|
+
#
|
19
|
+
AddType application/x-compress .Z
|
20
|
+
AddType application/x-gzip .gz .tgz
|
21
|
+
|
22
|
+
#
|
23
|
+
# DefaultLanguage and AddLanguage allows you to specify the language of
|
24
|
+
# a document. You can then use content negotiation to give a browser a
|
25
|
+
# file in a language the user can understand.
|
26
|
+
#
|
27
|
+
# Specify a default language. This means that all data
|
28
|
+
# going out without a specific language tag (see below) will
|
29
|
+
# be marked with this one. You probably do NOT want to set
|
30
|
+
# this unless you are sure it is correct for all cases.
|
31
|
+
#
|
32
|
+
# * It is generally better to not mark a page as
|
33
|
+
# * being a certain language than marking it with the wrong
|
34
|
+
# * language!
|
35
|
+
#
|
36
|
+
# DefaultLanguage nl
|
37
|
+
#
|
38
|
+
# Note 1: The suffix does not have to be the same as the language
|
39
|
+
# keyword --- those with documents in Polish (whose net-standard
|
40
|
+
# language code is pl) may wish to use "AddLanguage pl .po" to
|
41
|
+
# avoid the ambiguity with the common suffix for perl scripts.
|
42
|
+
#
|
43
|
+
# Note 2: The example entries below illustrate that in some cases
|
44
|
+
# the two character 'Language' abbreviation is not identical to
|
45
|
+
# the two character 'Country' code for its country,
|
46
|
+
# E.g. 'Danmark/dk' versus 'Danish/da'.
|
47
|
+
#
|
48
|
+
# Note 3: In the case of 'ltz' we violate the RFC by using a three char
|
49
|
+
# specifier. There is 'work in progress' to fix this and get
|
50
|
+
# the reference data for rfc1766 cleaned up.
|
51
|
+
#
|
52
|
+
# Catalan (ca) - Croatian (hr) - Czech (cs) - Danish (da) - Dutch (nl)
|
53
|
+
# English (en) - Esperanto (eo) - Estonian (et) - French (fr) - German (de)
|
54
|
+
# Greek-Modern (el) - Hebrew (he) - Italian (it) - Japanese (ja)
|
55
|
+
# Korean (ko) - Luxembourgeois* (ltz) - Norwegian Nynorsk (nn)
|
56
|
+
# Norwegian (no) - Polish (pl) - Portugese (pt)
|
57
|
+
# Brazilian Portuguese (pt-BR) - Russian (ru) - Swedish (sv)
|
58
|
+
# Simplified Chinese (zh-CN) - Spanish (es) - Traditional Chinese (zh-TW)
|
59
|
+
#
|
60
|
+
# AddLanguage ca .ca
|
61
|
+
# AddLanguage cs .cz .cs
|
62
|
+
# AddLanguage da .dk
|
63
|
+
# AddLanguage de .de
|
64
|
+
# AddLanguage el .el
|
65
|
+
# AddLanguage en .en
|
66
|
+
# AddLanguage eo .eo
|
67
|
+
# AddLanguage es .es
|
68
|
+
# AddLanguage et .et
|
69
|
+
# AddLanguage fr .fr
|
70
|
+
# AddLanguage he .he
|
71
|
+
# AddLanguage hr .hr
|
72
|
+
# AddLanguage it .it
|
73
|
+
# AddLanguage ja .ja
|
74
|
+
# AddLanguage ko .ko
|
75
|
+
# AddLanguage ltz .ltz
|
76
|
+
# AddLanguage nl .nl
|
77
|
+
# AddLanguage nn .nn
|
78
|
+
# AddLanguage no .no
|
79
|
+
# AddLanguage pl .po
|
80
|
+
# AddLanguage pt .pt
|
81
|
+
# AddLanguage pt-BR .pt-br
|
82
|
+
# AddLanguage ru .ru
|
83
|
+
# AddLanguage sv .sv
|
84
|
+
# AddLanguage zh-CN .zh-cn
|
85
|
+
# AddLanguage zh-TW .zh-tw
|
86
|
+
</IfModule>
|
87
|
+
|
88
|
+
<IfModule mod_negotiation.c>
|
89
|
+
#
|
90
|
+
# LanguagePriority allows you to give precedence to some languages
|
91
|
+
# in case of a tie during content negotiation.
|
92
|
+
#
|
93
|
+
# Just list the languages in decreasing order of preference. We have
|
94
|
+
# more or less alphabetized them here. You probably want to change this.
|
95
|
+
#
|
96
|
+
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
|
97
|
+
|
98
|
+
#
|
99
|
+
# ForceLanguagePriority allows you to serve a result page rather than
|
100
|
+
# MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback)
|
101
|
+
# [in case no accepted languages matched the available variants]
|
102
|
+
#
|
103
|
+
ForceLanguagePriority Prefer Fallback
|
104
|
+
|
105
|
+
</IfModule>
|
106
|
+
|
107
|
+
<IfModule mod_mime.c>
|
108
|
+
#
|
109
|
+
# Specify a default charset for all pages sent out. This is
|
110
|
+
# always a good idea and opens the door for future internationalisation
|
111
|
+
# of your web site, should you ever want it. Specifying it as
|
112
|
+
# a default does little harm; as the standard dictates that a page
|
113
|
+
# is in iso-8859-1 (latin1) unless specified otherwise i.e. you
|
114
|
+
# are merely stating the obvious. There are also some security
|
115
|
+
# reasons in browsers, related to javascript and URL parsing
|
116
|
+
# which encourage you to always set a default char set.
|
117
|
+
#
|
118
|
+
#AddDefaultCharset ISO-8859-1
|
119
|
+
|
120
|
+
#
|
121
|
+
# Commonly used filename extensions to character sets. You probably
|
122
|
+
# want to avoid clashes with the language extensions, unless you
|
123
|
+
# are good at carefully testing your setup after each change.
|
124
|
+
# See http://www.iana.org/assignments/character-sets for the
|
125
|
+
# official list of charset names and their respective RFCs.
|
126
|
+
#
|
127
|
+
AddCharset us-ascii .ascii .us-ascii
|
128
|
+
AddCharset ISO-8859-1 .iso8859-1 .latin1
|
129
|
+
AddCharset ISO-8859-2 .iso8859-2 .latin2 .cen
|
130
|
+
AddCharset ISO-8859-3 .iso8859-3 .latin3
|
131
|
+
AddCharset ISO-8859-4 .iso8859-4 .latin4
|
132
|
+
AddCharset ISO-8859-5 .iso8859-5 .cyr .iso-ru
|
133
|
+
AddCharset ISO-8859-6 .iso8859-6 .arb .arabic
|
134
|
+
AddCharset ISO-8859-7 .iso8859-7 .grk .greek
|
135
|
+
AddCharset ISO-8859-8 .iso8859-8 .heb .hebrew
|
136
|
+
AddCharset ISO-8859-9 .iso8859-9 .latin5 .trk
|
137
|
+
AddCharset ISO-8859-10 .iso8859-10 .latin6
|
138
|
+
AddCharset ISO-8859-13 .iso8859-13
|
139
|
+
AddCharset ISO-8859-14 .iso8859-14 .latin8
|
140
|
+
AddCharset ISO-8859-15 .iso8859-15 .latin9
|
141
|
+
AddCharset ISO-8859-16 .iso8859-16 .latin10
|
142
|
+
AddCharset ISO-2022-JP .iso2022-jp .jis
|
143
|
+
AddCharset ISO-2022-KR .iso2022-kr .kis
|
144
|
+
AddCharset ISO-2022-CN .iso2022-cn .cis
|
145
|
+
AddCharset Big5 .Big5 .big5 .b5
|
146
|
+
AddCharset cn-Big5 .cn-big5
|
147
|
+
# For russian, more than one charset is used (depends on client, mostly):
|
148
|
+
AddCharset WINDOWS-1251 .cp-1251 .win-1251
|
149
|
+
AddCharset CP866 .cp866
|
150
|
+
AddCharset KOI8 .koi8
|
151
|
+
AddCharset KOI8-E .koi8-e
|
152
|
+
AddCharset KOI8-r .koi8-r .koi8-ru
|
153
|
+
AddCharset KOI8-U .koi8-u
|
154
|
+
AddCharset KOI8-ru .koi8-uk .ua
|
155
|
+
AddCharset ISO-10646-UCS-2 .ucs2
|
156
|
+
AddCharset ISO-10646-UCS-4 .ucs4
|
157
|
+
AddCharset UTF-7 .utf7
|
158
|
+
AddCharset UTF-8 .utf8
|
159
|
+
AddCharset UTF-16 .utf16
|
160
|
+
AddCharset UTF-16BE .utf16be
|
161
|
+
AddCharset UTF-16LE .utf16le
|
162
|
+
AddCharset UTF-32 .utf32
|
163
|
+
AddCharset UTF-32BE .utf32be
|
164
|
+
AddCharset UTF-32LE .utf32le
|
165
|
+
AddCharset euc-cn .euc-cn
|
166
|
+
AddCharset euc-gb .euc-gb
|
167
|
+
AddCharset euc-jp .euc-jp
|
168
|
+
AddCharset euc-kr .euc-kr
|
169
|
+
#Not sure how euc-tw got in - IANA doesn't list it???
|
170
|
+
AddCharset EUC-TW .euc-tw
|
171
|
+
AddCharset gb2312 .gb2312 .gb
|
172
|
+
AddCharset iso-10646-ucs-2 .ucs-2 .iso-10646-ucs-2
|
173
|
+
AddCharset iso-10646-ucs-4 .ucs-4 .iso-10646-ucs-4
|
174
|
+
AddCharset shift_jis .shift_jis .sjis
|
175
|
+
|
176
|
+
#
|
177
|
+
# AddHandler allows you to map certain file extensions to "handlers":
|
178
|
+
# actions unrelated to filetype. These can be either built into the server
|
179
|
+
# or added with the Action directive (see below)
|
180
|
+
#
|
181
|
+
# To use CGI scripts outside of ScriptAliased directories:
|
182
|
+
# (You will also need to add "ExecCGI" to the "Options" directive.)
|
183
|
+
#
|
184
|
+
#AddHandler cgi-script .cgi
|
185
|
+
|
186
|
+
#
|
187
|
+
# For files that include their own HTTP headers:
|
188
|
+
#
|
189
|
+
#AddHandler send-as-is asis
|
190
|
+
|
191
|
+
#
|
192
|
+
# For server-parsed imagemap files:
|
193
|
+
#
|
194
|
+
#AddHandler imap-file map
|
195
|
+
|
196
|
+
#
|
197
|
+
# For type maps (negotiated resources):
|
198
|
+
# (This is enabled by default to allow the Apache "It Worked" page
|
199
|
+
# to be distributed in multiple languages.)
|
200
|
+
#
|
201
|
+
AddHandler type-map var
|
202
|
+
|
203
|
+
#
|
204
|
+
# Filters allow you to process content before it is sent to the client.
|
205
|
+
#
|
206
|
+
# To parse .shtml files for server-side includes (SSI):
|
207
|
+
# (You will also need to add "Includes" to the "Options" directive.)
|
208
|
+
#
|
209
|
+
AddType text/html .shtml
|
210
|
+
AddOutputFilter INCLUDES .shtml
|
211
|
+
</IfModule>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# this is a very minimal mime configuration -- in particular, all
|
2
|
+
# of the magical language/negotiation stuff that apache can do.
|
3
|
+
# has been stripped out, because we don't use apache for that.
|
4
|
+
|
5
|
+
<IfModule mod_mime.c>
|
6
|
+
|
7
|
+
# Lookup mime types in the system-wide mime.types file first
|
8
|
+
TypesConfig /etc/mime.types
|
9
|
+
|
10
|
+
# for firefox extensions:
|
11
|
+
# this is in more recent mime.types files (feisty) but not older ones
|
12
|
+
# (sarge). explicitly include it just to be safe.
|
13
|
+
AddType application/x-xpinstall .xpi
|
14
|
+
|
15
|
+
</IfModule>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
##
|
2
|
+
## Server-Pool Size Regulation (MPM specific)
|
3
|
+
##
|
4
|
+
|
5
|
+
# worker MPM
|
6
|
+
# StartServers: initial number of server processes to start
|
7
|
+
# MaxClients: maximum number of simultaneous client connections
|
8
|
+
# MinSpareThreads: minimum number of worker threads which are kept spare
|
9
|
+
# MaxSpareThreads: maximum number of worker threads which are kept spare
|
10
|
+
# ThreadsPerChild: constant number of worker threads in each server process
|
11
|
+
# MaxRequestsPerChild: maximum number of requests a server process serves
|
12
|
+
<IfModule mpm_worker_module>
|
13
|
+
StartServers 5
|
14
|
+
MaxClients 300
|
15
|
+
MinSpareThreads 25
|
16
|
+
MaxSpareThreads 75
|
17
|
+
ThreadsPerChild 25
|
18
|
+
MaxRequestsPerChild 0
|
19
|
+
</IfModule>
|
20
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
##
|
2
|
+
## Server-Pool Size Regulation (MPM specific)
|
3
|
+
##
|
4
|
+
|
5
|
+
# worker MPM
|
6
|
+
# StartServers: initial number of server processes to start
|
7
|
+
# MaxClients: maximum number of simultaneous client connections
|
8
|
+
# MinSpareThreads: minimum number of worker threads which are kept spare
|
9
|
+
# MaxSpareThreads: maximum number of worker threads which are kept spare
|
10
|
+
# ThreadsPerChild: constant number of worker threads in each server process
|
11
|
+
# MaxRequestsPerChild: maximum number of requests a server process serves
|
12
|
+
<IfModule mpm_worker_module>
|
13
|
+
StartServers 2
|
14
|
+
MaxClients 500
|
15
|
+
MinSpareThreads 25
|
16
|
+
MaxSpareThreads 75
|
17
|
+
ThreadsPerChild 25
|
18
|
+
MaxRequestsPerChild 0
|
19
|
+
</IfModule>
|
20
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
Listen <%= port %>
|
2
|
+
<VirtualHost *:<%= port %>>
|
3
|
+
ServerName <%= virtualhost_name %>
|
4
|
+
DocumentRoot <%= "/var/www/#{virtualhost_name}/public" %>
|
5
|
+
</VirtualHost>
|
6
|
+
|
7
|
+
<% if ssl_enabled == "true" %>
|
8
|
+
Listen 443
|
9
|
+
NameVirtualHost *:443
|
10
|
+
<VirtualHost *:443>
|
11
|
+
ServerName <%= virtualhost_name %>
|
12
|
+
DocumentRoot /var/www/<%= virtualhost_name -%>/public
|
13
|
+
ErrorLog /var/www/<%= virtualhost_name -%>/log/error_log
|
14
|
+
CustomLog /var/www/<%= virtualhost_name -%>/log/access_log common
|
15
|
+
SSLEngine on
|
16
|
+
SSLOptions +StrictRequire
|
17
|
+
SSLCertificateFile <%= ssl_cert_file %>
|
18
|
+
SSLCertificateKeyFile <%= ssl_private_key_file %>
|
19
|
+
</VirtualHost>
|
20
|
+
<% end %>
|