source: main/trunk/greenstone2/runtime-src/packages/apache-httpd/windows-httpd.conf.in@ 24008

Last change on this file since 24008 was 24008, checked in by ak19, 13 years ago

lucenesearch needs to use a temporary folder to write out a file to. The windows TEMP envvar is not available through the apache webserver without passenv. This seems to be the only option, as the _tempnam and _tmpnam windows methods either try to write to the current working directory or, if they take a dir parameter, will also look in TMP and else use whatever folder you provide. We need to use the TEMP folder *because* we don't know what folder to provide (the collect folder won't be writable if GS is installed on and run from non-writable media like a CD-ROM.

File size: 18.6 KB
Line 
1#
2# This is the main Apache HTTP server configuration file. It contains the
3# configuration directives that give the server its instructions.
4# See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
5# In particular, see
6# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
7# for a discussion of each configuration directive.
8#
9# Do NOT simply read the instructions in here without understanding
10# what they do. They're here only as hints or reminders. If you are unsure
11# consult the online docs. You have been warned.
12#
13# Configuration and logfile names: If the filenames you specify for many
14# of the server's control files begin with "/" (or "drive:/" for Win32), the
15# server will use that explicit path. If the filenames do *not* begin
16# with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
17# with ServerRoot set to "**APACHE_HOME_OS**" will be interpreted by the
18# server as "**APACHE_HOME_OS**/logs/foo.log".
19#
20# NOTE: Where filenames are specified, you must use forward slashes
21# instead of backslashes (e.g., "c:/apache" instead of "c:\apache").
22# If a drive letter is omitted, the drive on which httpd.exe is located
23# will be used by default. It is recommended that you always supply
24# an explicit drive letter in absolute paths to avoid confusion.
25
26#
27# ServerRoot: The top of the directory tree under which the server's
28# configuration, error, and log files are kept.
29#
30# Do not add a slash at the end of the directory path. If you point
31# ServerRoot at a non-local disk, be sure to point the LockFile directive
32# at a local disk. If you wish to share the same ServerRoot for multiple
33# httpd daemons, you will need to change at least LockFile and PidFile.
34#
35ServerRoot "**APACHE_HOME_OS**"
36
37#
38# Listen: Allows you to bind Apache to specific IP addresses and/or
39# ports, instead of the default. See also the <VirtualHost>
40# directive.
41#
42# Change this to Listen on specific IP addresses as shown below to
43# prevent Apache from glomming onto all bound IP addresses.
44#
45#Listen 12.34.56.78:80
46Listen **PORT**
47
48# http://httpd.apache.org/docs/1.3/mod/mod_env.html#passenv
49# For a remote greenstone server on Windows, need to have access to the
50# USERPROFILE environment variable in order for open-office to process docs
51# It also requires ProgramFiles to guess where the OpenOffice bin is installed
52# The TEMP envvar is needed by lucenesearch.cpp so it can write out files
53# to the TEMP windows folder in case GS is installed on a non-writable media
54# like a CD-ROM.
55PassEnv "USERPROFILE" "ProgramFiles" LANG "TEMP"
56
57#
58# Dynamic Shared Object (DSO) Support
59#
60# To be able to use the functionality of a module which was built as a DSO you
61# have to place corresponding `LoadModule' lines at this location so the
62# directives contained in it are actually available _before_ they are used.
63# Statically compiled modules (those listed by `httpd -l') do not need
64# to be loaded here.
65#
66# Example:
67# LoadModule foo_module modules/mod_foo.so
68#
69LoadModule actions_module modules/mod_actions.so
70LoadModule alias_module modules/mod_alias.so
71LoadModule asis_module modules/mod_asis.so
72LoadModule auth_basic_module modules/mod_auth_basic.so
73#LoadModule auth_digest_module modules/mod_auth_digest.so
74#LoadModule authn_alias_module modules/mod_authn_alias.so
75#LoadModule authn_anon_module modules/mod_authn_anon.so
76#LoadModule authn_dbd_module modules/mod_authn_dbd.so
77#LoadModule authn_dbm_module modules/mod_authn_dbm.so
78LoadModule authn_default_module modules/mod_authn_default.so
79LoadModule authn_file_module modules/mod_authn_file.so
80#LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
81#LoadModule authz_dbm_module modules/mod_authz_dbm.so
82LoadModule authz_default_module modules/mod_authz_default.so
83LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
84LoadModule authz_host_module modules/mod_authz_host.so
85#LoadModule authz_owner_module modules/mod_authz_owner.so
86LoadModule authz_user_module modules/mod_authz_user.so
87LoadModule autoindex_module modules/mod_autoindex.so
88#LoadModule cache_module modules/mod_cache.so
89#LoadModule cern_meta_module modules/mod_cern_meta.so
90LoadModule cgi_module modules/mod_cgi.so
91#LoadModule charset_lite_module modules/mod_charset_lite.so
92#LoadModule dav_module modules/mod_dav.so
93#LoadModule dav_fs_module modules/mod_dav_fs.so
94#LoadModule dav_lock_module modules/mod_dav_lock.so
95#LoadModule dbd_module modules/mod_dbd.so
96#LoadModule deflate_module modules/mod_deflate.so
97LoadModule dir_module modules/mod_dir.so
98#LoadModule disk_cache_module modules/mod_disk_cache.so
99#LoadModule dumpio_module modules/mod_dumpio.so
100LoadModule env_module modules/mod_env.so
101#LoadModule expires_module modules/mod_expires.so
102#LoadModule ext_filter_module modules/mod_ext_filter.so
103#LoadModule file_cache_module modules/mod_file_cache.so
104#LoadModule filter_module modules/mod_filter.so
105#LoadModule headers_module modules/mod_headers.so
106#LoadModule ident_module modules/mod_ident.so
107#LoadModule imagemap_module modules/mod_imagemap.so
108LoadModule include_module modules/mod_include.so
109#LoadModule info_module modules/mod_info.so
110LoadModule isapi_module modules/mod_isapi.so
111#LoadModule ldap_module modules/mod_ldap.so
112#LoadModule logio_module modules/mod_logio.so
113LoadModule log_config_module modules/mod_log_config.so
114#LoadModule log_forensic_module modules/mod_log_forensic.so
115#LoadModule mem_cache_module modules/mod_mem_cache.so
116LoadModule mime_module modules/mod_mime.so
117#LoadModule mime_magic_module modules/mod_mime_magic.so
118LoadModule negotiation_module modules/mod_negotiation.so
119#LoadModule proxy_module modules/mod_proxy.so
120#LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
121#LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
122#LoadModule proxy_connect_module modules/mod_proxy_connect.so
123#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
124#LoadModule proxy_http_module modules/mod_proxy_http.so
125#LoadModule rewrite_module modules/mod_rewrite.so
126LoadModule setenvif_module modules/mod_setenvif.so
127#LoadModule speling_module modules/mod_speling.so
128#LoadModule ssl_module modules/mod_ssl.so
129#LoadModule status_module modules/mod_status.so
130#LoadModule substitute_module modules/mod_substitute.so
131#LoadModule unique_id_module modules/mod_unique_id.so
132#LoadModule userdir_module modules/mod_userdir.so
133#LoadModule usertrack_module modules/mod_usertrack.so
134#LoadModule version_module modules/mod_version.so
135#LoadModule vhost_alias_module modules/mod_vhost_alias.so
136
137<IfModule !mpm_netware_module>
138<IfModule !mpm_winnt_module>
139#
140# If you wish httpd to run as a different user or group, you must run
141# httpd as root initially and it will switch.
142#
143# User/Group: The name (or #number) of the user/group to run httpd as.
144# It is usually good practice to create a dedicated user and group for
145# running httpd, as with most system services.
146#
147User daemon
148Group daemon
149
150</IfModule>
151</IfModule>
152
153# 'Main' server configuration
154#
155# The directives in this section set up the values used by the 'main'
156# server, which responds to any requests that aren't handled by a
157# <VirtualHost> definition. These values also provide defaults for
158# any <VirtualHost> containers you may define later in the file.
159#
160# All of these directives may appear inside <VirtualHost> containers,
161# in which case these default settings will be overridden for the
162# virtual host being defined.
163#
164
165#
166# ServerAdmin: Your address, where problems with the server should be
167# e-mailed. This address appears on some server-generated pages, such
168# as error documents. e.g. [email protected]
169#
170ServerAdmin [email protected]
171
172#
173# ServerName gives the name and port that the server uses to identify itself.
174# This can often be determined automatically, but we recommend you specify
175# it explicitly to prevent problems during startup.
176#
177# If your host doesn't have a registered DNS name, enter its IP address here.
178#
179#ServerName www.example.com:80
180
181#
182# DocumentRoot: The directory out of which you will serve your
183# documents. By default, all requests are taken from this directory, but
184# symbolic links and aliases may be used to point to other locations.
185#
186DocumentRoot "**APACHE_HOME_OS**/htdocs"
187
188#
189# Each directory to which Apache has access can be configured with respect
190# to which services and features are allowed and/or disabled in that
191# directory (and its subdirectories).
192#
193# First, we configure the "default" to be a very restrictive set of
194# features.
195#
196<Directory />
197 Options FollowSymLinks
198 AllowOverride None
199 Order deny,allow
200 Deny from all
201</Directory>
202
203#
204# Note that from this point forward you must specifically allow
205# particular features to be enabled - so if something's not working as
206# you might expect, make sure that you have specifically enabled it
207# below.
208#
209
210#
211# This should be changed to whatever you set DocumentRoot to.
212#
213<Directory "**APACHE_HOME_OS**/htdocs">
214 #
215 # Possible values for the Options directive are "None", "All",
216 # or any combination of:
217 # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
218 #
219 # Note that "MultiViews" must be named *explicitly* --- "Options All"
220 # doesn't give it to you.
221 #
222 # The Options directive is both complicated and important. Please see
223 # http://httpd.apache.org/docs/2.2/mod/core.html#options
224 # for more information.
225 #
226 Options Indexes FollowSymLinks
227
228 #
229 # AllowOverride controls what directives may be placed in .htaccess files.
230 # It can be "All", "None", or any combination of the keywords:
231 # Options FileInfo AuthConfig Limit
232 #
233 AllowOverride None
234
235 #
236 # Controls who can get stuff from this server.
237 #
238 Order allow,deny
239 Allow from all
240
241</Directory>
242
243#
244# DirectoryIndex: sets the file that Apache will serve if a directory
245# is requested.
246#
247<IfModule dir_module>
248 DirectoryIndex index.html
249</IfModule>
250
251#
252# The following lines prevent .htaccess and .htpasswd files from being
253# viewed by Web clients.
254#
255<FilesMatch "^\.ht">
256 Order allow,deny
257 Deny from all
258 Satisfy All
259</FilesMatch>
260
261#
262# ErrorLog: The location of the error log file.
263# If you do not specify an ErrorLog directive within a <VirtualHost>
264# container, error messages relating to that virtual host will be
265# logged here. If you *do* define an error logfile for a <VirtualHost>
266# container, that host's errors will be logged there and not here.
267#
268ErrorLog "logs/error.log"
269
270#
271# LogLevel: Control the number of messages logged to the error_log.
272# Possible values include: debug, info, notice, warn, error, crit,
273# alert, emerg.
274#
275LogLevel warn
276
277<IfModule log_config_module>
278 #
279 # The following directives define some format nicknames for use with
280 # a CustomLog directive (see below).
281 #
282 LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
283 LogFormat "%h %l %u %t \"%r\" %>s %b" common
284
285 <IfModule logio_module>
286 # You need to enable mod_logio.c to use %I and %O
287 LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
288 </IfModule>
289
290 #
291 # The location and format of the access logfile (Common Logfile Format).
292 # If you do not define any access logfiles within a <VirtualHost>
293 # container, they will be logged here. Contrariwise, if you *do*
294 # define per-<VirtualHost> access logfiles, transactions will be
295 # logged therein and *not* in this file.
296 #
297 CustomLog "logs/access.log" common
298
299 #
300 # If you prefer a logfile with access, agent, and referer information
301 # (Combined Logfile Format) you can use the following directive.
302 #
303 #CustomLog "logs/access.log" combined
304</IfModule>
305
306<IfModule alias_module>
307 #
308 # Redirect: Allows you to tell clients about documents that used to
309 # exist in your server's namespace, but do not anymore. The client
310 # will make a new request for the document at its new location.
311 # Example:
312 # Redirect permanent /foo http://www.example.com/bar
313
314 #
315 # Alias: Maps web paths into filesystem paths and is used to
316 # access content that does not live under the DocumentRoot.
317 # Example:
318 # Alias /webpath /full/filesystem/path
319 #
320 # If you include a trailing / on /webpath then the server will
321 # require it to be present in the URL. You will also likely
322 # need to provide a <Directory> section to allow access to
323 # the filesystem path.
324
325 #
326 # ScriptAlias: This controls which directories contain server scripts.
327 # ScriptAliases are essentially the same as Aliases, except that
328 # documents in the target directory are treated as applications and
329 # run by the server when requested rather than as documents sent to the
330 # client. The same rules about trailing "/" apply to ScriptAlias
331 # directives as to Alias.
332 #
333 ScriptAlias /cgi-bin/ "**APACHE_HOME_OS**/cgi-bin/"
334
335</IfModule>
336
337<IfModule cgid_module>
338 #
339 # ScriptSock: On threaded servers, designate the path to the UNIX
340 # socket used to communicate with the CGI daemon of mod_cgid.
341 #
342 #Scriptsock logs/cgisock
343</IfModule>
344
345#
346# "**APACHE_HOME_OS**/cgi-bin" should be changed to whatever your ScriptAliased
347# CGI directory exists, if you have that configured.
348#
349<Directory "**APACHE_HOME_OS**/cgi-bin">
350 AllowOverride None
351 Options None
352 Order allow,deny
353 Allow from all
354</Directory>
355
356#
357# DefaultType: the default MIME type the server will use for a document
358# if it cannot otherwise determine one, such as from filename extensions.
359# If your server contains mostly text or HTML documents, "text/plain" is
360# a good value. If most of your content is binary, such as applications
361# or images, you may want to use "application/octet-stream" instead to
362# keep browsers from trying to display binary files as though they are
363# text.
364#
365DefaultType text/plain
366
367<IfModule mime_module>
368 #
369 # TypesConfig points to the file containing the list of mappings from
370 # filename extension to MIME-type.
371 #
372 TypesConfig conf/mime.types
373
374 #
375 # AddType allows you to add to or override the MIME configuration
376 # file specified in TypesConfig for specific file types.
377 #
378 #AddType application/x-gzip .tgz
379 #
380 # AddEncoding allows you to have certain browsers uncompress
381 # information on the fly. Note: Not all browsers support this.
382 #
383 #AddEncoding x-compress .Z
384 #AddEncoding x-gzip .gz .tgz
385 #
386 # If the AddEncoding directives above are commented-out, then you
387 # probably should define those extensions to indicate media types:
388 #
389 AddType application/x-compress .Z
390 AddType application/x-gzip .gz .tgz
391
392 #
393 # AddHandler allows you to map certain file extensions to "handlers":
394 # actions unrelated to filetype. These can be either built into the server
395 # or added with the Action directive (see below)
396 #
397 # To use CGI scripts outside of ScriptAliased directories:
398 # (You will also need to add "ExecCGI" to the "Options" directive.)
399 #
400 #AddHandler cgi-script .cgi
401
402 # For type maps (negotiated resources):
403 #AddHandler type-map var
404
405 #
406 # Filters allow you to process content before it is sent to the client.
407 #
408 # To parse .shtml files for server-side includes (SSI):
409 # (You will also need to add "Includes" to the "Options" directive.)
410 #
411 #AddType text/html .shtml
412 #AddOutputFilter INCLUDES .shtml
413</IfModule>
414
415#
416# The mod_mime_magic module allows the server to use various hints from the
417# contents of the file itself to determine its type. The MIMEMagicFile
418# directive tells the module where the hint definitions are located.
419#
420#MIMEMagicFile conf/magic
421
422#
423# Customizable error responses come in three flavors:
424# 1) plain text 2) local redirects 3) external redirects
425#
426# Some examples:
427#ErrorDocument 500 "The server made a boo boo."
428#ErrorDocument 404 /missing.html
429#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
430#ErrorDocument 402 http://www.example.com/subscription_info.html
431#
432
433#
434# EnableMMAP and EnableSendfile: On systems that support it,
435# memory-mapping or the sendfile syscall is used to deliver
436# files. This usually improves server performance, but must
437# be turned off when serving from networked-mounted
438# filesystems or if support for these functions is otherwise
439# broken on your system.
440#
441#EnableMMAP off
442#EnableSendfile off
443
444# Supplemental configuration
445#
446# The configuration files in the conf/extra/ directory can be
447# included to add extra features or to modify the default configuration of
448# the server, or you may simply copy their contents here and change as
449# necessary.
450
451# Server-pool management (MPM specific)
452#Include conf/extra/httpd-mpm.conf
453
454# Multi-language error messages
455#Include conf/extra/httpd-multilang-errordoc.conf
456
457# Fancy directory listings
458#Include conf/extra/httpd-autoindex.conf
459
460# Language settings
461#Include conf/extra/httpd-languages.conf
462
463# User home directories
464#Include conf/extra/httpd-userdir.conf
465
466# Real-time info on requests and configuration
467#Include conf/extra/httpd-info.conf
468
469# Virtual hosts
470#Include conf/extra/httpd-vhosts.conf
471
472# Local access to the Apache HTTP Server Manual
473#Include conf/extra/httpd-manual.conf
474
475# Distributed authoring and versioning (WebDAV)
476#Include conf/extra/httpd-dav.conf
477
478# Various default settings
479#Include conf/extra/httpd-default.conf
480
481# Secure (SSL/TLS) connections
482#Include conf/extra/httpd-ssl.conf
483#
484# Note: The following must must be present to support
485# starting without SSL on platforms with no /dev/random equivalent
486# but a statically compiled-in mod_ssl.
487#
488<IfModule ssl_module>
489SSLRandomSeed startup builtin
490SSLRandomSeed connect builtin
491</IfModule>
492
493
494ScriptAlias /greenstone/cgi-bin "**GSDLHOME**/cgi-bin"
495 <Directory "**GSDLHOME**/cgi-bin">
496 Options None
497 AllowOverride None
498 Order deny,allow
499 **CONNECTPERMISSION** from all
500 Allow from 127.0.0.1 **HOST_IP** **HOSTS** localhost
501 </Directory>
502
503 Alias /greenstone/collect "**COLLECTHOME**"
504 <Directory "**COLLECTHOME**">
505 Options Indexes MultiViews FollowSymLinks
506 AllowOverride None
507 Order deny,allow
508 **CONNECTPERMISSION** from all
509 Allow from 127.0.0.1 **HOST_IP** **HOSTS** localhost
510 </Directory>
511
512 Alias /greenstone "**GSDLHOME**"
513 <Directory "**GSDLHOME**">
514 Options Indexes MultiViews FollowSymLinks
515 AllowOverride None
516 Order deny,allow
517 **CONNECTPERMISSION** from all
518 Allow from 127.0.0.1 **HOST_IP** **HOSTS** localhost
519 </Directory>
Note: See TracBrowser for help on using the repository browser.