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

Annotation of /hydra/examples/hydra.conf

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations)
Fri Sep 27 23:40:28 2002 UTC (21 years, 6 months ago) by nmav
Branch: MAIN
Changes since 1.2: +5 -1 lines
Improvements on HIC support.

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

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26