root/gsdl/trunk/runtime-src/packages/apache-httpd/httpd.conf.in @ 20829

Revision 20829, 13.9 KB (checked in by ak19, 10 years ago)

PassEnv? (DY)LD_LIBRARY_PATH entry added into linux/mac conf file. There's a placeholder that's written over by gsicontrol.sh. The Windows one at the moment need not be updated to do the same, as in Windows the PATH variable holds the path to various DLLs, and we don't want to expose the entire PATH unless we can't help it.

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#
21# ServerRoot: The top of the directory tree under which the server's
22# configuration, error, and log files are kept.
23#
24# Do not add a slash at the end of the directory path.  If you point
25# ServerRoot at a non-local disk, be sure to point the LockFile directive
26# at a local disk.  If you wish to share the same ServerRoot for multiple
27# httpd daemons, you will need to change at least LockFile and PidFile.
28#
29ServerRoot "**APACHE_HOME_OS**"
30
31#
32# Listen: Allows you to bind Apache to specific IP addresses and/or
33# ports, instead of the default. See also the <VirtualHost>
34# directive.
35#
36# Change this to Listen on specific IP addresses as shown below to
37# prevent Apache from glomming onto all bound IP addresses.
38#
39#Listen 12.34.56.78:80
40Listen **PORT**
41
42# http://httpd.apache.org/docs/1.3/mod/mod_env.html#passenv
43# Linux systems run user accounts as nobody, and so the crucial
44# dynamically linked library path environment variable doesn't
45# get passed through to apache. We make it do so here: PassEnv
46# is set to DYLD_LIBRARY_PATH for Macs, else to LD_LIBRARY_PATH.
47PassEnv **LIBRARY_PATH_VAR**
48
49#
50# Dynamic Shared Object (DSO) Support
51#
52# To be able to use the functionality of a module which was built as a DSO you
53# have to place corresponding `LoadModule' lines at this location so the
54# directives contained in it are actually available _before_ they are used.
55# Statically compiled modules (those listed by `httpd -l') do not need
56# to be loaded here.
57#
58# Example:
59# LoadModule foo_module modules/mod_foo.so
60#
61
62<IfModule !mpm_netware_module>
63<IfModule !mpm_winnt_module>
64#
65# If you wish httpd to run as a different user or group, you must run
66# httpd as root initially and it will switch. 
67#
68# User/Group: The name (or #number) of the user/group to run httpd as.
69# It is usually good practice to create a dedicated user and group for
70# running httpd, as with most system services.
71#
72User daemon
73Group daemon
74
75</IfModule>
76</IfModule>
77
78# 'Main' server configuration
79#
80# The directives in this section set up the values used by the 'main'
81# server, which responds to any requests that aren't handled by a
82# <VirtualHost> definition.  These values also provide defaults for
83# any <VirtualHost> containers you may define later in the file.
84#
85# All of these directives may appear inside <VirtualHost> containers,
86# in which case these default settings will be overridden for the
87# virtual host being defined.
88#
89
90#
91# ServerAdmin: Your address, where problems with the server should be
92# e-mailed.  This address appears on some server-generated pages, such
93# as error documents.  e.g. admin@your-domain.com
94#
95ServerAdmin you@example.com
96
97#
98# ServerName gives the name and port that the server uses to identify itself.
99# This can often be determined automatically, but we recommend you specify
100# it explicitly to prevent problems during startup.
101#
102# If your host doesn't have a registered DNS name, enter its IP address here.
103#
104#ServerName www.example.com:80
105
106#
107# DocumentRoot: The directory out of which you will serve your
108# documents. By default, all requests are taken from this directory, but
109# symbolic links and aliases may be used to point to other locations.
110#
111DocumentRoot "**APACHE_HOME_OS**/htdocs"
112
113#
114# Each directory to which Apache has access can be configured with respect
115# to which services and features are allowed and/or disabled in that
116# directory (and its subdirectories).
117#
118# First, we configure the "default" to be a very restrictive set of
119# features. 
120#
121<Directory />
122    Options FollowSymLinks
123    AllowOverride None
124    Order deny,allow
125    Deny from all
126</Directory>
127
128#
129# Note that from this point forward you must specifically allow
130# particular features to be enabled - so if something's not working as
131# you might expect, make sure that you have specifically enabled it
132# below.
133#
134
135#
136# This should be changed to whatever you set DocumentRoot to.
137#
138<Directory "**APACHE_HOME_OS**/htdocs">
139    #
140    # Possible values for the Options directive are "None", "All",
141    # or any combination of:
142    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
143    #
144    # Note that "MultiViews" must be named *explicitly* --- "Options All"
145    # doesn't give it to you.
146    #
147    # The Options directive is both complicated and important.  Please see
148    # http://httpd.apache.org/docs/2.2/mod/core.html#options
149    # for more information.
150    #
151    Options Indexes FollowSymLinks
152
153    #
154    # AllowOverride controls what directives may be placed in .htaccess files.
155    # It can be "All", "None", or any combination of the keywords:
156    #   Options FileInfo AuthConfig Limit
157    #
158    AllowOverride None
159
160    #
161    # Controls who can get stuff from this server.
162    #
163    Order allow,deny
164    Allow from all
165
166</Directory>
167
168#
169# DirectoryIndex: sets the file that Apache will serve if a directory
170# is requested.
171#
172<IfModule dir_module>
173    DirectoryIndex index.html
174</IfModule>
175
176#
177# The following lines prevent .htaccess and .htpasswd files from being
178# viewed by Web clients.
179#
180<FilesMatch "^\.ht">
181    Order allow,deny
182    Deny from all
183    Satisfy All
184</FilesMatch>
185
186#
187# ErrorLog: The location of the error log file.
188# If you do not specify an ErrorLog directive within a <VirtualHost>
189# container, error messages relating to that virtual host will be
190# logged here.  If you *do* define an error logfile for a <VirtualHost>
191# container, that host's errors will be logged there and not here.
192#
193ErrorLog "logs/error_log"
194
195#
196# LogLevel: Control the number of messages logged to the error_log.
197# Possible values include: debug, info, notice, warn, error, crit,
198# alert, emerg.
199#
200LogLevel warn
201
202<IfModule log_config_module>
203    #
204    # The following directives define some format nicknames for use with
205    # a CustomLog directive (see below).
206    #
207    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
208    LogFormat "%h %l %u %t \"%r\" %>s %b" common
209
210    <IfModule logio_module>
211      # You need to enable mod_logio.c to use %I and %O
212      LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
213    </IfModule>
214
215    #
216    # The location and format of the access logfile (Common Logfile Format).
217    # If you do not define any access logfiles within a <VirtualHost>
218    # container, they will be logged here.  Contrariwise, if you *do*
219    # define per-<VirtualHost> access logfiles, transactions will be
220    # logged therein and *not* in this file.
221    #
222    CustomLog "logs/access_log" common
223
224    #
225    # If you prefer a logfile with access, agent, and referer information
226    # (Combined Logfile Format) you can use the following directive.
227    #
228    #CustomLog "logs/access_log" combined
229</IfModule>
230
231<IfModule alias_module>
232    #
233    # Redirect: Allows you to tell clients about documents that used to
234    # exist in your server's namespace, but do not anymore. The client
235    # will make a new request for the document at its new location.
236    # Example:
237    # Redirect permanent /foo http://www.example.com/bar
238
239    #
240    # Alias: Maps web paths into filesystem paths and is used to
241    # access content that does not live under the DocumentRoot.
242    # Example:
243    # Alias /webpath /full/filesystem/path
244    #
245    # If you include a trailing / on /webpath then the server will
246    # require it to be present in the URL.  You will also likely
247    # need to provide a <Directory> section to allow access to
248    # the filesystem path.
249
250    #
251    # ScriptAlias: This controls which directories contain server scripts.
252    # ScriptAliases are essentially the same as Aliases, except that
253    # documents in the target directory are treated as applications and
254    # run by the server when requested rather than as documents sent to the
255    # client.  The same rules about trailing "/" apply to ScriptAlias
256    # directives as to Alias.
257    #
258    ScriptAlias /cgi-bin/ "**APACHE_HOME_OS**/cgi-bin/"
259
260</IfModule>
261
262<IfModule cgid_module>
263    #
264    # ScriptSock: On threaded servers, designate the path to the UNIX
265    # socket used to communicate with the CGI daemon of mod_cgid.
266    #
267    #Scriptsock logs/cgisock
268</IfModule>
269
270#
271# "**APACHE_HOME_OS**/cgi-bin" should be changed to whatever your ScriptAliased
272# CGI directory exists, if you have that configured.
273#
274<Directory "**APACHE_HOME_OS**/cgi-bin">
275    AllowOverride None
276    Options None
277    Order allow,deny
278    Allow from all
279</Directory>
280
281#
282# DefaultType: the default MIME type the server will use for a document
283# if it cannot otherwise determine one, such as from filename extensions.
284# If your server contains mostly text or HTML documents, "text/plain" is
285# a good value.  If most of your content is binary, such as applications
286# or images, you may want to use "application/octet-stream" instead to
287# keep browsers from trying to display binary files as though they are
288# text.
289#
290DefaultType text/plain
291
292<IfModule mime_module>
293    #
294    # TypesConfig points to the file containing the list of mappings from
295    # filename extension to MIME-type.
296    #
297    TypesConfig conf/mime.types
298
299    #
300    # AddType allows you to add to or override the MIME configuration
301    # file specified in TypesConfig for specific file types.
302    #
303    #AddType application/x-gzip .tgz
304    #
305    # AddEncoding allows you to have certain browsers uncompress
306    # information on the fly. Note: Not all browsers support this.
307    #
308    #AddEncoding x-compress .Z
309    #AddEncoding x-gzip .gz .tgz
310    #
311    # If the AddEncoding directives above are commented-out, then you
312    # probably should define those extensions to indicate media types:
313    #
314    AddType application/x-compress .Z
315    AddType application/x-gzip .gz .tgz
316
317    #
318    # AddHandler allows you to map certain file extensions to "handlers":
319    # actions unrelated to filetype. These can be either built into the server
320    # or added with the Action directive (see below)
321    #
322    # To use CGI scripts outside of ScriptAliased directories:
323    # (You will also need to add "ExecCGI" to the "Options" directive.)
324    #
325    #AddHandler cgi-script .cgi
326
327    # For type maps (negotiated resources):
328    #AddHandler type-map var
329
330    #
331    # Filters allow you to process content before it is sent to the client.
332    #
333    # To parse .shtml files for server-side includes (SSI):
334    # (You will also need to add "Includes" to the "Options" directive.)
335    #
336    #AddType text/html .shtml
337    #AddOutputFilter INCLUDES .shtml
338</IfModule>
339
340#
341# The mod_mime_magic module allows the server to use various hints from the
342# contents of the file itself to determine its type.  The MIMEMagicFile
343# directive tells the module where the hint definitions are located.
344#
345#MIMEMagicFile conf/magic
346
347#
348# Customizable error responses come in three flavors:
349# 1) plain text 2) local redirects 3) external redirects
350#
351# Some examples:
352#ErrorDocument 500 "The server made a boo boo."
353#ErrorDocument 404 /missing.html
354#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
355#ErrorDocument 402 http://www.example.com/subscription_info.html
356#
357
358#
359# EnableMMAP and EnableSendfile: On systems that support it,
360# memory-mapping or the sendfile syscall is used to deliver
361# files.  This usually improves server performance, but must
362# be turned off when serving from networked-mounted
363# filesystems or if support for these functions is otherwise
364# broken on your system.
365#
366#EnableMMAP off
367#EnableSendfile off
368
369# Supplemental configuration
370#
371# The configuration files in the conf/extra/ directory can be
372# included to add extra features or to modify the default configuration of
373# the server, or you may simply copy their contents here and change as
374# necessary.
375
376# Server-pool management (MPM specific)
377#Include conf/extra/httpd-mpm.conf
378
379# Multi-language error messages
380#Include conf/extra/httpd-multilang-errordoc.conf
381
382# Fancy directory listings
383#Include conf/extra/httpd-autoindex.conf
384
385# Language settings
386#Include conf/extra/httpd-languages.conf
387
388# User home directories
389#Include conf/extra/httpd-userdir.conf
390
391# Real-time info on requests and configuration
392#Include conf/extra/httpd-info.conf
393
394# Virtual hosts
395#Include conf/extra/httpd-vhosts.conf
396
397# Local access to the Apache HTTP Server Manual
398#Include conf/extra/httpd-manual.conf
399
400# Distributed authoring and versioning (WebDAV)
401#Include conf/extra/httpd-dav.conf
402
403# Various default settings
404#Include conf/extra/httpd-default.conf
405
406# Secure (SSL/TLS) connections
407#Include conf/extra/httpd-ssl.conf
408#
409# Note: The following must must be present to support
410#       starting without SSL on platforms with no /dev/random equivalent
411#       but a statically compiled-in mod_ssl.
412#
413<IfModule ssl_module>
414SSLRandomSeed startup builtin
415SSLRandomSeed connect builtin
416</IfModule>
417
418  ScriptAlias /greenstone/cgi-bin "**GSDLHOME**/cgi-bin"
419  <Directory "**GSDLHOME**/cgi-bin">
420     Options None
421     AllowOverride None
422     Order deny,allow
423     **CONNECTPERMISSION** from all
424     Allow from 127.0.0.1 **HOST_IP**
425  </Directory>
426 
427  Alias /greenstone "**GSDLHOME**"
428  <Directory "**GSDLHOME**">
429     Options Indexes MultiViews FollowSymLinks
430     AllowOverride None
431     Order deny,allow
432     **CONNECTPERMISSION** from all
433     Allow from 127.0.0.1 **HOST_IP**
434  </Directory>
Note: See TracBrowser for help on using the browser.