]> err.no Git - sope/blob - sope-appserver/mod_ngobjweb/httpd.conf
INSTALL_ROOT_DIR patch
[sope] / sope-appserver / mod_ngobjweb / httpd.conf
1 ##
2 ## httpd.conf -- Apache HTTP server configuration file
3 ##
4
5 ### Section 1: Global Environment
6 #
7 # The directives in this section affect the overall operation of Apache,
8 # such as the number of concurrent requests it can handle or where it
9 # can find its configuration files.
10 #
11
12 #
13 # ServerType is either inetd, or standalone.  Inetd mode is only supported on
14 # Unix platforms.
15 #
16 ServerType standalone
17
18 #
19 # ServerRoot: The top of the directory tree under which the server's
20 # configuration, error, and log files are kept.
21 #
22 # NOTE!  If you intend to place this on an NFS (or otherwise network)
23 # mounted filesystem then please read the LockFile documentation
24 # (available at <URL:http://www.apache.org/docs/mod/core.html#lockfile>);
25 # you will save yourself a lot of trouble.
26 #
27 # Do NOT add a slash at the end of the directory path.
28 #
29 ServerRoot "/tmp/httpd-8888"
30
31 #
32 # The LockFile directive sets the path to the lockfile used when Apache
33 # is compiled with either USE_FCNTL_SERIALIZED_ACCEPT or
34 # USE_FLOCK_SERIALIZED_ACCEPT. This directive should normally be left at
35 # its default value. The main reason for changing it is if the logs
36 # directory is NFS mounted, since the lockfile MUST BE STORED ON A LOCAL
37 # DISK. The PID of the main server process is automatically appended to
38 # the filename. 
39 #
40 LockFile /tmp/httpd.accept.lock
41
42 #
43 # PidFile: The file in which the server should record its process
44 # identification number when it starts.
45 #
46 PidFile /tmp/httpd.pid
47
48 #
49 # ScoreBoardFile: File used to store internal server process information.
50 # Not all architectures require this.  But if yours does (you'll know because
51 # this file will be  created when you run Apache) then you *must* ensure that
52 # no two invocations of Apache share the same scoreboard file.
53 #
54 ScoreBoardFile /tmp/httpd.apache_runtime_status
55
56 #
57 # In the standard configuration, the server will process httpd.conf,
58 # srm.conf, and access.conf in that order.  The latter two files are
59 # now distributed empty, as it is recommended that all directives
60 # be kept in a single file for simplicity.  The commented-out values
61 # below are the built-in defaults.  You can have the server ignore
62 # these files altogether by using "/dev/null" (for Unix) or
63 # "nul" (for Win32) for the arguments to the directives.
64 #
65 #ResourceConfig conf/srm.conf
66 #AccessConfig conf/access.conf
67 ResourceConfig /dev/null
68 AccessConfig   /dev/null
69
70 #
71 # Timeout: The number of seconds before receives and sends time out.
72 #
73 Timeout 300
74
75 #
76 # KeepAlive: Whether or not to allow persistent connections (more than
77 # one request per connection). Set to "Off" to deactivate.
78 #
79 KeepAlive On
80
81 #
82 # MaxKeepAliveRequests: The maximum number of requests to allow
83 # during a persistent connection. Set to 0 to allow an unlimited amount.
84 # We recommend you leave this number high, for maximum performance.
85 #
86 MaxKeepAliveRequests 100
87
88 #
89 # KeepAliveTimeout: Number of seconds to wait for the next request from the
90 # same client on the same connection.
91 #
92 KeepAliveTimeout 15
93
94 #
95 # Server-pool size regulation.  Rather than making you guess how many
96 # server processes you need, Apache dynamically adapts to the load it
97 # sees --- that is, it tries to maintain enough server processes to
98 # handle the current load, plus a few spare servers to handle transient
99 # load spikes (e.g., multiple simultaneous requests from a single
100 # Netscape browser).
101 #
102 # It does this by periodically checking how many servers are waiting
103 # for a request.  If there are fewer than MinSpareServers, it creates
104 # a new spare.  If there are more than MaxSpareServers, some of the
105 # spares die off.  The default values in httpd.conf-dist are probably OK
106 # for most sites.
107 #
108 MinSpareServers 1
109 MaxSpareServers 10
110
111 #
112 # Number of servers to start initially --- should be a reasonable ballpark
113 # figure.
114 #
115 StartServers 1
116
117 #
118 # Limit on total number of servers running, i.e., limit on the number
119 # of clients who can simultaneously connect --- if this limit is ever
120 # reached, clients will be LOCKED OUT, so it should NOT BE SET TOO LOW.
121 # It is intended mainly as a brake to keep a runaway server from taking
122 # the system with it as it spirals down...
123 #
124 MaxClients 150
125
126 #
127 # MaxRequestsPerChild: the number of requests each child process is
128 # allowed to process before the child dies.  The child will exit so
129 # as to avoid problems after prolonged use when Apache (and maybe the
130 # libraries it uses) leak memory or other resources.  On most systems, this
131 # isn't really needed, but a few (such as Solaris) do have notable leaks
132 # in the libraries.
133 #
134 MaxRequestsPerChild 30
135
136 #
137 # Dynamic Shared Object (DSO) Support
138 #
139 # To be able to use the functionality of a module which was built as a DSO you
140 # have to place corresponding `LoadModule' lines at this location so the
141 # directives contained in it are actually available _before_ they are used.
142 # Please read the file README.DSO in the Apache 1.3 distribution for more
143 # details about the DSO mechanism and run `httpd -l' for the list of already
144 # built-in (statically linked and thus always available) modules in your httpd
145 # binary.
146 #
147 # Note: The order is which modules are loaded is important.  Don't change
148 # the order below without expert advice.
149 #
150 # Example:
151 # LoadModule foo_module libexec/mod_foo.so
152 LoadModule mmap_static_module /usr/lib/apache/mod_mmap_static.so
153 LoadModule env_module         /usr/lib/apache/mod_env.so
154 LoadModule config_log_module  /usr/lib/apache/mod_log_config.so
155 LoadModule mime_module        /usr/lib/apache/mod_mime.so
156 LoadModule includes_module    /usr/lib/apache/mod_include.so
157 LoadModule alias_module       /usr/lib/apache/mod_alias.so
158 LoadModule access_module      /usr/lib/apache/mod_access.so
159 LoadModule auth_module        /usr/lib/apache/mod_auth.so
160 LoadModule setenvif_module    /usr/lib/apache/mod_setenvif.so
161
162 #  Reconstruction of the complete module list from all available modules
163 #  (static and shared ones) to achieve correct module execution order.
164 #  [WHENEVER YOU CHANGE THE LOADMODULE SECTION ABOVE UPDATE THIS, TOO]
165 ClearModuleList
166 AddModule mod_mmap_static.c
167 AddModule mod_env.c
168 AddModule mod_log_config.c
169 AddModule mod_mime.c
170 AddModule mod_include.c
171 AddModule mod_alias.c
172 AddModule mod_access.c
173 AddModule mod_auth.c
174 AddModule mod_so.c
175 AddModule mod_setenvif.c
176
177 #
178 # ExtendedStatus controls whether Apache will generate "full" status
179 # information (ExtendedStatus On) or just basic information (ExtendedStatus
180 # Off) when the "server-status" handler is called. The default is Off.
181 #
182 #ExtendedStatus On
183
184 ### Section 2: 'Main' server configuration
185 #
186 # The directives in this section set up the values used by the 'main'
187 # server, which responds to any requests that aren't handled by a
188 # <VirtualHost> definition.  These values also provide defaults for
189 # any <VirtualHost> containers you may define later in the file.
190 #
191 # All of these directives may appear inside <VirtualHost> containers,
192 # in which case these default settings will be overridden for the
193 # virtual host being defined.
194 #
195
196 #
197 # If your ServerType directive (set earlier in the 'Global Environment'
198 # section) is set to "inetd", the next few directives don't have any
199 # effect since their settings are defined by the inetd configuration.
200 # Skip ahead to the ServerAdmin directive.
201 #
202
203 #
204 # Port: The port to which the standalone server listens. For
205 # ports < 1023, you will need httpd to be run as root initially.
206 #
207 Port 8888
208
209 #
210 # If you wish httpd to run as a different user or group, you must run
211 # httpd as root initially and it will switch.  
212 #
213 # User/Group: The name (or #number) of the user/group to run httpd as.
214 #  . On SCO (ODT 3) use "User nouser" and "Group nogroup".
215 #  . On HPUX you may not be able to use shared memory as nobody, and the
216 #    suggested workaround is to create a user www and use that user.
217 #  NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
218 #  when the value of (unsigned)Group is above 60000; 
219 #  don't use Group nogroup on these systems!
220 #
221 User  helge
222 Group dev
223
224 #
225 # ServerAdmin: Your address, where problems with the server should be
226 # e-mailed.  This address appears on some server-generated pages, such
227 # as error documents.
228 #
229 ServerAdmin root@localhost
230
231 #
232 # ServerName allows you to set a host name which is sent back to clients for
233 # your server if it's different than the one the program would get (i.e., use
234 # "www" instead of the host's real name).
235 #
236 # Note: You cannot just invent host names and hope they work. The name you 
237 # define here must be a valid DNS name for your host. If you don't understand
238 # this, ask your network administrator.
239 # If your host doesn't have a registered DNS name, enter its IP address here.
240 # You will have to access it by its address (e.g., http://123.45.67.89/)
241 # anyway, and this will make redirections work in a sensible way.
242 #
243 #ServerName Euklid.suse.de
244
245 #
246 # DocumentRoot: The directory out of which you will serve your
247 # documents. By default, all requests are taken from this directory, but
248 # symbolic links and aliases may be used to point to other locations.
249 #
250 DocumentRoot "/HOME/helge/mdev/LSOffice3/LSWebInterface/Skyrix"
251
252 #
253 # Each directory to which Apache has access, can be configured with respect
254 # to which services and features are allowed and/or disabled in that
255 # directory (and its subdirectories). 
256 #
257 # First, we configure the "default" to be a very restrictive set of 
258 # permissions.  
259 #
260 <Directory />
261     Options FollowSymLinks
262     AllowOverride None
263 </Directory>
264
265 #
266 # Note that from this point forward you must specifically allow
267 # particular features to be enabled - so if something's not working as
268 # you might expect, make sure that you have specifically enabled it
269 # below.
270 #
271
272 #
273 # This should be changed to whatever you set DocumentRoot to.
274 #
275 <Directory "/HOME/helge/mdev/LSOffice3/LSWebInterface/Skyrix">
276
277 #
278 # This may also be "None", "All", or any combination of "Indexes",
279 # "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
280 #
281 # Note that "MultiViews" must be named *explicitly* --- "Options All"
282 # doesn't give it to you.
283 #
284     Options Indexes FollowSymLinks
285
286 #
287 # This controls which options the .htaccess files in directories can
288 # override. Can also be "All", or any combination of "Options", "FileInfo", 
289 # "AuthConfig", and "Limit"
290 #
291     AllowOverride None
292
293 #
294 # Controls who can get stuff from this server.
295 #
296     Order allow,deny
297     Allow from all
298 </Directory>
299
300 #
301 # UseCanonicalName:  (new for 1.3)  With this setting turned on, whenever
302 # Apache needs to construct a self-referencing URL (a URL that refers back
303 # to the server the response is coming from) it will use ServerName and
304 # Port to form a "canonical" name.  With this setting off, Apache will
305 # use the hostname:port that the client supplied, when possible.  This
306 # also affects SERVER_NAME and SERVER_PORT in CGI scripts.
307 #
308 UseCanonicalName On
309
310 #
311 # TypesConfig describes where the mime.types file (or equivalent) is
312 # to be found.
313 #
314 TypesConfig /etc/httpd/mime.types
315
316 #
317 # DefaultType is the default MIME type the server will use for a document
318 # if it cannot otherwise determine one, such as from filename extensions.
319 # If your server contains mostly text or HTML documents, "text/plain" is
320 # a good value.  If most of your content is binary, such as applications
321 # or images, you may want to use "application/octet-stream" instead to
322 # keep browsers from trying to display binary files as though they are
323 # text.
324 #
325 DefaultType text/plain
326
327 #
328 # HostnameLookups: Log the names of clients or just their IP addresses
329 # e.g., www.apache.org (on) or 204.62.129.132 (off).
330 # The default is off because it'd be overall better for the net if people
331 # had to knowingly turn this feature on, since enabling it means that
332 # each client request will result in AT LEAST one lookup request to the
333 # nameserver.
334 #
335 HostnameLookups Off
336
337 #
338 # ErrorLog: The location of the error log file.
339 # If you do not specify an ErrorLog directive within a <VirtualHost>
340 # container, error messages relating to that virtual host will be
341 # logged here.  If you *do* define an error logfile for a <VirtualHost>
342 # container, that host's errors will be logged there and not here.
343 #
344 ErrorLog /tmp/httpd-8888/httpd.error_log
345
346 #
347 # LogLevel: Control the number of messages logged to the error_log.
348 # Possible values include: debug, info, notice, warn, error, crit,
349 # alert, emerg.
350 #
351 LogLevel info
352
353 #
354 # The following directives define some format nicknames for use with
355 # a CustomLog directive (see below).
356 #
357 LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
358 LogFormat "%h %l %u %t \"%r\" %>s %b" common
359 LogFormat "%{Referer}i -> %U" referer
360 LogFormat "%{User-agent}i" agent
361
362 #
363 # The location and format of the access logfile (Common Logfile Format).
364 # If you do not define any access logfiles within a <VirtualHost>
365 # container, they will be logged here.  Contrariwise, if you *do*
366 # define per-<VirtualHost> access logfiles, transactions will be
367 # logged therein and *not* in this file.
368 #
369 CustomLog /tmp/httpd-8888/httpd.access_log common
370
371 #
372 # Optionally add a line containing the server version and virtual host
373 # name to server-generated pages (error documents, FTP directory listings,
374 # mod_status and mod_info output etc., but not CGI generated documents).
375 # Set to "EMail" to also include a mailto: link to the ServerAdmin.
376 # Set to one of:  On | Off | EMail
377 #
378 ServerSignature On
379
380 #
381 # SKYRIX configurations
382 #
383 Include skyrix.conf
384
385 #
386 # Redirect allows you to tell clients about documents which used to exist in
387 # your server's namespace, but do not anymore. This allows you to tell the
388 # clients where to look for the relocated document.
389 # Format: Redirect old-URI new-URL
390 #
391
392 #
393 # Directives controlling the display of server-generated directory listings.
394 #
395
396 #
397 # AddEncoding allows you to have certain browsers (Mosaic/X 2.1+) uncompress
398 # information on the fly. Note: Not all browsers support this.
399 # Despite the name similarity, the following Add* directives have nothing
400 # to do with the FancyIndexing customization directives above.
401 #
402 AddEncoding x-compress Z
403 AddEncoding x-gzip gz
404
405 #
406 # Customizable error response (Apache style)
407 #  these come in three flavors
408 #
409 #    1) plain text
410 #ErrorDocument 500 "The server made a boo boo.
411 #  n.b.  the (") marks it as text, it does not get output
412 #
413 #    2) local redirects
414 #ErrorDocument 404 /missing.html
415 #  to redirect to local URL /missing.html
416 #ErrorDocument 404 /cgi-bin/missing_handler.pl
417 #  N.B.: You can redirect to a script or a document using server-side-includes.
418 #
419 #    3) external redirects
420 #ErrorDocument 402 http://some.other_server.com/subscription_info.html
421 #  N.B.: Many of the environment variables associated with the original
422 #  request will *not* be available to such a script.
423
424 #
425 # The following directives modify normal HTTP response behavior.
426 # The first directive disables keepalive for Netscape 2.x and browsers that
427 # spoof it. There are known problems with these browser implementations.
428 # The second directive is for Microsoft Internet Explorer 4.0b2
429 # which has a broken HTTP/1.1 implementation and does not properly
430 # support keepalive when it is used on 301 or 302 (redirect) responses.
431 #
432 BrowserMatch "Mozilla/2" nokeepalive
433 BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
434
435 #
436 # The following directive disables HTTP/1.1 responses to browsers which
437 # are in violation of the HTTP/1.0 spec by not being able to grok a
438 # basic 1.1 response.
439 #
440 BrowserMatch "RealPlayer 4\.0" force-response-1.0
441 BrowserMatch "Java/1\.0" force-response-1.0
442 BrowserMatch "JDK/1\.0" force-response-1.0
443
444 #
445 # Allow server status reports, with the URL of http://servername/server-status
446 # Change the ".your_domain.com" to match your domain to enable.
447 #
448 <Location /server-status>
449     SetHandler server-status
450     Order deny,allow
451     Deny from all
452     Allow from localhost
453 </Location>
454
455 #
456 # Allow remote server configuration reports, with the URL of
457 #  http://servername/server-info (requires that mod_info.c be loaded).
458 # Change the ".your_domain.com" to match your domain to enable.
459 #
460 #<Location /server-info>
461 #    SetHandler server-info
462 #    Order deny,allow
463 #    Deny from all
464 #    Allow from .your_domain.com
465 #</Location>