4
# Copyright Ericsson AB 1997-2011. All Rights Reserved.
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/.
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
21
# Port: The port the standalone listens to. For ports < 1023, you will
22
# need httpd to be run as root initially.
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.
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
40
# The syntax is: <address>[|<ip-family>]
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).
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.
54
#ServerName your.server.net
56
# SocketType is either ip_comm, sockets or ssl.
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
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
68
# ServerAdmin: Your address, where problems with the server should be
71
ServerAdmin jocke@erix.ericsson.se
73
# ServerRoot: The directory the server's config, error, and log files
76
ServerRoot /var/tmp/server_root
78
# ErrorLog: The location of the error log file. If this does not start
79
# with /, ServerRoot is prepended to it.
81
ErrorLog logs/error_log
83
# TransferLog: The location of the transfer log file. If this does not
84
# start with /, ServerRoot is prepended to it.
86
TransferLog logs/access_log
88
# SecurityLog: The location of the security log file (mod_security required)
90
SecurityLog logs/security_log
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.
99
ErrorDiskLog logs/error_disk_log
100
ErrorDiskLogSize 200000 10
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.
109
TransferDiskLog logs/access_disk_log
110
TransferDiskLogSize 200000 10
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.
119
SecurityDiskLog logs/security_disk_log
120
SecurityDiskLogSize 200000 10
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...
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.
135
# KeepAliveTimeout sets the number of seconds before a persistent connection
136
# times out and closes.
139
# MaxKeepAliveRequests sets the number of seconds before a persistent connection
140
# times out and closes.
141
MaxKeepAliveRequests 10
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.
149
DocumentRoot /var/tmp/server_root/htdocs
151
# DirectoryIndex: Name of the file or files to use as a pre-written HTML
152
# directory index. Separate multiple entries with spaces.
154
DirectoryIndex index.html welcome.html
156
# DefaultType is the default MIME type for documents which the server
157
# cannot find the type of from filename extensions.
159
DefaultType text/plain
161
# Aliases: Add here as many aliases as you need (with no limit). The format is
162
# Alias fakename realname
164
Alias /icons/ /var/tmp/server_root/icons/
165
Alias /pics/ /var/tmp/server_root/icons/
167
# ScriptAlias: This controls which directories contain server scripts.
168
# Format: ScriptAlias fakename realname
170
ScriptAlias /cgi-bin/ /var/tmp/server_root/cgi-bin/
171
ScriptAlias /htbin/ /var/tmp/server_root/cgi-bin/
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.
179
#Script HEAD /cgi-bin/printenv.sh
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.
186
#Action image/gif /cgi-bin/printenv.sh
188
# ErlScriptAlias: This specifies how "Erl" server scripts are called.
189
# Format: ErlScriptAlias fakename realname allowed_modules
191
ErlScriptAlias /down/erl httpd_example io
193
# EvalScriptAlias: This specifies how "Eval" server scripts are called.
194
# Format: EvalScriptAlias fakename realname allowed_modules
196
EvalScriptAlias /eval httpd_example io
198
# Point SSLCertificateFile at a PEM encoded certificate.
200
SSLCertificateFile /var/tmp/server_root/ssl/ssl_server.pem
202
# If the key is not combined with the certificate, use this directive to
203
# point at the key file.
205
SSLCertificateKeyFile /var/tmp/server_root/ssl/ssl_server.pem
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
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).
220
<Directory /var/tmp/server_root/htdocs/open>
223
AuthUserFile /var/tmp/server_root/auth/passwd
224
AuthGroupFile /var/tmp/server_root/auth/group
225
require user one Aladdin
228
<Directory /var/tmp/server_root/htdocs/secret>
231
AuthUserFile /var/tmp/server_root/auth/passwd
232
AuthGroupFile /var/tmp/server_root/auth/group
233
require group group1 group2
236
<Directory /var/tmp/server_root/htdocs/secret/top_secret>
238
AuthName Top Secret Area
239
AuthUserFile /var/tmp/server_root/auth/passwd
240
AuthGroupFile /var/tmp/server_root/auth/group
244
<Directory /var/tmp/server_root/htdocs/mnesia_open>
247
require user one Aladdin
250
<Directory /var/tmp/server_root/htdocs/mnesia_secret>
253
require group group1 group2
256
<Directory /var/tmp/server_root/htdocs/mnesia_secret/top_secret>
258
AuthName Top Secret Area
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
265
SecurityFailExpireTime 1
266
SecurityAuthTimeout 1
267
SecurityCallbackModule security_callback