/[hydra]/hydra/examples/hydra.conf
ViewVC logotype

Contents of /hydra/examples/hydra.conf

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations)
Mon Sep 30 18:18:52 2002 UTC (21 years, 6 months ago) by nmav
Branch: MAIN
CVS Tags: hydra_0_0_4, hydra_0_0_5
Changes since 1.6: +3 -2 lines
Some cleanups in server version string generation.

1 # Hydra v0.0.2 configuration file
2 # File format has is similar but no identical to the format of Boa v0.94
3 # version changes are noted in the comments
4 #
5 # The Hydra configuration file is parsed with a lex/yacc or flex/bison
6 # generated parser. If it reports an error, the line number will be
7 # provided; it should be easy to spot. The syntax of each of these
8 # rules is very simple, and they can occur in any order. Where possible
9 # these directives mimic those of NCSA httpd 1.3; I saw no reason to
10 # introduce gratuitous differences.
11
12 # $Id: hydra.conf,v 1.6 2002/09/30 17:16:54 nmav Exp $
13
14 # The "ServerRoot" is not in this configuration file. It can be compiled
15 # into the server (see defines.h) or specified on the command line with
16 # the -c option, for example:
17 #
18 # hydra -c /usr/local/hydra
19
20 # number of threads to spawn
21 # One thread might be ok for a single CPU system, but in some systems,
22 # performance may be increased by using a pool of 4-5 threads.
23 Threads 4
24
25 # maximum connections (per thread)
26 #MaxConnections 0
27
28 # Port: The port Hydra runs on. The default port for http servers is 80.
29 # If it is less than 1024, the server must be started as root.
30
31 Port 80
32
33 # Listen: the Internet address to bind(2) to. If you leave it out,
34 # it takes the behavior before 0.93.17.2, which is to bind to all
35 # addresses (INADDR_ANY). You only get one "Listen" directive,
36 # if you want service on multiple IP addresses, you have three choices:
37 # 1. Run hydra without a "Listen" directive
38 # a. All addresses are treated the same; makes sense if the addresses
39 # are localhost, ppp, and eth0.
40 # b. Use the VirtualHost directive below to point requests to different
41 # files. Should be good for a very large number of addresses (web
42 # hosting clients).
43 # 2. Run one copy of hydra per IP address, each has its own configuration
44 # with a "Listen" directive. No big deal up to a few tens of addresses.
45 # Nice separation between clients.
46 # The name you provide gets run through inet_aton(3), so you have to use dotted
47 # quad notation. This configuration is too important to trust some DNS.
48
49 #Listen 192.68.0.5
50
51 # User: The name or UID the server should run as.
52 # Group: The group name or GID the server should run as.
53
54 User nobody
55 Group nogroup
56
57 # ServerAdmin: The email address where server problems should be sent.
58 # Note: this is not currently used, except as an environment variable
59 # for CGIs.
60
61 #ServerAdmin root@localhost
62
63 # ErrorLog: The location of the error log file. If this does not start
64 # with /, it is considered relative to the server root.
65 # Set to /dev/null if you don't want errors logged.
66 # If unset, defaults to /dev/stderr
67
68 ErrorLog /var/log/hydra/error_log
69 # Please NOTE: Sending the logs to a pipe ('|'), as shown below,
70 # is somewhat experimental and might fail under heavy load.
71 # "Usual libc implementations of printf will stall the whole
72 # process if the receiving end of a pipe stops reading."
73 #ErrorLog "|/usr/sbin/cronolog --symlink=/var/log/hydra/error_log /var/log/hydra/error-%Y%m%d.log"
74
75 # AccessLog: The location of the access log file. If this does not
76 # start with /, it is considered relative to the server root.
77 # Comment out or set to /dev/null (less effective) to disable
78 # Access logging.
79
80 AccessLog /var/log/hydra/access_log
81 # Please NOTE: Sending the logs to a pipe ('|'), as shown below,
82 # is somewhat experimental and might fail under heavy load.
83 # "Usual libc implementations of printf will stall the whole
84 # process if the receiving end of a pipe stops reading."
85 #AccessLog "|/usr/sbin/cronolog --symlink=/var/log/hydra/access_log /var/log/hydra/access-%Y%m%d.log"
86
87 # UseLocaltime: Logical switch. Uncomment to use localtime
88 # instead of UTC time
89 #UseLocaltime
90
91 # VerboseCGILogs: this is just a logical switch.
92 # It simply notes the start and stop times of cgis in the error log
93 # Comment out to disable.
94
95 #VerboseCGILogs
96
97 # ServerName: the name of this server that should be sent back to
98 # clients if different than that returned by gethostname + gethostbyname
99
100 #ServerName www.your.org.here
101
102 # VirtualHost: Setup any virtual hosts (host based)
103 # Comment out to disable.
104 # It needs to specify the HostName, the IP (use '*' if all),
105 # the DocumentRoot and the UserDir (if any).
106 # UserDir ist he name of the directory which is appended onto a user's home
107 # directory if a ~user request is recieved.
108 #
109 # Example:
110 # VirtualHost www.dot.com * /var/www public_html
111 # VirtualHost www.dot.com 127.0.0.1 /var/www ""
112 #
113
114 #VirtualHost www.dot.com * /var/www ""
115
116 # DocumentRoot: The root directory of the HTML documents.
117 # Comment out to disable server non user files.
118 #
119 # Note that if VirtualHost is enabled, this will be the fallback
120 # for the clients that did not supply any host.
121
122 DocumentRoot /var/www
123
124 # DirectoryIndex: Name of the file to use as a pre-written HTML
125 # directory index. Please MAKE AND USE THESE FILES. On the
126 # fly creation of directory indexes can be _slow_.
127 # You can use more than one directory index by adding this
128 # directive several times.
129 # Comment out to always use DirectoryMaker
130
131 DirectoryIndex index.html
132
133 # DirectoryMaker: Name of program used to create a directory listing.
134 # Comment out to disable directory listings. If both this and
135 # DirectoryIndex are commented out, accessing a directory will give
136 # an error (though accessing files in the directory are still ok).
137
138 DirectoryMaker /usr/lib/hydra/boa_indexer
139
140 # DirectoryCache: If DirectoryIndex doesn't exist, and DirectoryMaker
141 # has been commented out, the the on-the-fly indexing of Hydra can be used
142 # to generate indexes of directories. Be warned that the output is
143 # extremely minimal and can cause delays when slow disks are used.
144 # Note: The DirectoryCache must be writable by the same user/group that
145 # Hydra runs as.
146
147 # DirectoryCache /var/spool/hydra/dircache
148
149 # MaxFilesCache: Number of files to keep in file cache memory
150 # Set to 0 to disable file caching.
151
152 MaxFilesCache 256
153
154 # MaxFileSizeCache: The maximum size that a file should have in order to
155 # be added to the file cache.
156 # Comment out, to use the default value.
157
158 MaxFileSizeCache 131072
159
160 # KeepAliveMax: Number of KeepAlive requests to allow per connection
161 # Comment out, or set to 0 to disable keepalive processing
162
163 KeepAliveMax 1000
164
165 # KeepAliveTimeout: seconds to wait before keepalive connection times out
166
167 KeepAliveTimeout 10
168
169 # MimeTypes: This is the file that is used to generate mime type pairs
170 # and Content-Type fields for hydra.
171 # Set to /dev/null if you do not want to load a mime types file.
172 # Do *not* comment out (better use AddType!)
173
174 MimeTypes /etc/mime.types
175
176 # DefaultType: MIME type used if the file extension is unknown, or there
177 # is no file extension.
178
179 DefaultType text/plain
180
181 # CGIPath: The value of the $PATH environment variable given to CGI progs.
182
183 CGIPath /bin:/usr/bin:/usr/local/bin
184
185 # SinglePostLimit: The maximum allowable number of bytes in
186 # a single POST. Default is normally 1MB.
187
188 # AddType: adds types without editing mime.types
189 # Example: AddType type extension [extension ...]
190
191 # Uncomment the next line if you want .cgi files to execute from anywhere
192 #AddType application/x-httpd-cgi cgi
193
194
195 # Uncomment the following lines if you want .php files to execute from
196 # anywhere, using the HIC (internally handled CGI). This is much faster
197 # than CGIs, since it is handled internally by the server (no fork).
198 # Note that HIC CGIs are handled as NPH CGIs.
199
200 # Use this if you have enabled HIC support, and you have compiled
201 # PHP as a Hydra (HIC) module.
202 #HICModule /usr/lib/libphp4.so "_php" "application/x-httpd-php"
203
204 # You may also need these:
205 #AddType application/x-httpd-php php
206 #AddType application/x-httpd-php phtml
207
208 # number of HIC threads to spawn
209 # One HIC thread handles requests one after the other. Having several HIC threads
210 # increases performance in servers that serve a lot of dynamic content.
211 Threads 4
212
213 # Redirect, Alias, and ScriptAlias all have the same semantics -- they
214 # match the beginning of a request and take appropriate action. Use
215 # Redirect for other servers, Alias for the same server, and ScriptAlias
216 # to enable directories for script execution.
217
218 # Redirect allows you to tell clients about documents which used to exist in
219 # your server's namespace, but do not anymore. This allows you to tell the
220 # clients where to look for the relocated document.
221 # Example: Redirect www.ourhost.com /bar http://elsewhere/feh/bar
222
223 # Aliases: Aliases one path to another.
224 # Example: Alias www.ourhost.com /path1/bar /absolute/path2/foo
225
226 #Alias www.localhost.com /doc /usr/doc
227
228 # ScriptAlias: Maps a virtual path to a directory for serving scripts
229 # Example: ScriptAlias www.ourhost.com /htbin/ /www/htbin/
230
231 #ScriptAlias www.localhost.com /cgi-bin/ /usr/lib/cgi-bin/
232
233 # non zero enables SSL support
234 # 1: only SSL support
235 # 2: both SSL and non SSL ports
236 SSL 0
237
238 # The port where the SSL server will listen on
239 SSLPort 4443
240
241 # read the certificate from
242 SSLCertificate cert.pem
243
244 # read the private key from
245 SSLKey key.pem
246
247 # Number of sessions to cache. This is to support session resuming.
248 # Set to 0 to disable.
249 SSLSessionCache 40
250
251 # After this time (in seconds) has passed, the stored SSL sessions
252 # will be expired, and will not be resumed.
253 SSLSessionTimeout 3600 #one hour
254
255 # Set the prime bits used in Diffie Hellman authentication. The parameters
256 # are only generated if the DHE ciphersuites are enabled.
257 # Value should be one of 768, 1024, 2048, 4096
258 SSLDHBits 768
259
260 # The period when the generated parameters are valid. After that period
261 # hydra will regenerate parameters.
262 SSLParamsRefresh 172800 #two days
263
264 # A comma separated list of the SSL ciphers. Valid selections are:
265 # ARCFOUR-128, ARCFOUR-40, 3DES, AES
266 # Note that ARCFOUR-40 is a weak algorithm.
267 SSLCiphers "AES, 3DES, ARCFOUR-128, ARCFOUR-40"
268
269 # A comma separated list of the SSL key exchange methods. Valid selections
270 # are: RSA, DHE-RSA, DHE-DSS, RSA-EXPORT
271 # Note that RSA-EXPORT is a weak algorithm.
272 SSLKeyExchangeAlgorithms "RSA, RSA-EXPORT"
273
274 # A comma separated list of the SSL MAC algorithms. Valid selections
275 # are: MD5, SHA1
276 SSLMACAlgorithms "SHA1, MD5"
277
278 # A comma separated list of the SSL compression methods. Valid selections
279 # are: NULL
280 SSLCompressionMethods "NULL"
281
282 # A comma separated list of the SSL protocol versions. Valid selections
283 # are: TLS1.0 and SSL3.0
284 SSLProtocols "TLS1.0, SSL3.0"

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26