source: gsdl/trunk/runtime-src/packages/apache-httpd/httpd.conf.in@ 18725

Last change on this file since 18725 was 18725, checked in by ak19, 15 years ago

Inserted SERVERNAME placeholder.

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