Ticket #70: httpd.conf

File httpd.conf, 21.8 KB (added by Jirka, 11 years ago)
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 "/apache2" will be interpreted by the
18# server as "/apache2/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 "D:\Server\apache2"
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 80
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.dll
53#
54
55LoadModule actions_module modules/actions.dll
56LoadModule alias_module modules/alias.dll
57LoadModule asis_module modules/asis.dll
58# LoadModule authn_anon_module modules/authn_an.dll
59# LoadModule authn_dbd_module modules/authn_db.dll
60# LoadModule authn_default_module modules/authn_de.dll
61LoadModule authn_file_module modules/authn_fi.dll
62# LoadModule authz_dbm_module modules/authz_db.dll
63# LoadModule authz_default_module modules/authz_de.dll
64LoadModule authz_groupfile_module modules/authz_gr.dll
65LoadModule authz_host_module modules/authz_ho.dll
66# LoadModule authz_owner_module modules/authz_ow.dll
67LoadModule authz_user_module modules/authz_us.dll
68LoadModule auth_basic_module modules/auth_bas.dll
69# LoadModule auth_digest_module modules/auth_dig.dll
70LoadModule autoindex_module modules/autoinde.dll
71# LoadModule cern_meta_module modules/cern_met.dll
72LoadModule cgi_module modules/cgi.dll
73# LoadModule charset_lite_module modules/charset_.dll
74# LoadModule dav_module modules/dav.dll
75# LoadModule dav_fs_module modules/dav_fs.dll
76# LoadModule dbd_module modules/dbd.dll
77# LoadModule deflate_module modules/deflate.dll
78LoadModule dir_module modules/dir.dll
79# LoadModule dumpio_module modules/dumpio.dll
80# LoadModule echo_module modules/echo.dll
81LoadModule env_module modules/env.dll
82# LoadModule expires_module modules/expires.dll
83# LoadModule ext_filter_module modules/ext_filt.dll
84# LoadModule filter_module modules/filter.dll
85LoadModule headers_module modules/headers.dll
86# LoadModule ident_module modules/ident.dll
87# LoadModule imagemap_module modules/imagemap.dll
88LoadModule include_module modules/include.dll
89# LoadModule info_module modules/info.dll
90LoadModule log_config_module modules/log_conf.dll
91# LoadModule log_forensic_module modules/log_fore.dll
92LoadModule mime_module modules/mime.dll
93# LoadModule mime_magic_module modules/mime_mag.dll
94LoadModule negotiation_module modules/negotiat.dll
95# LoadModule proxy_module modules/proxy.dll
96# LoadModule proxy_ajp_module modules/proxy_aj.dll
97# LoadModule proxy_balancer_module modules/proxy_ba.dll
98# LoadModule proxy_connect_module modules/proxy_co.dll
99# LoadModule proxy_ftp_module modules/proxy_ft.dll
100# LoadModule proxy_http_module modules/proxy_ht.dll
101LoadModule rewrite_module modules/rewrite.dll
102LoadModule setenvif_module modules/setenvif.dll
103# LoadModule speling_module modules/speling.dll
104# LoadModule ssl_module modules/ssl.dll
105LoadModule status_module modules/status.dll
106# LoadModule unique_id_module modules/unique_i.dll
107LoadModule userdir_module modules/userdir.dll
108# LoadModule usertrack_module modules/usertrac.dll
109# LoadModule version_module modules/version.dll
110# LoadModule vhost_alias_module modules/vhost_al.dll
111
112# PassEnv PERLLIB_PREFIX
113PassEnv PERLLIB
114
115<IfModule !mpm_winnt_module>
116<IfModule !mpm_netware_module>
117#
118# If you wish httpd to run as a different user or group, you must run
119# httpd as root initially and it will switch. 
120#
121# User/Group: The name (or #number) of the user/group to run httpd as.
122# It is usually good practice to create a dedicated user and group for
123# running httpd, as with most system services.
124#
125User daemon
126Group daemon
127</IfModule>
128</IfModule>
129
130HostnameLookups Double
131# 'Main' server configuration
132#
133# The directives in this section set up the values used by the 'main'
134# server, which responds to any requests that aren't handled by a
135# <VirtualHost> definition.  These values also provide defaults for
136# any <VirtualHost> containers you may define later in the file.
137#
138# All of these directives may appear inside <VirtualHost> containers,
139# in which case these default settings will be overridden for the
140# virtual host being defined.
141#
142
143#
144# ServerAdmin: Your address, where problems with the server should be
145# e-mailed.  This address appears on some server-generated pages, such
146# as error documents.  e.g. admin@your-domain.com
147#
148ServerAdmin J.Schoell@pegasus-sun.de
149
150#
151# ServerName gives the name and port that the server uses to identify itself.
152# This can often be determined automatically, but we recommend you specify
153# it explicitly to prevent problems during startup.
154#
155# If your host doesn't have a registered DNS name, enter its IP address here.
156#
157ServerName pegasus-sun.dyndns.org:80
158
159#
160# DocumentRoot: The directory out of which you will serve your
161# documents. By default, all requests are taken from this directory, but
162# symbolic links and aliases may be used to point to other locations.
163#
164# DocumentRoot "D:\Server\apache2\htdocs"
165DocumentRoot "E:\WebServer\Internet"
166
167#
168# Each directory to which Apache has access can be configured with respect
169# to which services and features are allowed and/or disabled in that
170# directory (and its subdirectories).
171#
172# First, we configure the "default" to be a very restrictive set of
173# features. 
174#
175
176#
177# Note that from this point forward you must specifically allow
178# particular features to be enabled - so if something's not working as
179# you might expect, make sure that you have specifically enabled it
180# below.
181#
182
183#
184# This should be changed to whatever you set DocumentRoot to.
185#
186<Directory "E:\WebServer\Internet">
187    #
188    # Possible values for the Options directive are "None", "All",
189    # or any combination of:
190    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
191    #
192    # Note that "MultiViews" must be named *explicitly* --- "Options All"
193    # doesn't give it to you.
194    #
195    # The Options directive is both complicated and important.  Please see
196    # http://httpd.apache.org/docs/2.2/mod/core.html#options
197    # for more information.
198    #
199    Options Indexes FollowSymLinks
200
201    #
202    # AllowOverride controls what directives may be placed in .htaccess files.
203    # It can be "All", "None", or any combination of the keywords:
204    #   Options FileInfo AuthConfig Limit
205    #
206    # AllowOverride AuthConfig
207    AllowOverride All
208
209    #
210    # Controls who can get stuff from this server.
211    #
212    Order allow,deny
213    Allow from all
214
215</Directory>
216
217<Directory />
218    Options FollowSymLinks
219    AllowOverride AuthConfig
220    Order deny,allow
221    Allow from all
222</Directory>
223
224<Directory "E:\WebServer\Internet\Friends">
225    AuthType Basic
226    AuthName "Nur fuer Freunde"
227    AuthUserFile D:\Server\apache2\conf\htuser.pwd
228    AuthGroupFile D:\Server\apache2\conf\htgroups.grp
229    Require group friends
230    # Options FollowSymLinks
231    Options -Indexes
232    AllowOverride AuthConfig
233    Order allow,deny
234    Allow from 10.1.1
235    Satisfy any
236</Directory>
237
238#<Directory "E:\WebServer\Internet\Uploader">
239#    AuthType Basic
240#    AuthName "Upload Bereich"
241#    AuthUserFile D:\Server\apache2\conf\htuser.pwd
242#    AuthGroupFile D:\Server\apache2\conf\htgroups.grp
243#    Require group upload
244    # Options FollowSymLinks
245#    Options -Indexes
246#    AllowOverride AuthConfig
247#    Order allow,deny
248#    Allow from all
249#    Satisfy any
250#</Directory>
251
252<Directory "E:\WebServer\Internet\ClanSphere">
253#    AuthType Basic
254#    AuthName "Nur fuer die Community"
255#    AuthUserFile D:\Server\apache2\conf\htuser.pwd
256#    AuthGroupFile D:\Server\apache2\conf\htgroups.grp
257#    Require group family friends friends-chr
258    # Options FollowSymLinks
259    AllowOverride AuthConfig
260    Order allow,deny
261    Allow from all
262#    Allow from 10.1.1
263#    Satisfy any
264</Directory>
265
266
267<Directory "E:\WebServer\Home">
268    AuthType Basic
269    AuthName "Nur fuer die Familie"
270    AuthUserFile D:\Server\apache2\conf\htuser.pwd
271    AuthGroupFile D:\Server\apache2\conf\htgroups.grp
272    Require group family
273    # Options FollowSymLinks
274    AllowOverride AuthConfig
275    Order allow,deny
276    Allow from 10.1.1
277    Satisfy any
278</Directory>
279
280<Directory "E:\WebServer\Home\Webalizer">
281    AuthType Basic
282    AuthName "Nur fuer die Familie"
283    AuthUserFile D:\Server\apache2\conf\htuser.pwd
284    AuthGroupFile D:\Server\apache2\conf\htgroups.grp
285    Require group admin
286    # Options FollowSymLinks
287    AllowOverride AuthConfig
288    Order allow,deny
289    Allow from 10.1.1
290    Satisfy any
291</Directory>
292
293<Directory "E:\WebServer\Home\Webalizer\Analog">
294Options +Indexes
295</Directory>
296
297#
298# DirectoryIndex: sets the file that Apache will serve if a directory
299# is requested.
300#
301<IfModule dir_module>
302    DirectoryIndex index.html index.php
303</IfModule>
304
305#
306# The following lines prevent .htaccess and .htpasswd files from being
307# viewed by Web clients.
308#
309<FilesMatch "^\.ht">
310    Order allow,deny
311    Deny from all
312</FilesMatch>
313
314#
315# ErrorLog: The location of the error log file.
316# If you do not specify an ErrorLog directive within a <VirtualHost>
317# container, error messages relating to that virtual host will be
318# logged here.  If you *do* define an error logfile for a <VirtualHost>
319# container, that host's errors will be logged there and not here.
320#
321ErrorLog D:\Log\Apache\error_log
322
323#
324# LogLevel: Control the number of messages logged to the error_log.
325# Possible values include: debug, info, notice, warn, error, crit,
326# alert, emerg.
327#
328# LogLevel warn
329LogLevel debug
330
331<IfModule log_config_module>
332    #
333    # The following directives define some format nicknames for use with
334    # a CustomLog directive (see below).
335    #
336    LogFormat "%h %l \"%u\" %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
337    LogFormat "%h %l %u %t \"%r\" %>s %b" common
338
339    <IfModule logio_module>
340      # You need to enable mod_logio.c to use %I and %O
341      LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
342    </IfModule>
343
344    #
345    # The location and format of the access logfile (Common Logfile Format).
346    # If you do not define any access logfiles within a <VirtualHost>
347    # container, they will be logged here.  Contrariwise, if you *do*
348    # define per-<VirtualHost> access logfiles, transactions will be
349    # logged therein and *not* in this file.
350    #
351    #CustomLog D:\Log\Apache\access_log common
352
353    #
354    # If you prefer a logfile with access, agent, and referer information
355    # (Combined Logfile Format) you can use the following directive.
356    #
357    CustomLog D:\Log\Apache\access_log combined
358</IfModule>
359
360<IfModule alias_module>
361    #
362    # Redirect: Allows you to tell clients about documents that used to
363    # exist in your server's namespace, but do not anymore. The client
364    # will make a new request for the document at its new location.
365    # Example:
366    # Redirect permanent /foo http://www.example.com/bar
367
368    #
369    # Alias: Maps web paths into filesystem paths and is used to
370    # access content that does not live under the DocumentRoot.
371    # Example:
372    # Alias /webpath /full/filesystem/path
373    #
374    # If you include a trailing / on /webpath then the server will
375    # require it to be present in the URL.  You will also likely
376    # need to provide a <Directory> section to allow access to
377    # the filesystem path.
378
379    Alias /Bilder "E:\WebServer\Home\Album"
380    Alias /Home "E:\WebServer\Home"
381    # Alias /Friends/Upload "E:\WebServer\Internet\Friends\Upload"
382
383    #
384    # ScriptAlias: This controls which directories contain server scripts.
385    # ScriptAliases are essentially the same as Aliases, except that
386    # documents in the target directory are treated as applications and
387    # run by the server when requested rather than as documents sent to the
388    # client.  The same rules about trailing "/" apply to ScriptAlias
389    # directives as to Alias.
390    #
391    ScriptAlias /cgi-bin/ "E:/WebServer/Internet/cgi-bin/"
392    # ScriptAlias /cgi-bin/ "D:/Server/apache2/cgi-bin/"
393
394</IfModule>
395
396<IfModule cgid_module>
397    #
398    # ScriptSock: On threaded servers, designate the path to the UNIX
399    # socket used to communicate with the CGI daemon of mod_cgid.
400    #
401    #Scriptsock logs/cgisock
402</IfModule>
403
404#
405# "/apache2/cgi-bin" should be changed to whatever your ScriptAliased
406# CGI directory exists, if you have that configured.
407#
408<Directory "E:/WebServer/Internet/cgi-bin/samba">
409    AllowOverride All
410    Options None
411    Order allow,deny
412    Allow from all
413    AuthName "Samba Web Admin Tool"
414    AuthType Basic
415    AuthUserFile D:\Server\apache2\conf\htuser.pwd
416    require valid-user
417</Directory>
418
419<Directory "E:/WebServer/Internet/cgi-bin">
420    AllowOverride All
421    Options None
422#    Options +ExecCGI +Includes
423    Order allow,deny
424    Allow from all
425</Directory>
426
427#
428# DefaultType: the default MIME type the server will use for a document
429# if it cannot otherwise determine one, such as from filename extensions.
430# If your server contains mostly text or HTML documents, "text/plain" is
431# a good value.  If most of your content is binary, such as applications
432# or images, you may want to use "application/octet-stream" instead to
433# keep browsers from trying to display binary files as though they are
434# text.
435#
436DefaultType text/plain
437
438<IfModule mime_module>
439    #
440    # TypesConfig points to the file containing the list of mappings from
441    # filename extension to MIME-type.
442    #
443    TypesConfig conf/mime.types
444
445    #
446    # AddType allows you to add to or override the MIME configuration
447    # file specified in TypesConfig for specific file types.
448    #
449    #AddType application/x-gzip .tgz
450    #
451    # AddEncoding allows you to have certain browsers uncompress
452    # information on the fly. Note: Not all browsers support this.
453    #
454    #AddEncoding x-compress .Z
455    #AddEncoding x-gzip .gz .tgz
456    #
457    # If the AddEncoding directives above are commented-out, then you
458    # probably should define those extensions to indicate media types:
459    #
460    AddType application/x-compress .Z
461    AddType application/x-gzip .gz .tgz
462
463    #
464    # AddHandler allows you to map certain file extensions to "handlers":
465    # actions unrelated to filetype. These can be either built into the server
466    # or added with the Action directive (see below)
467    #
468    # To use CGI scripts outside of ScriptAliased directories:
469    # (You will also need to add "ExecCGI" to the "Options" directive.)
470    #
471    AddHandler cgi-script .cgi .pl
472    AddHandler cgi-script .exe
473
474    # For files that include their own HTTP headers:
475    #AddHandler send-as-is asis
476
477    # For server-parsed imagemap files:
478    #AddHandler imap-file map
479
480    # For type maps (negotiated resources):
481    #AddHandler type-map var
482
483    #
484    # Filters allow you to process content before it is sent to the client.
485    #
486    # To parse .shtml files for server-side includes (SSI):
487    # (You will also need to add "Includes" to the "Options" directive.)
488    #
489    #AddType text/html .shtml
490    #AddOutputFilter INCLUDES .shtml
491</IfModule>
492
493#
494# The mod_mime_magic module allows the server to use various hints from the
495# contents of the file itself to determine its type.  The MIMEMagicFile
496# directive tells the module where the hint definitions are located.
497#
498#MIMEMagicFile conf/magic
499
500#
501# Customizable error responses come in three flavors:
502# 1) plain text 2) local redirects 3) external redirects
503#
504# Some examples:
505#ErrorDocument 500 "The server made a boo boo."
506#ErrorDocument 404 /missing.html
507#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
508#ErrorDocument 402 http://www.example.com/subscription_info.html
509#
510
511#
512# EnableMMAP and EnableSendfile: On systems that support it,
513# memory-mapping or the sendfile syscall is used to deliver
514# files.  This usually improves server performance, but must
515# be turned off when serving from networked-mounted
516# filesystems or if support for these functions is otherwise
517# broken on your system.
518#
519#EnableMMAP off
520#EnableSendfile off
521
522# Supplemental configuration
523#
524# The configuration files in the conf/extra/ directory can be
525# included to add extra features or to modify the default configuration of
526# the server, or you may simply copy their contents here and change as
527# necessary.
528
529# Server-pool management (MPM specific)
530#Include conf/extra/httpd-mpm.conf
531
532# Multi-language error messages
533#Include conf/extra/httpd-multilang-errordoc.conf
534
535# Fancy directory listings
536#Include conf/extra/httpd-autoindex.conf
537
538# Language settings
539#Include conf/extra/httpd-languages.conf
540
541# User home directories
542#Include conf/extra/httpd-userdir.conf
543
544# Real-time info on requests and configuration
545#Include conf/extra/httpd-info.conf
546
547# Virtual hosts
548#Include conf/extra/httpd-vhosts.conf
549
550# Local access to the Apache HTTP Server Manual
551#Include conf/extra/httpd-manual.conf
552
553# Distributed authoring and versioning (WebDAV)
554#Include conf/extra/httpd-dav.conf
555
556# Various default settings
557#Include conf/extra/httpd-default.conf
558
559# Secure (SSL/TLS) connections
560#Include conf/extra/httpd-ssl.conf
561#
562# Note: The following must must be present to support
563#       starting without SSL on platforms with no /dev/random equivalent
564#       but a statically compiled-in mod_ssl.
565#
566<IfModule ssl_module>
567SSLRandomSeed startup builtin
568SSLRandomSeed connect builtin
569</IfModule>
570
571LoadModule php5_module modules/modphp5.dll
572ScriptAlias /php/ "D:\Server\php5"
573AddType application/x-httpd-php .php
574AddType application/x-httpd-php .php5
575AddType application/x-httpd-php .phtml
576AddType application/x-httpd-php-source .phps
577
578
579#
580# IndexOptions: Controls the appearance of server-generated directory
581# listings.
582#
583IndexOptions FancyIndexing HTMLTable IgnoreCase FoldersFirst
584IndexOrderDefault Ascending Name
585
586# We include the /icons/ alias for FancyIndexed directory listings.  If
587# you do not use FancyIndexing, you may comment this out.
588#
589Alias /icons "D:\Server\apache2\icons"
590
591<Directory "D:\Server\apache2\icons">
592    Options Indexes MultiViews
593    AllowOverride None
594    Order allow,deny
595    Allow from all
596</Directory>
597
598#
599# AddIcon* directives tell the server which icon to show for different
600# files or filename extensions.  These are only displayed for
601# FancyIndexed directories.
602#
603AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
604
605AddIconByType (TXT,/icons/text.gif) text/*
606AddIconByType (IMG,/icons/image2.gif) image/*
607AddIconByType (SND,/icons/sound2.gif) audio/*
608AddIconByType (VID,/icons/movie.gif) video/*
609
610AddIcon /icons/binary.gif .bin .exe
611AddIcon /icons/binhex.gif .hqx
612AddIcon /icons/tar.gif .tar
613AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
614AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
615AddIcon /icons/a.gif .ps .ai .eps
616AddIcon /icons/layout.gif .html .shtml .htm .pdf
617AddIcon /icons/text.gif .txt
618AddIcon /icons/c.gif .c
619AddIcon /icons/p.gif .pl .py
620AddIcon /icons/f.gif .for
621AddIcon /icons/dvi.gif .dvi
622AddIcon /icons/uuencoded.gif .uu
623AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
624AddIcon /icons/tex.gif .tex
625AddIcon /icons/bomb.gif core
626
627AddIcon /icons/back.gif ..
628AddIcon /icons/hand.right.gif README
629AddIcon /icons/folder.gif ^^DIRECTORY^^
630AddIcon /icons/blank.gif ^^BLANKICON^^
631
632#
633# DefaultIcon is which icon to show for files which do not have an icon
634# explicitly set.
635#
636DefaultIcon /icons/unknown.gif
637
638#
639# AddDescription allows you to place a short description after a file in
640# server-generated indexes.  These are only displayed for FancyIndexed
641# directories.
642# Format: AddDescription "description" filename
643#
644#AddDescription "GZIP compressed document" .gz
645#AddDescription "tar archive" .tar
646#AddDescription "GZIP compressed tar archive" .tgz
647
648#
649# ReadmeName is the name of the README file the server will look for by
650# default, and append to directory listings.
651#
652# HeaderName is the name of a file which should be prepended to
653# directory indexes.
654ReadmeName README.html
655HeaderName HEADER.html
656
657#
658# IndexIgnore is a set of filenames which directory indexing should ignore
659# and not include in the listing.  Shell-style wildcarding is permitted.
660#
661IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t