]> git.pld-linux.org Git - packages/apache.git/blame - apache-httpd.conf
- drop mpm related todo entries
[packages/apache.git] / apache-httpd.conf
CommitLineData
1fee6743 1# $Id$
9d781f9b 2#
e157932f
ER
3# This is the main Apache HTTP server configuration file.
4# It contains the configuration directives that give the server its instructions.
9d781f9b 5#
e157932f
ER
6# This config aims to be clean and readable.
7# See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
987d196f 8# In particular, see
e157932f
ER
9# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
10# for a discussion of each configuration directive.
4af76ed4 11
60c726e0 12ServerRoot "/etc/httpd"
4af76ed4 13
e157932f
ER
14# User/Group: The name (or #number) of the user/group to run httpd as.
15# It is usually good practice to create a dedicated user and group for
16# running httpd, as with most system services.
17User http
18Group http
99ce08d7 19
9d781f9b 20# Listen: Allows you to bind Apache to specific IP addresses and/or
e157932f 21# ports, instead of the default. See also the <VirtualHost>
9d781f9b
MM
22# directive.
23#
53fc5f22 24# Change this to Listen on specific IP addresses as shown below to
e157932f
ER
25# prevent Apache from glomming onto all bound IP addresses.
26#Listen 192.168.1.1:80
9d781f9b 27Listen 80
4af76ed4 28
4af76ed4 29# ServerAdmin: Your address, where problems with the server should be
30# e-mailed. This address appears on some server-generated pages, such
80da5b98 31# as error documents. e.g. admin@example.com
4af76ed4 32#
65cd19d5 33ServerAdmin root@example.com
4af76ed4 34
9d781f9b
MM
35# ServerName gives the name and port that the server uses to identify itself.
36# This can often be determined automatically, but we recommend you specify
37# it explicitly to prevent problems during startup.
38#
4af76ed4 39# If your host doesn't have a registered DNS name, enter its IP address here.
4af76ed4 40#
53fc5f22 41ServerName localhost
4af76ed4 42
9d781f9b
MM
43# ErrorLog: The location of the error log file.
44# If you do not specify an ErrorLog directive within a <VirtualHost>
45# container, error messages relating to that virtual host will be
46# logged here. If you *do* define an error logfile for a <VirtualHost>
47# container, that host's errors will be logged there and not here.
e157932f 48ErrorLog logs/error_log
9d781f9b 49
9d781f9b
MM
50# LogLevel: Control the number of messages logged to the error_log.
51# Possible values include: debug, info, notice, warn, error, crit,
52# alert, emerg.
9d781f9b
MM
53LogLevel warn
54
50707f42
ER
55Timeout 300
56KeepAlive On
57MaxKeepAliveRequests 100
58KeepAliveTimeout 5
b06b509a 59UseCanonicalName Off
50707f42 60AccessFileName .htaccess
0490814b 61ServerTokens Prod
50707f42
ER
62ServerSignature On
63HostnameLookups Off
2d070148 64#AddDefaultCharset UTF-8
50707f42 65
786e71ff
PG
66TraceEnable Off
67
e157932f 68# Include other modules and packages config.
61ffca13 69IncludeOptional conf.d/*.conf
ac2899f4 70
e157932f 71# Include webapps config
61ffca13 72IncludeOptional webapps.d/*.conf
775a4f24
ER
73
74<IfModule alias_module>
75 # ScriptAlias: This controls which directories contain server scripts.
76 # ScriptAliases are essentially the same as Aliases, except that
77 # documents in the target directory are treated as applications and
78 # run by the server when requested rather than as documents sent to the
79 # client. The same rules about trailing "/" apply to ScriptAlias
80 # directives as to Alias.
81 #
82 ScriptAlias /cgi-bin/ "/home/services/httpd/cgi-bin/"
83
84 <Directory "/home/services/httpd/cgi-bin">
85 AllowOverride None
86 Options None
87 <IfModule mod_authz_host.c>
40ca719a 88 Require all granted
775a4f24
ER
89 </IfModule>
90 </Directory>
91</IfModule>
a6f9c2c2
ER
92
93# VirtualHost: Allows the daemon to respond to requests for more than one
94# server address, if your server machine is configured to accept IP packets
95# for multiple addresses. This can be accomplished with the ifconfig
96# alias flag, or through kernel patches like VIF.
97
98# Any apache.conf conf directive may go into a VirtualHost command.
99# See also the BindAddress entry.
100
860c70b0 101# Setup default vhost (first one defined in config) and include vhosts configuration
85805405 102<VirtualHost *:80>
860c70b0
ER
103 ServerName localhost
104# ServerAdmin webmaster@host.example.com
784c115f 105# DocumentRoot /www/docs/host.example.com
860c70b0
ER
106# ErrorLog logs/host.example.com-error_log
107# TransferLog logs/host.example.com-access_log
108</VirtualHost>
109
61ffca13 110IncludeOptional vhosts.d/*.conf
This page took 0.096902 seconds and 4 git commands to generate.