~ubuntu-branches/debian/sid/erlang/sid

« back to all changes in this revision

Viewing changes to lib/inets/test/old_httpd_SUITE_data/server_root/conf/httpd.conf

  • Committer: Package Import Robot
  • Author(s): Sergei Golovan
  • Date: 2014-01-27 21:46:45 UTC
  • mfrom: (1.3.8)
  • Revision ID: package-import@ubuntu.com-20140127214645-09fbj21hujxxs0sr
Tags: 1:16.b.3.1-dfsg-1
* New upstream bugfix release.
* Removed lib/common_test/priv/*.js from the source because they are
  minified Javascript files without source. Also, added libjs-jquery and
  libjs-jquery-tablesorter to the erlang-common-test dependencies
  (closes: #735896).
* Bumped standards version to 3.9.5.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# %CopyrightBegin%
 
3
 
4
# Copyright Ericsson AB 1997-2011. All Rights Reserved.
 
5
 
6
# The contents of this file are subject to the Erlang Public License,
 
7
# Version 1.1, (the "License"); you may not use this file except in
 
8
# compliance with the License. You should have received a copy of the
 
9
# Erlang Public License along with this software. If not, it can be
 
10
# retrieved online at http://www.erlang.org/.
 
11
 
12
# Software distributed under the License is distributed on an "AS IS"
 
13
# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
 
14
# the License for the specific language governing rights and limitations
 
15
# under the License.
 
16
 
17
# %CopyrightEnd%
 
18
#
 
19
#
 
20
 
 
21
# Port: The port the standalone listens to. For ports < 1023, you will
 
22
# need httpd to be run as root initially.
 
23
 
 
24
Port 8888
 
25
 
 
26
# BindAddress: This directive is used to tell the server which IP address
 
27
# to listen to. It can either contain "*", an IP address, or a fully
 
28
# qualified Internet domain name.
 
29
 
30
# It is also possible to specify the ip-family with the directive.
 
31
# There ar three possible value: inet, inet6 and inet6fb4
 
32
# inet:     Use IpFamily inet when retreiving the address and
 
33
#           fail if that does not work.
 
34
# inet6:    Use IpFamily inet6 when retreiving the address and
 
35
#           fail if that does not work.
 
36
# inet6fb4: First IpFamily inet6 is tried and if that does not work, 
 
37
#           inet is used as fallback. 
 
38
# Default value for ip-family is inet6fb4
 
39
 
40
# The syntax is: <address>[|<ip-family>]
 
41
#
 
42
#BindAddress *
 
43
#BindAddress *|inet
 
44
 
 
45
 
 
46
# ServerName allows you to set a host name which is sent back to clients for
 
47
# your server if it's different than the one the program would get (i.e. use
 
48
# "www" instead of the host's real name).
 
49
#
 
50
# Note: You cannot just invent host names and hope they work. The name you 
 
51
# define here must be a valid DNS name for your host. If you don't understand
 
52
# this, ask your network administrator.
 
53
 
 
54
#ServerName your.server.net
 
55
 
 
56
# SocketType is either ip_comm, sockets or ssl.
 
57
 
 
58
SocketType ip_comm
 
59
 
 
60
# Modules: Server run-time plug-in modules written using the Erlang
 
61
# Web Server API (EWSAPI). The server API make it easy to add functionality
 
62
# to the server. Read more about EWSAPI in the Reference Manual.
 
63
# WARNING! Do not tamper with this directive unless you are familiar with
 
64
# EWSAPI.
 
65
 
 
66
Modules mod_alias mod_auth mod_esi mod_actions mod_cgi mod_responsecontrol mod_trace mod_range mod_head mod_include mod_dir mod_get mod_log mod_disk_log
 
67
 
 
68
# ServerAdmin: Your address, where problems with the server should be
 
69
# e-mailed.
 
70
 
 
71
ServerAdmin jocke@erix.ericsson.se
 
72
 
 
73
# ServerRoot: The directory the server's config, error, and log files
 
74
# are kept in
 
75
 
 
76
ServerRoot /var/tmp/server_root
 
77
 
 
78
# ErrorLog: The location of the error log file. If this does not start
 
79
# with /, ServerRoot is prepended to it.
 
80
 
 
81
ErrorLog logs/error_log
 
82
 
 
83
# TransferLog: The location of the transfer log file. If this does not
 
84
# start with /, ServerRoot is prepended to it.
 
85
 
 
86
TransferLog logs/access_log
 
87
 
 
88
# SecurityLog: The location of the security log file (mod_security required)
 
89
#
 
90
SecurityLog logs/security_log
 
91
 
 
92
# ErrorDiskLog: The location of the error log file. If this does not
 
93
# start with /, ServerRoot is prepended to it. This log file is managed
 
94
# with the disk_log module [See disk_log(3)]. The ErrorDiskLogSize directive
 
95
# takes two argument, i.e. MaxBytes and MaxFiles. The wrap log writes at most
 
96
# MaxBytes bytes on each file, and it uses MaxFiles files before it wraps, and
 
97
# truncates the first file.
 
98
 
 
99
ErrorDiskLog logs/error_disk_log
 
100
ErrorDiskLogSize 200000 10
 
101
 
 
102
# TransferDiskLog: The location of the transfer log file. If this does not
 
103
# start with /, ServerRoot is prepended to it. This log file is managed
 
104
# with the disk_log module [See disk_log(3)]. The TransferDiskLogSize directive
 
105
# takes two argument, i.e. MaxBytes and MaxFiles. The wrap log writes at most
 
106
# MaxBytes bytes on each file, and it uses MaxFiles files before it wraps, and
 
107
# truncates the first file.
 
108
 
 
109
TransferDiskLog logs/access_disk_log
 
110
TransferDiskLogSize 200000 10
 
111
 
 
112
# SecurityDiskLog: The location of the security log file. If this does not
 
113
# start with /, ServerRoot is prepended to it. This log file is managed
 
114
# with the disk_log module [See disk_log(3)]. The SecurityDiskLogSize directive
 
115
# takes two argument, i.e. MaxBytes and MaxFiles. The wrap log writes at most
 
116
# MaxBytes bytes on each file, and it uses MaxFiles files before it wraps, and
 
117
# truncates the first file.
 
118
 
 
119
SecurityDiskLog logs/security_disk_log
 
120
SecurityDiskLogSize 200000 10
 
121
 
 
122
# Limit on total number of servers running, i.e., limit on the number
 
123
# of clients who can simultaneously connect --- if this limit is ever
 
124
# reached, clients will be LOCKED OUT, so it should NOT BE SET TOO LOW.
 
125
# It is intended mainly as a brake to keep a runaway server from taking
 
126
# the server with it as it spirals down...
 
127
 
 
128
MaxClients 50
 
129
 
 
130
# KeepAlive set the flag for persistent connections. For peristent connections
 
131
# set KeepAlive to on. To use One request per connection set the flag to off
 
132
# Note: The value has changed since previous version of INETS.
 
133
KeepAlive on
 
134
 
 
135
# KeepAliveTimeout sets the number of seconds before a persistent connection
 
136
# times out and closes.
 
137
KeepAliveTimeout 10
 
138
 
 
139
# MaxKeepAliveRequests sets the number of seconds before a persistent connection
 
140
# times out and closes.
 
141
MaxKeepAliveRequests 10
 
142
 
 
143
 
 
144
 
 
145
# DocumentRoot: The directory out of which you will serve your
 
146
# documents. By default, all requests are taken from this directory, but
 
147
# symbolic links and aliases may be used to point to other locations.
 
148
 
 
149
DocumentRoot /var/tmp/server_root/htdocs
 
150
 
 
151
# DirectoryIndex: Name of the file or files to use as a pre-written HTML
 
152
# directory index.  Separate multiple entries with spaces.
 
153
 
 
154
DirectoryIndex index.html welcome.html
 
155
 
 
156
# DefaultType is the default MIME type for documents which the server
 
157
# cannot find the type of from filename extensions.
 
158
 
 
159
DefaultType text/plain
 
160
 
 
161
# Aliases: Add here as many aliases as you need (with no limit). The format is 
 
162
# Alias fakename realname
 
163
 
 
164
Alias /icons/ /var/tmp/server_root/icons/
 
165
Alias /pics/ /var/tmp/server_root/icons/
 
166
 
 
167
# ScriptAlias: This controls which directories contain server scripts.
 
168
# Format: ScriptAlias fakename realname
 
169
 
 
170
ScriptAlias /cgi-bin/ /var/tmp/server_root/cgi-bin/
 
171
ScriptAlias /htbin/ /var/tmp/server_root/cgi-bin/
 
172
 
 
173
# This directive adds an action, which will activate cgi-script when a
 
174
# file is requested using the method of method, which can be one of
 
175
# GET, POST and HEAD. It sends the URL and file path of the requested
 
176
# document using the standard CGI PATH_INFO and PATH_TRANSLATED
 
177
# environment variables.
 
178
 
 
179
#Script HEAD /cgi-bin/printenv.sh
 
180
 
 
181
# This directive adds an action, which will activate cgi-script when a
 
182
# file of content type mime-type is requested. It sends the URL and
 
183
# file path of the requested document using the standard CGI PATH_INFO
 
184
# and PATH_TRANSLATED environment variables.
 
185
 
 
186
#Action image/gif /cgi-bin/printenv.sh
 
187
 
 
188
# ErlScriptAlias: This specifies how "Erl" server scripts are called.
 
189
# Format: ErlScriptAlias fakename realname allowed_modules
 
190
 
 
191
ErlScriptAlias /down/erl httpd_example io
 
192
 
 
193
# EvalScriptAlias: This specifies how "Eval" server scripts are called.
 
194
# Format: EvalScriptAlias fakename realname allowed_modules
 
195
 
 
196
EvalScriptAlias /eval httpd_example io
 
197
 
 
198
# Point SSLCertificateFile at a PEM encoded certificate.
 
199
 
 
200
SSLCertificateFile /var/tmp/server_root/ssl/ssl_server.pem
 
201
 
 
202
# If the key is not combined with the certificate, use this directive to
 
203
# point at the key file.
 
204
 
 
205
SSLCertificateKeyFile /var/tmp/server_root/ssl/ssl_server.pem
 
206
 
 
207
# Set SSLVerifyClient to:
 
208
# 0 if no certicate is required
 
209
# 1 if the client may present a valid certificate
 
210
# 2 if the client must present a valid certificate
 
211
# 3 if the client may present a valid certificate but it is not required to
 
212
#   have a valid CA
 
213
 
 
214
SSLVerifyClient 0
 
215
 
 
216
# Each directory to which INETS has access, can be configured with respect
 
217
# to which services and features are allowed and/or disabled in that
 
218
# directory (and its subdirectories). 
 
219
 
 
220
<Directory /var/tmp/server_root/htdocs/open>
 
221
AuthDBType plain
 
222
AuthName Open Area
 
223
AuthUserFile /var/tmp/server_root/auth/passwd
 
224
AuthGroupFile /var/tmp/server_root/auth/group
 
225
require user one Aladdin
 
226
</Directory>
 
227
 
 
228
<Directory /var/tmp/server_root/htdocs/secret>
 
229
AuthDBType plain
 
230
AuthName Secret Area
 
231
AuthUserFile /var/tmp/server_root/auth/passwd
 
232
AuthGroupFile /var/tmp/server_root/auth/group
 
233
require group group1 group2
 
234
</Directory>
 
235
 
 
236
<Directory /var/tmp/server_root/htdocs/secret/top_secret>
 
237
AuthDBType plain
 
238
AuthName Top Secret Area
 
239
AuthUserFile /var/tmp/server_root/auth/passwd
 
240
AuthGroupFile /var/tmp/server_root/auth/group
 
241
require group group3
 
242
</Directory>
 
243
 
 
244
<Directory /var/tmp/server_root/htdocs/mnesia_open>
 
245
AuthDBType mnesia
 
246
AuthName Open Area
 
247
require user one Aladdin
 
248
</Directory>
 
249
 
 
250
<Directory /var/tmp/server_root/htdocs/mnesia_secret>
 
251
AuthDBType mnesia
 
252
AuthName Secret Area
 
253
require group group1 group2
 
254
</Directory>
 
255
 
 
256
<Directory /var/tmp/server_root/htdocs/mnesia_secret/top_secret>
 
257
AuthDBType mnesia
 
258
AuthName Top Secret Area
 
259
require group group3
 
260
allow from 130.100.34 130.100.35
 
261
deny from 100.234.22.12 194.100.34.1 130.100.34.25
 
262
SecurityDataFile logs/security_data
 
263
SecurityMaxRetries 3
 
264
SecurityBlockTime 10
 
265
SecurityFailExpireTime 1
 
266
SecurityAuthTimeout 1
 
267
SecurityCallbackModule security_callback
 
268
</Directory>