]> git.pld-linux.org Git - packages/apache1.git/blame - apache1-httpd.conf
rel 15; builds
[packages/apache1.git] / apache1-httpd.conf
CommitLineData
c6d435c1
ER
1### $Id$
2###
3### Main Configuration Section
c6d435c1
ER
4###
5### This config aims to be clean and readable, you should see
96f590b9 6### /usr/share/doc/apache1-*/apache.conf.dist.gz for comments on the directives.
c6d435c1 7###
0f05f0de
JB
8
9ServerType standalone
c6d435c1 10ServerRoot "/etc/apache"
0f05f0de 11
0f05f0de 12ResourceConfig /dev/null
0a771c6c 13AccessConfig /dev/null
0f05f0de 14
c6d435c1
ER
15LockFile /var/run/apache.lock
16PidFile /var/run/apache.pid
17ScoreBoardFile /var/run/apache.scoreboard
43e5a088 18CoreDumpDirectory /var/run/apache
c7726535 19ErrorLog logs/error_log
c6d435c1 20LogLevel warn
0f05f0de 21
0f05f0de 22AccessFileName .htaccess
0f05f0de 23UseCanonicalName On
0f05f0de
JB
24DefaultType text/plain
25
0f05f0de 26HostnameLookups Off
0f05f0de 27ServerSignature Email
dd2e4e0d 28#AddDefaultCharset "utf-8"
0f05f0de 29
c6d435c1
ER
30User http
31Group http
0f05f0de 32
c6d435c1
ER
33# ServerAdmin: Your address, where problems with the server should be
34# e-mailed. This address appears on some server-generated pages, such
35# as error documents.
36ServerAdmin root@localhost
29a1027b 37ServerName localhost
0f05f0de 38
c6d435c1
ER
39###
40### IP Address/Port
41###
42#BindAddress *
0f05f0de 43
8b99b488
ER
44# Listen can take two arguments.
45# (this is an extension for supporting IPv6 addresses)
46#Listen :: 80
47#Listen 0.0.0.0 80
03a5095d 48Listen 80
8b99b488 49
c6d435c1
ER
50###
51### Performance settings Section
52###
0f05f0de 53
c6d435c1
ER
54### Timeout
55# The number of seconds before receives and sends time out.
56Timeout 300
0f05f0de 57
c6d435c1
ER
58### KeepAlive
59# Whether or not to allow persistent connections (more than one request per
60# connection). Set to "Off" to deactivate.
61KeepAlive On
0f05f0de 62
c6d435c1
ER
63### MaxKeepAliveRequests
64# The maximum number of requests to allow during a persistent connection.
65# Set to 0 to allow an unlimited amount. We recommend you leave this number
66# high, for maximum performance.
0f05f0de 67
c6d435c1 68MaxKeepAliveRequests 100
0f05f0de 69
c6d435c1
ER
70### KeepAliveTimeout
71# Number of seconds to wait for the next request from the same client on the
72# same connection.
0f05f0de 73
c6d435c1 74KeepAliveTimeout 15
0f05f0de 75
c6d435c1
ER
76# StartServers: number of server processes to start
77# MinSpareServers: minimum number of server processes which are kept spare
78# MaxSpareServers: maximum number of server processes which are kept spare
79# MaxClients: maximum number of server processes allowed to start
80# MaxRequestsPerChild: maximum number of requests a server process serves
81StartServers 5
82MinSpareServers 5
83MaxSpareServers 10
84MaxClients 150
85MaxRequestsPerChild 30
0f05f0de 86
ba415ee6
ER
87# This controls the directory to which Apache attempts to switch before dumping
88# core. The default is in the ServerRoot directory, however since this should
89# not be writable by the user the server runs as, core dumps won't normally get
90# written. If you want a core dump for debugging, you can use this directive to
91# place it in a different location.
92# Please note that you should also set ulimit coredumpsize to unlimited in
93# /etc/sysconfig/apache for this to have any effect.
94#CoreDumpDirectory /var/tmp
95
c6d435c1 96# These lines here are for packages which still use apxs to activate module.
0a771c6c 97# LoadModule access_module modules/mod_access.so
c6d435c1 98# AddModule mod_foo.c
c56b6926
ER
99
100# Include other modules and packages config.
101Include conf.d/*.conf
102# Include webapps config
103Include webapps.d/*.conf
104
105# ScriptAlias: This controls which directories contain server scripts.
106<IfModule mod_alias.c>
107 ScriptAlias /cgi-bin/ "/home/services/apache/cgi-bin/"
108
109 <Directory "/home/services/apache/cgi-bin">
110 AllowOverride None
111 Options None
5b724287
ER
112 <IfModule mod_access.c>
113 Order allow,deny
114 Allow from all
115 </IfModule>
c56b6926
ER
116 </Directory>
117</IfModule>
5ed44ee9
ER
118
119# VirtualHost: Allows the daemon to respond to requests for more than one
120# server address, if your server machine is configured to accept IP packets
121# for multiple addresses. This can be accomplished with the ifconfig
122# alias flag, or through kernel patches like VIF.
123
124# Any apache.conf conf directive may go into a VirtualHost command.
125# See also the BindAddress entry.
126
127# Setup default vhost (first one defined in config) and include vhosts configuration
03a5095d
ER
128NameVirtualHost 0.0.0.0:80
129<VirtualHost 0.0.0.0:80>
5ed44ee9
ER
130 ServerName localhost
131# ServerAdmin webmaster@host.example.com
132# DocumentRoot /www/docs/host.example.com
133# ErrorLog logs/host.example.com-error_log
134# TransferLog logs/host.example.com-access_log
135</VirtualHost>
136
137Include vhosts.d/*.conf
This page took 0.102653 seconds and 5 git commands to generate.