Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 339 lines (287 sloc) 13.46 kb
21abc5b Claes Wikstrom Initial revision
authored
1 %%%----------------------------------------------------------------------
2 %%% File : yaws.hrl
3 %%% Author : Claes Wikstrom <klacke@hyber.org>
455578a Steve Vinoski major trailing whitespace cleanup
vinoski authored
4 %%% Purpose :
21abc5b Claes Wikstrom Initial revision
authored
5 %%% Created : 16 Jan 2002 by Claes Wikstrom <klacke@hyber.org>
6 %%%----------------------------------------------------------------------
7
8 -author('klacke@hyber.org').
3c06a9e Claes Wikstrom rearr of includefiles
authored
9
21abc5b Claes Wikstrom Initial revision
authored
10
7fd4ad4 Claes Wikstrom backwards incomp cahnge with flags in gc and sc instead of many bools, c...
authored
11
455578a Steve Vinoski major trailing whitespace cleanup
vinoski authored
12 %% flags for gconfs
14176e6 Claes Wikstrom added feature to not pick first sconf when virthosting
authored
13 -define(GC_TTY_TRACE, 1).
14 -define(GC_DEBUG, 2).
15 -define(GC_AUTH_LOG, 4).
16 -define(GC_COPY_ERRLOG, 8).
17 -define(GC_BACKWARDS_COMPAT_PARSE, 16).
18 -define(GC_LOG_RESOLVE_HOSTNAME, 32).
19 -define(GC_FAIL_ON_BIND_ERR, 64).
20 -define(GC_PICK_FIRST_VIRTHOST_ON_NOMATCH, 128).
576139e Claes Wikstrom added support for fdsrv
authored
21 -define(GC_USE_FDSRV, 256).
6e49e77 Claes Wikstrom git-svn-id: https://erlyaws.svn.sourceforge.net/svnroot/erlyaws/trunk/ya...
authored
22 -define(GC_USE_OLD_SSL, 512).
23
7fd4ad4 Claes Wikstrom backwards incomp cahnge with flags in gc and sc instead of many bools, c...
authored
24
92d0daf Claes Wikstrom ""
authored
25 -define(GC_DEF, (?GC_AUTH_LOG bor ?GC_FAIL_ON_BIND_ERR)).
7fd4ad4 Claes Wikstrom backwards incomp cahnge with flags in gc and sc instead of many bools, c...
authored
26
455578a Steve Vinoski major trailing whitespace cleanup
vinoski authored
27 -define(gc_has_tty_trace(GC),
d0caaf6 Claes Wikstrom tabs cleanup
authored
28 ((GC#gconf.flags band ?GC_TTY_TRACE) /= 0)).
455578a Steve Vinoski major trailing whitespace cleanup
vinoski authored
29 -define(gc_has_debug(GC),
d0caaf6 Claes Wikstrom tabs cleanup
authored
30 ((GC#gconf.flags band ?GC_DEBUG) /= 0)).
455578a Steve Vinoski major trailing whitespace cleanup
vinoski authored
31 -define(gc_has_auth_log(GC),
d0caaf6 Claes Wikstrom tabs cleanup
authored
32 ((GC#gconf.flags band ?GC_AUTH_LOG) /= 0)).
455578a Steve Vinoski major trailing whitespace cleanup
vinoski authored
33 -define(gc_has_copy_errlog(GC),
d0caaf6 Claes Wikstrom tabs cleanup
authored
34 ((GC#gconf.flags band ?GC_COPY_ERRLOG) /= 0)).
455578a Steve Vinoski major trailing whitespace cleanup
vinoski authored
35 -define(gc_log_has_resolve_hostname(GC),
d0caaf6 Claes Wikstrom tabs cleanup
authored
36 ((GC#gconf.flags band ?GC_LOG_RESOLVE_HOSTNAME) /= 0)).
455578a Steve Vinoski major trailing whitespace cleanup
vinoski authored
37 -define(gc_fail_on_bind_err(GC),
d0caaf6 Claes Wikstrom tabs cleanup
authored
38 ((GC#gconf.flags band ?GC_FAIL_ON_BIND_ERR) /= 0)).
14176e6 Claes Wikstrom added feature to not pick first sconf when virthosting
authored
39 -define(gc_pick_first_virthost_on_nomatch(GC),
d0caaf6 Claes Wikstrom tabs cleanup
authored
40 ((GC#gconf.flags band ?GC_PICK_FIRST_VIRTHOST_ON_NOMATCH) /= 0)).
6e49e77 Claes Wikstrom git-svn-id: https://erlyaws.svn.sourceforge.net/svnroot/erlyaws/trunk/ya...
authored
41 -define(gc_use_old_ssl(GC),
42 ((GC#gconf.flags band ?GC_USE_OLD_SSL) /= 0)).
7fd4ad4 Claes Wikstrom backwards incomp cahnge with flags in gc and sc instead of many bools, c...
authored
43
455578a Steve Vinoski major trailing whitespace cleanup
vinoski authored
44 -define(gc_set_tty_trace(GC, Bool),
d0caaf6 Claes Wikstrom tabs cleanup
authored
45 GC#gconf{flags = yaws:flag(GC#gconf.flags,?GC_TTY_TRACE, Bool)}).
455578a Steve Vinoski major trailing whitespace cleanup
vinoski authored
46 -define(gc_set_debug(GC, Bool),
d0caaf6 Claes Wikstrom tabs cleanup
authored
47 GC#gconf{flags = yaws:flag(GC#gconf.flags, ?GC_DEBUG, Bool)}).
455578a Steve Vinoski major trailing whitespace cleanup
vinoski authored
48 -define(gc_set_auth_log(GC, Bool),
d0caaf6 Claes Wikstrom tabs cleanup
authored
49 GC#gconf{flags = yaws:flag(GC#gconf.flags, ?GC_AUTH_LOG, Bool)}).
455578a Steve Vinoski major trailing whitespace cleanup
vinoski authored
50 -define(gc_set_copy_errlog(GC, Bool),
d0caaf6 Claes Wikstrom tabs cleanup
authored
51 GC#gconf{flags = yaws:flag(GC#gconf.flags, ?GC_COPY_ERRLOG, Bool)}).
455578a Steve Vinoski major trailing whitespace cleanup
vinoski authored
52 -define(gc_log_set_resolve_hostname(GC, Bool),
53 GC#gconf{flags = yaws:flag(GC#gconf.flags,
d0caaf6 Claes Wikstrom tabs cleanup
authored
54 ?GC_LOG_RESOLVE_HOSTNAME, Bool)}).
455578a Steve Vinoski major trailing whitespace cleanup
vinoski authored
55 -define(gc_set_fail_on_bind_err(GC, Bool),
d0caaf6 Claes Wikstrom tabs cleanup
authored
56 GC#gconf{flags = yaws:flag(GC#gconf.flags,?GC_FAIL_ON_BIND_ERR,Bool)}).
455578a Steve Vinoski major trailing whitespace cleanup
vinoski authored
57 -define(gc_set_pick_first_virthost_on_nomatch(GC, Bool),
d0caaf6 Claes Wikstrom tabs cleanup
authored
58 GC#gconf{flags = yaws:flag(GC#gconf.flags,
59 ?GC_PICK_FIRST_VIRTHOST_ON_NOMATCH,Bool)}).
455578a Steve Vinoski major trailing whitespace cleanup
vinoski authored
60 -define(gc_set_use_old_ssl(GC, Bool),
6e49e77 Claes Wikstrom git-svn-id: https://erlyaws.svn.sourceforge.net/svnroot/erlyaws/trunk/ya...
authored
61 GC#gconf{flags = yaws:flag(GC#gconf.flags,?GC_USE_OLD_SSL,Bool)}).
62
7fd4ad4 Claes Wikstrom backwards incomp cahnge with flags in gc and sc instead of many bools, c...
authored
63
c9bd56d Claes Wikstrom added config flag 'use_large_ssl_pool = bool()'
authored
64
21abc5b Claes Wikstrom Initial revision
authored
65 %% global conf
5ddf4f4 Claes Wikstrom Bug fixed with bindings that got propagated over redirects. Good ol get/...
authored
66 -record(gconf,{yaws_dir, %% topdir of Yaws installation
d0caaf6 Claes Wikstrom tabs cleanup
authored
67 trace, %% false | {true,http}|{true,traffic}
68 flags = ?GC_DEF, %% boolean flags
3f08480 Steve Vinoski add configurable access logging
vinoski authored
69 logdir,
70 logger_mod = yaws_log, % access logging module
d0caaf6 Claes Wikstrom tabs cleanup
authored
71 ebin_dir = [],
72 runmods = [], %% runmods for entire server
17be957 Steve Vinoski Use gconf keepalive_timeout for connection lifetime (Brady McCary)
vinoski authored
73 keepalive_timeout = 30000,
0446f2b Added a new configuration parameter called "keepalive_maxuses" which all...
Thomas O'Dowd authored
74 keepalive_maxuses = nolimit, %% nolimit or non negative integer
d0caaf6 Claes Wikstrom tabs cleanup
authored
75 max_num_cached_files = 400,
76 max_num_cached_bytes = 1000000, %% 1 MEG
77 max_size_cached_file = 8000,
a1e2e74 Fabian Linzberger add implementation of X-Forwarded-For header (Fabian Linzberger)
lefant authored
78 max_connections = nolimit, % max number of TCP connections
79 process_options = [], % Override default connection handler
80 % processes spawn options for
81 % performance/memory tuning. [] |
82 % [{fullsweep_after,Number},
83 % {min_heap_size, Size}] other options such
84 % as monitor, link are ignored.
d0caaf6 Claes Wikstrom tabs cleanup
authored
85 large_file_chunk_size = 10240,
2fa66b0 Claes Wikstrom cgi support
authored
86 mnesia_dir = [],
d0caaf6 Claes Wikstrom tabs cleanup
authored
87 log_wrap_size = 10000000, % wrap logs after 10M
88 cache_refresh_secs = 30, % seconds (auto zero when debug)
455578a Steve Vinoski major trailing whitespace cleanup
vinoski authored
89 include_dir = [], %% list of inc dirs for .yaws files
d0caaf6 Claes Wikstrom tabs cleanup
authored
90 phpexe = "/usr/bin/php-cgi", %% cgi capable php executable
a1e2e74 Fabian Linzberger add implementation of X-Forwarded-For header (Fabian Linzberger)
lefant authored
91 x_forwarded_for_log_proxy_whitelist = [], % list of proxy server
92 % ips we will replace with the last element
93 % of the list in the X-Forwarded-For http
94 % header in logs
d0caaf6 Claes Wikstrom tabs cleanup
authored
95 yaws, %% server string
96 id = "default", %% string identifying this instance of yaws
d8df08c Eric Liang add the soap_srv_mods support, which can setup soap serve modules while ...
ericliang authored
97 enable_soap = false, %% start yaws_soap_srv iff true
455578a Steve Vinoski major trailing whitespace cleanup
vinoski authored
98 soap_srv_mods = [], %% a list of
d63642e Steve Vinoski do not pass the --id option if the default id is used
vinoski authored
99 %% {{Mod, Func}, WsdlFile, Prefix } |
100 %% {{Mod, Func}, WsdlFile}
101 %% automatically setup in yaws_soap_srv init.
2d74b84 Nicolas Thauvin Added a comment in yaws.hrl
nthauvin authored
102 ysession_mod = yaws_session_server %% storage module for ysession
455578a Steve Vinoski major trailing whitespace cleanup
vinoski authored
103 }).
3dc56a7 Claes Wikstrom javascript support in ehtml
authored
104
21abc5b Claes Wikstrom Initial revision
authored
105
106
455578a Steve Vinoski major trailing whitespace cleanup
vinoski authored
107 -record(ssl,
d0caaf6 Claes Wikstrom tabs cleanup
authored
108 {
109 keyfile,
110 certfile,
111 verify = 0,
b6cbbe5 avtobiff Fixed and updated SSL verify options.
avtobiff authored
112 fail_if_no_peer_cert,
d0caaf6 Claes Wikstrom tabs cleanup
authored
113 depth = 1,
114 password,
115 cacertfile,
116 ciphers,
117 cachetimeout}).
661bd8c Claes Wikstrom ""
authored
118
119
7fd4ad4 Claes Wikstrom backwards incomp cahnge with flags in gc and sc instead of many bools, c...
authored
120 %% flags for sconfs
2fa66b0 Claes Wikstrom cgi support
authored
121 -define(SC_ACCESS_LOG, 1).
122 -define(SC_ADD_PORT, 2).
5155b86 Steve Vinoski Add auth_skip_docroot server config variable (Christian Hennig)
vinoski authored
123 -define(SC_STATISTICS, 4).
2fa66b0 Claes Wikstrom cgi support
authored
124 -define(SC_TILDE_EXPAND, 8).
125 -define(SC_DIR_LISTINGS, 16).
126 -define(SC_DEFLATE, 32).
127 -define(SC_DIR_ALL_ZIP, 64).
128 -define(SC_DAV, 128).
129 -define(SC_FCGI_TRACE_PROTOCOL, 512).
130 -define(SC_FCGI_LOG_APP_ERROR, 1024).
82a449b Claes Wikstrom Forward prox functionality added through a patch by Colm Dougan
authored
131 -define(SC_FORWARD_PROXY, 2048).
5155b86 Steve Vinoski Add auth_skip_docroot server config variable (Christian Hennig)
vinoski authored
132 -define(SC_AUTH_SKIP_DOCROOT, 4096).
82a449b Claes Wikstrom Forward prox functionality added through a patch by Colm Dougan
authored
133
7fd4ad4 Claes Wikstrom backwards incomp cahnge with flags in gc and sc instead of many bools, c...
authored
134
135 -define(SC_DEF, ?SC_ACCESS_LOG bor ?SC_ADD_PORT).
136
455578a Steve Vinoski major trailing whitespace cleanup
vinoski authored
137 -define(sc_has_access_log(SC),
d0caaf6 Claes Wikstrom tabs cleanup
authored
138 (((SC)#sconf.flags band ?SC_ACCESS_LOG) /= 0)).
455578a Steve Vinoski major trailing whitespace cleanup
vinoski authored
139 -define(sc_has_add_port(SC),
d0caaf6 Claes Wikstrom tabs cleanup
authored
140 (((SC)#sconf.flags band ?SC_ADD_PORT) /= 0)).
8c969fe Olivier Girondel Support for the statistics option per virtual host
oliv3 authored
141 -define(sc_has_statistics(SC),
142 (((SC)#sconf.flags band ?SC_STATISTICS) /= 0)).
7fd4ad4 Claes Wikstrom backwards incomp cahnge with flags in gc and sc instead of many bools, c...
authored
143 -define(sc_has_tilde_expand(SC),
d0caaf6 Claes Wikstrom tabs cleanup
authored
144 (((SC)#sconf.flags band ?SC_TILDE_EXPAND) /= 0)).
7fd4ad4 Claes Wikstrom backwards incomp cahnge with flags in gc and sc instead of many bools, c...
authored
145 -define(sc_has_dir_listings(SC),
d0caaf6 Claes Wikstrom tabs cleanup
authored
146 (((SC)#sconf.flags band ?SC_DIR_LISTINGS) /= 0)).
455578a Steve Vinoski major trailing whitespace cleanup
vinoski authored
147 -define(sc_has_deflate(SC),
d0caaf6 Claes Wikstrom tabs cleanup
authored
148 (((SC)#sconf.flags band ?SC_DEFLATE) /= 0)).
2e8e005 Martin Bjorklund Added auto-generate all.zip to dir listings. It needs the zip command i...
mbj4668 authored
149 -define(sc_has_dir_all_zip(SC),
d0caaf6 Claes Wikstrom tabs cleanup
authored
150 (((SC)#sconf.flags band ?SC_DIR_ALL_ZIP) /= 0)).
868ce8a Martin Bjorklund reworked the DAV support a bit - don't use an appmod, instead yaws has b...
mbj4668 authored
151 -define(sc_has_dav(SC),
d0caaf6 Claes Wikstrom tabs cleanup
authored
152 (((SC)#sconf.flags band ?SC_DAV) /= 0)).
2fa66b0 Claes Wikstrom cgi support
authored
153 -define(sc_fcgi_trace_protocol(SC),
154 (((SC)#sconf.flags band ?SC_FCGI_TRACE_PROTOCOL) /= 0)).
155 -define(sc_fcgi_log_app_error(SC),
156 (((SC)#sconf.flags band ?SC_FCGI_LOG_APP_ERROR) /= 0)).
82a449b Claes Wikstrom Forward prox functionality added through a patch by Colm Dougan
authored
157 -define(sc_forward_proxy(SC),
158 (((SC)#sconf.flags band ?SC_FORWARD_PROXY) /= 0)).
5155b86 Steve Vinoski Add auth_skip_docroot server config variable (Christian Hennig)
vinoski authored
159 -define(sc_auth_skip_docroot(SC),
160 (((SC)#sconf.flags band ?SC_AUTH_SKIP_DOCROOT) /= 0)).
7fd4ad4 Claes Wikstrom backwards incomp cahnge with flags in gc and sc instead of many bools, c...
authored
161
3dc56a7 Claes Wikstrom javascript support in ehtml
authored
162
455578a Steve Vinoski major trailing whitespace cleanup
vinoski authored
163 -define(sc_set_access_log(SC, Bool),
d0caaf6 Claes Wikstrom tabs cleanup
authored
164 SC#sconf{flags = yaws:flag(SC#sconf.flags, ?SC_ACCESS_LOG, Bool)}).
455578a Steve Vinoski major trailing whitespace cleanup
vinoski authored
165 -define(sc_set_add_port(SC, Bool),
d0caaf6 Claes Wikstrom tabs cleanup
authored
166 SC#sconf{flags = yaws:flag(SC#sconf.flags, ?SC_ADD_PORT, Bool)}).
8c969fe Olivier Girondel Support for the statistics option per virtual host
oliv3 authored
167 -define(sc_set_statistics(SC, Bool),
168 SC#sconf{flags = yaws:flag(SC#sconf.flags, ?SC_STATISTICS, Bool)}).
455578a Steve Vinoski major trailing whitespace cleanup
vinoski authored
169 -define(sc_set_ssl(SC, Bool),
8c969fe Olivier Girondel Support for the statistics option per virtual host
oliv3 authored
170 SC#sconf{flags = yaws:flag(SC#sconf.flags, ?SC_SSL, Bool)}).
455578a Steve Vinoski major trailing whitespace cleanup
vinoski authored
171 -define(sc_set_tilde_expand(SC, Bool),
d0caaf6 Claes Wikstrom tabs cleanup
authored
172 SC#sconf{flags = yaws:flag(SC#sconf.flags, ?SC_TILDE_EXPAND, Bool)}).
455578a Steve Vinoski major trailing whitespace cleanup
vinoski authored
173 -define(sc_set_dir_listings(SC, Bool),
d0caaf6 Claes Wikstrom tabs cleanup
authored
174 SC#sconf{flags = yaws:flag(SC#sconf.flags, ?SC_DIR_LISTINGS, Bool)}).
455578a Steve Vinoski major trailing whitespace cleanup
vinoski authored
175 -define(sc_set_deflate(SC, Bool),
d0caaf6 Claes Wikstrom tabs cleanup
authored
176 SC#sconf{flags = yaws:flag(SC#sconf.flags, ?SC_DEFLATE, Bool)}).
455578a Steve Vinoski major trailing whitespace cleanup
vinoski authored
177 -define(sc_set_dir_all_zip(SC, Bool),
d0caaf6 Claes Wikstrom tabs cleanup
authored
178 SC#sconf{flags = yaws:flag(SC#sconf.flags, ?SC_DIR_ALL_ZIP, Bool)}).
455578a Steve Vinoski major trailing whitespace cleanup
vinoski authored
179 -define(sc_set_dav(SC, Bool),
d0caaf6 Claes Wikstrom tabs cleanup
authored
180 SC#sconf{flags = yaws:flag(SC#sconf.flags, ?SC_DAV, Bool)}).
455578a Steve Vinoski major trailing whitespace cleanup
vinoski authored
181 -define(sc_set_fcgi_trace_protocol(SC, Bool),
182 SC#sconf{flags = yaws:flag(SC#sconf.flags, ?SC_FCGI_TRACE_PROTOCOL,
82a449b Claes Wikstrom Forward prox functionality added through a patch by Colm Dougan
authored
183 Bool)}).
455578a Steve Vinoski major trailing whitespace cleanup
vinoski authored
184 -define(sc_set_fcgi_log_app_error(SC, Bool),
185 SC#sconf{flags = yaws:flag(SC#sconf.flags, ?SC_FCGI_LOG_APP_ERROR,
82a449b Claes Wikstrom Forward prox functionality added through a patch by Colm Dougan
authored
186 Bool)}).
455578a Steve Vinoski major trailing whitespace cleanup
vinoski authored
187 -define(sc_set_forward_proxy(SC, Bool),
82a449b Claes Wikstrom Forward prox functionality added through a patch by Colm Dougan
authored
188 SC#sconf{flags = yaws:flag(SC#sconf.flags, ?SC_FORWARD_PROXY, Bool)}).
5155b86 Steve Vinoski Add auth_skip_docroot server config variable (Christian Hennig)
vinoski authored
189 -define(sc_set_auth_skip_docroot(SC, Bool),
190 SC#sconf{flags = yaws:flag(SC#sconf.flags,?SC_AUTH_SKIP_DOCROOT,Bool)}).
3dc56a7 Claes Wikstrom javascript support in ehtml
authored
191
192
193
21abc5b Claes Wikstrom Initial revision
authored
194 %% server conf
195 -record(sconf,
d0caaf6 Claes Wikstrom tabs cleanup
authored
196 {port = 8000, %% which port is this server listening to
197 flags = ?SC_DEF,
455578a Steve Vinoski major trailing whitespace cleanup
vinoski authored
198 redirect_map=[], %% a list of
814bae1 Claes Wikstrom cleaned up the redirect feature. It was poorly implemented and poorly do...
authored
199 %% {Prefix, #url{}, append|noappend}
200 %% #url{} can be partially populated
201
d0caaf6 Claes Wikstrom tabs cleanup
authored
202 rhost, %% forced redirect host (+ optional port)
203 rmethod, %% forced redirect method
204 docroot, %% path to the docs
205 xtra_docroots = [], %% if we have additional pseudo docroots
206 listen = {127,0,0,1}, %% bind to this IP, {0,0,0,0} is possible
207 servername = "localhost", %% servername is what Host: header is
208 ets, %% local store for this server
209 ssl, %% undefined | #ssl{}
210 authdirs = [],
662d1f3 The default value for partial_post_size was nolimit, not a good default ...
Claes Wikstrom authored
211 partial_post_size = 10240,
455578a Steve Vinoski major trailing whitespace cleanup
vinoski authored
212 appmods = [],
b7656de Claes Wikstrom Added support for excluding dirs from an appmod. This is useful for / ap...
authored
213 %% An item in the appmods list can be either of the
214 %% following, this is all due to backwards compat issues.
215 %% 1. an atom - this is the equivalent to {atom, atom}
216 %% 2 . A two tuple {Path, Mod}
217 %% 3 A three tuple {Path, Mod, [ExcludeDir ....]}
218
c60fc5f Christopher Faulet add control for "Expires" and "Cache-Control" response headers (capflam)
capflam authored
219 expires = [],
c1cea99 Fabian Alenius Changed the way authentication is done, added support for multiple authe...
faal authored
220 errormod_401 = yaws_outmod, %% the default 401 error module
455578a Steve Vinoski major trailing whitespace cleanup
vinoski authored
221 errormod_404 = yaws_outmod, %% the default 404 error module
c1cea99 Fabian Alenius Changed the way authentication is done, added support for multiple authe...
faal authored
222 errormod_crash = yaws_outmod, %% use the same module for crashes
d0caaf6 Claes Wikstrom tabs cleanup
authored
223 arg_rewrite_mod = yaws,
82a449b Claes Wikstrom Forward prox functionality added through a patch by Colm Dougan
authored
224 opaque = [], %% useful in embedded mode
225 start_mod, %% user provided module to be started
2fa66b0 Claes Wikstrom cgi support
authored
226 allowed_scripts = [yaws,php,cgi,fcgi],
fe70f74 Claes Wikstrom embedded startup problem solved by Anders Nygren
authored
227 tilde_allowed_scripts = [],
9b8f828 Steve Vinoski incorporate Lev Walkin's patch for a configurable TCP listen backlog,
vinoski authored
228 revproxy = [],
1b0f3d7 Claes Wikstrom Cleanup + minor preparation for extension handler mod
authored
229 soptions = [],
7d9f3ab Claes Wikstrom add extra cgi vars patch from joe_e_e
authored
230 extra_cgi_vars = [],
82a449b Claes Wikstrom Forward prox functionality added through a patch by Colm Dougan
authored
231 stats, %% raw traffic statistics
8b5e74b Steve Vinoski add support for PHP FCGI applications (Hans-Christian Esperer)
vinoski authored
232 fcgi_app_server, %% FastCGI application server {host,port}
233 phpfcgi %% {host, port} of a FastCGI php server
d0caaf6 Claes Wikstrom tabs cleanup
authored
234 }).
21abc5b Claes Wikstrom Initial revision
authored
235
9199a36 Claes Wikstrom added support for config changes without stopping the running systems, v...
authored
236 %% we cannot compare sconfs directly due to the ets
237 %% field in #sconf{} use yaws_config:eq_sconfs/2
238
0d6e5ea Claes Wikstrom fixed tilde username expansion it didn't work, also made thta a configur...
authored
239
0dd21d2 Added Basic Authentication support with a new subsection to the server c...
Seah Hinde authored
240 % Auth conf - from server conf and .yaws_auth
241 -record(auth,
55c9af7 Changed implementation of multipart form data. There is a new config
Seah Hinde authored
242 {dir = [],
ab09643 Christopher Faulet authorization improvements (capflam)
capflam authored
243 docroot = [],
244 files = [],
55c9af7 Changed implementation of multipart form data. There is a new config
Seah Hinde authored
245 realm = "",
246 type = "Basic",
2fa66b0 Claes Wikstrom cgi support
authored
247 headers = [], %% headers to send on 401
c1cea99 Fabian Alenius Changed the way authentication is done, added support for multiple authe...
faal authored
248 users = [], %% list of {User, Password} tuples
ab09643 Christopher Faulet authorization improvements (capflam)
capflam authored
249 acl = none, %% list of allowed/denies IPs or none
d0caaf6 Claes Wikstrom tabs cleanup
authored
250 mod = [], %% authentication module callback
ab09643 Christopher Faulet authorization improvements (capflam)
capflam authored
251 outmod = [], %% module to handles 401 unauthorized messages
d0caaf6 Claes Wikstrom tabs cleanup
authored
252 pam = false %% should we use pam to auth a user
55c9af7 Changed implementation of multipart form data. There is a new config
Seah Hinde authored
253 }).
21abc5b Claes Wikstrom Initial revision
authored
254
3dc56a7 Claes Wikstrom javascript support in ehtml
authored
255
00303e2 Claes Wikstrom outh record, the outgoing headers are built up into a record now, much c...
authored
256
257 %% this internal record is used and returned by the URL path parser
258
4ad4101 jonhen Virtual Directory support. ARG record and CGI variable changes
jonhen authored
259
455578a Steve Vinoski major trailing whitespace cleanup
vinoski authored
260 -record(urltype, {type, %% error | yaws | regular | directory |
261 %% forbidden | appmod
d0caaf6 Claes Wikstrom tabs cleanup
authored
262 finfo,
263 path = [],
264 fullpath = [], %% deep list (WHY?)
265 dir = [], %% relative dir where the path leads to
266 %% flat | unflat need flat for authentication
455578a Steve Vinoski major trailing whitespace cleanup
vinoski authored
267 data, %% type-specific e.g: Binary | FileDescriptor
d0caaf6 Claes Wikstrom tabs cleanup
authored
268 %% | DirListing | undefined
269 deflate, %% undefined | Binary | dynamic
270 mime = "text/html", %% MIME type
271 getpath, %% as GET'ed by client
272 pathinfo
273 }).
00303e2 Claes Wikstrom outh record, the outgoing headers are built up into a record now, much c...
authored
274
275
276
277
278 %% this record is constructed as we build up
279 %% the outgoing headers
280
281 -record(outh, {
d0caaf6 Claes Wikstrom tabs cleanup
authored
282 status, %% int status code
00303e2 Claes Wikstrom outh record, the outgoing headers are built up into a record now, much c...
authored
283
d0caaf6 Claes Wikstrom tabs cleanup
authored
284 doclose, %% bool
285 chunked, %% bool
0446f2b Added a new configuration parameter called "keepalive_maxuses" which all...
Thomas O'Dowd authored
286 exceedmaxuses=false,
287 %% bool, true if hit keep-alive max uses
d0caaf6 Claes Wikstrom tabs cleanup
authored
288 encoding=identity,
289 %% identity, deflate
290 contlen, %% integer
291 act_contlen, %% actual content length for dynamic pages
00303e2 Claes Wikstrom outh record, the outgoing headers are built up into a record now, much c...
authored
292
293
294 %% and the total set of out headers we can have
295 %% as actual strings
d0caaf6 Claes Wikstrom tabs cleanup
authored
296 connection,
297 server,
298 location,
299 cache_control,
c60fc5f Christopher Faulet add control for "Expires" and "Cache-Control" response headers (capflam)
capflam authored
300 expires,
d0caaf6 Claes Wikstrom tabs cleanup
authored
301 date,
302 allow,
303 last_modified,
304 etag,
305 set_cookie,
306 content_range,
307 content_length,
308 content_type,
309 content_encoding,
310 transfer_encoding,
311 www_authenticate,
312 other %% misc other headers
06a1bef Claes Wikstrom ""
authored
313 }).
00303e2 Claes Wikstrom outh record, the outgoing headers are built up into a record now, much c...
authored
314
315
455578a Steve Vinoski major trailing whitespace cleanup
vinoski authored
316
ef3a52a Claes Wikstrom Removed the atoms in parse_post and parse query, backwards incompatible ...
authored
317
b67bbd8 Claes Wikstrom Rewrote url splitting (again), and made the redir to index.{html,yaws} g...
authored
318
319
31fdaae Claes Wikstrom pam cleanup, add env record, yaws_ls enhancements by doccarcass@gmail.co...
authored
320 %% as read by application:get_env()
455578a Steve Vinoski major trailing whitespace cleanup
vinoski authored
321 -record(env, {debug,
d0caaf6 Claes Wikstrom tabs cleanup
authored
322 trace,
323 traceoutput,
324 conf,
325 runmod,
326 embedded,
327 id
328 }).
31fdaae Claes Wikstrom pam cleanup, add env record, yaws_ls enhancements by doccarcass@gmail.co...
authored
329
9ab391e Claes Wikstrom warn when crypto app is not there
authored
330 %% Typically used in error printouts as in:
331 %% error_logger:format("Err ~p at ~p~n", [Reason, ?stack()])
332 -define(stack(), try throw(1) catch _:_ -> erlang:get_stacktrace() end).
a1e2e74 Fabian Linzberger add implementation of X-Forwarded-For header (Fabian Linzberger)
lefant authored
333
334
335 %%% The following is for emacs, do not remove
336 %%% Local Variables:
337 %%% comment-column: 36
338 %%% End:
Something went wrong with that request. Please try again.