-
Notifications
You must be signed in to change notification settings - Fork 0
/
AppWeb.conf
393 lines (347 loc) · 9.46 KB
/
AppWeb.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
#
# appweb.conf -- Default Configuration for the Mbedthis AppWeb HTTP Server
#
# This configuration file controls the operation of the AppWeb
# server. The order of configuration directives matters as this
# file is parsed only once. You must put the server root and error
# log definitions first to ensure configuration errors are logged.
#
#
# Root directory for AppWeb to find necessary files and DLLs.
# AppWeb will change directory to this location when it runs.
#
ServerRoot "c:/Program Files/Mbedthis Appweb"
#
# Log all AppWeb errors and trace to this file. This is the error
# file for the whole server including all virtual hosts.
#
ErrorLog "c:/Program Files/Mbedthis Appweb/logs/error.log"
#
# The log level can be a number between 0 and 9 (most verbose level).
#
LogLevel 2
#
# Name of the server to use for redirects and error responses to the
# clients. Uncomment this line and replace it with the public name of your
# server. This host name and port do not get used for listening on
# sockets.
#
ServerName http://localhost:7777
#
# Location for documents for the primary server host. Virtual hosts
# may define their own DocumentRoot directives.
#
DocumentRoot "c:/appweb/web"
#
# Bind AppWeb to listen for incoming requests on this address.
# Formats include (IP, IP:PORT, PORT). If an IP address is omitted,
# AppWeb will listen on all interfaces. If a port is omitted, then
# port 80 is used.
#
Listen 127.0.0.1:7777
#
# This will listen for SSL requests
#
# Listen 4443
#
# Set the thread limit to 0 for single-threaded use
#
ThreadLimit 0
#
# Location of the mime translation file to map content types to
# file extensions.
#
TypesConfig mime.types
#
# DLL / Dynamic Shared Object (DSO) support. If the modules has been
# statically linked into AppWeb, these directive will be ignored.
#
LoadModulePath "c:/Program Files/Mbedthis Appweb/lib/modules"
#LoadModule auth libauthModule
#LoadModule cgi libcgiModule
#LoadModule dir libdirModule
#LoadModule egi libegiModule
#LoadModule esp libespModule
#LoadModule dir libdirModule
#LoadModule put libputModule
#LoadModule copy libcopyModule
#LoadModule upload libuploadModule
#
# If you want PHP, uncomment this
#
LoadModule php5 libphp5Module
#
# If you want SSL, uncomment the line below
#
# LoadModule ssl libsslModule
#
# For SSL, pick one of the SSL providers below
#
# LoadModule matrixSsl libmatrixSslModule
# LoadModule openSsl libopenSslModule
#
# This is the C API module.
#
# LoadModule capi libcapiModule
#
# This is the GoAhead WebServer compatibility module
#
# LoadModule compat libcompatModule
#
# The Admin module is for non-production debug use only.
#
# LoadModule admin libadminModule
#
# Map handlers to file extensions. If the extension is ommitted, the
# handler itself will determine if a match to a given URL occurs. For
# example: authHandler is always run on all URLs. Handler matching
# to extensions occurs after the URL is descaped but before aliases
# are applied.
#
# AddHandler adminHandler
# AddHandler authHandler
# AddHandler putHandler
# AddHandler dirHandler
# AddHandler uploadHandler
# AddHandler egiHandler .egi
#
# For Scripts, such as your Perl scripts make sure that you have
# "#!/PerlPath" as the first line. This works on Windows as well.
# The .bat and .cmd extensions are really only for Windows.
#
#AddHandler cgiHandler .cgi .cgi-nph .bat .cmd .pl .py
#AddHandler espHandler .esp .asp
#
# Uncomment if you want PHP
#
AddHandler php5Handler .php
#AddHandler copyHandler
#LINUX
#
# These actions specify the program to run for each Perl or Python
# script. They map to the extensions specified in the mime.types for for
# these mime types. Alternatively, you may use put all your scripts in
# the subdirectories specified by the releavant Location blocks below.
# For perl and python, you can also put "#!/path/to/program" as the first
# line. This works on Windows as well. The .bat and .cmd extensions are
# really only for Windows. For Windows, update the program paths with
# the right paths.
#
#Action application/x-appweb-perl /usr/bin/perl
#Action application/x-appweb-python /usr/bin/python
#LINUX
#
# For other types, you can use AddType or edit mime.types
#
# AddType application/x-appweb-other other
#
# Apply handlers to given URL prefixes. I.e. this will run the Esp
# handler for all URLs that begin with "/esp".
#
#<Location /esp/>
# SetHandler espHandler
#</Location>
#
#<Location /egi/>
# SetHandler egiHandler
# ExtraPath on
#</Location>
#
# Just for compatibility with the GoAhead WebServer
#
#<Location /goform/>
# SetHandler egiHandler
# ExtraPath on
#</Location>
#
# This will allow the upload handler to service requests that have /upload/
# as the start of their URL
#
#<Location /upload/>
# AddHandler uploadHandler
# FileUploadDir /tmp
#</Location>
#ScriptAlias /cgi-bin/ "$DOCUMENT_ROOT/cgi-bin"
#
# Delete this section if you don't want the documentation visible
#
Alias /doc/ "c:/Program Files/Mbedthis Appweb/doc/"
#<Location /doc/>
# AddHandler copyHandler
#</Location>
# <Location /admin/>
# SetHandler adminHandler
# </Location>
#
# Define an error document
#
# ErrorDocument 404 /notFound.html
#
# Directory listings
#
#Options Indexes
#IndexOrder ascending name
#IndexOptions FancyIndexing FoldersFirst
# IndexOptions HTMLTable
#
# Define the log format for the access log.
#
CustomLog c:/Program Files/Mbedthis Appweb/logs/access.log "%h %l %u %t \"%r\" %>s %b"
#
# Send ESP errors to the user's browser. Change to "log" for production
# systems.
#
# EspErrors log
#
# Turn HTTP/1.1 chunked transfers off
#
# HttpChunking off
#
# Define persisten connections where one TCP/IP connection may serve
# multiple HTTP requests. (A definite performance boost)
#
KeepAlive on
#
# Number of seconds to wait for the next HTTP request before closing
# the TCP/IP connection.
#
KeepAliveTimeout 60
#
# Number of HTTP requests to accept on a single TCP/IP connection
#
MaxKeepAliveRequests 2000
#
# Default session timeout (30 mins in seconds)
#
SessionTimeout 1800
#
# Auto create sessions for ESP
#
# SessionAutoCreate on
#
# Send and receive inactivity timeout to close a TCP/IP connection
#
Timeout 60
#
# Enable Trace method support
#
# TraceMethod on
#
# The user name and group to switch to once AppWeb has started.
#
Group Administrators
User Administrator
#
# Default directory index to serve when a directory (URL ends in "/")
# is requested.
#
DirectoryIndex index.html
#
# Performance and Security Limits. NOTE: these are set here very large.
#
LimitResponseBody 16777216
LimitScriptSize 131072
LimitRequestBody 4194304
LimitRequestFields 512
LimitRequestFieldSize 1048576
LimitRequestLine 65536
LimitUrl 60000
SendBufferSize 8192
#
# Pre-allocate this number of threads
#
# StartThreads 4
#
# Specify the thread stack size
#
# ThreadStackSize 65536
#
# Uncomment this section if you want to use SSL. Also load the ssl module
# and either matrixSSL or OpenSSL
#
# This virtual host will process SSL requests
#
# <VirtualHost *:4443>
# DocumentRoot "/var/www/appweb-default"
# SSLEngine on
# SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
# SSLProtocol ALL -SSLV2
#
# #
# # WARNING: you must regenerate the server.crt and server.key.pem
# #
# SSLCertificateFile "$SERVER_ROOT/server.crt"
#
# #
# # WARNING: we are using the decrypted key here so it won't prompt for the
# # password. Replace with server.key for higher security
# #
# SSLCertificateKeyFile "$SERVER_ROOT/server.key.pem"
#
# # Add these directives to verify client certificates
# #SSLVerifyClient require
# #SSLCACertificateFile "$SERVER_ROOT/ca.crt"
# #SSLCACertificatePath "$SERVER_ROOT/certs"
# Alias /doc/ "c:/Program Files/Mbedthis Appweb/doc/"
# </VirtualHost>
#
# Other useful directives. See the documentation for details.
# Alias /esp/ "$DOCUMENT_ROOT/"
# Alias /SimpleAlias/ "$DOCUMENT_ROOT/"
# Alias /AliasForMyDocuments/ "$DOCUMENT_ROOT/My Documents/"
#
# Redirect temp /pressRelease.html /fixedPressRelease.html
# Redirect permanent /acme.html http://www.coyote.com/acme.html
# Redirect 410 /membersOnly
# Authorization directives for basic or digest authentication
# AuthGroupFile groups.db
# AuthUserFile users.db
# AuthDigestQop auth
# <Directory $DOCUMENT_ROOT/basic/acme>
# AuthType basic
# AuthName "Acme Inc"
# Require valid-user
# </Directory>
# <Directory $DOCUMENT_ROOT/digest/acme>
# AuthType digest
# AuthName "Acme Inc"
# Require valid-user
# </Directory>
#
#
# Virtual Host directives supporting both Named and IP virtual hosts
# Note: you can nest Directory and Location directives inside
# VirtuaHost directives. To use these, you will need to add the
# relevant Listen directives. E.g. (Listen 5556).
#
# NameVirtualHost *:5556
# <VirtualHost *:5556>
# ServerName www.myHost.com
# DocumentRoot "$SERVER_ROOT/myHost"
# ScriptAlias "/cgi-bin/" "$SERVER_ROOT/web/cgi-bin/"
# </VirtualHost>
#
# <VirtualHost *:5556>
# ServerName www.yourHost.com
# DocumentRoot "$SERVER_ROOT/yourHost"
# ResetHandlers
# AddHandler espHandler .myEsp
# AddHandler egiHandler
# DirectoryIndex index.myEsp
# <Location /myEgi>
# SetHandler egiHandler
# ExtraPath on
# </Location>
# </VirtualHost>
#
# #
# # This virtual host will process all requests on port 5557
# #
# <VirtualHost *:5557>
# DocumentRoot "$SERVER_ROOT/vhostWeb/acme"
# <Directory $DOCUMENT_ROOT/protected>
# AuthType basic
# AuthName "Acme Inc"
# Require user mary
# </Directory>
# </VirtualHost>