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