3 ### Main Configuration Section
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.
10 ServerRoot "/etc/apache"
12 ResourceConfig /dev/null
13 AccessConfig /dev/null
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
22 AccessFileName .htaccess
24 DefaultType text/plain
28 #AddDefaultCharset "utf-8"
33 # ServerAdmin: Your address, where problems with the server should be
34 # e-mailed. This address appears on some server-generated pages, such
36 ServerAdmin root@localhost
44 # Listen can take two arguments.
45 # (this is an extension for supporting IPv6 addresses)
51 ### Performance settings Section
55 # The number of seconds before receives and sends time out.
59 # Whether or not to allow persistent connections (more than one request per
60 # connection). Set to "Off" to deactivate.
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.
68 MaxKeepAliveRequests 100
71 # Number of seconds to wait for the next request from the same client on the
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
85 MaxRequestsPerChild 30
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
96 # These lines here are for packages which still use apxs to activate module.
97 # LoadModule access_module modules/mod_access.so
100 # Include other modules and packages config.
101 Include conf.d/*.conf
102 # Include webapps config
103 Include webapps.d/*.conf
105 # ScriptAlias: This controls which directories contain server scripts.
106 <IfModule mod_alias.c>
107 ScriptAlias /cgi-bin/ "/home/services/apache/cgi-bin/"
109 <Directory "/home/services/apache/cgi-bin">
112 <IfModule mod_access.c>
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.
124 # Any apache.conf conf directive may go into a VirtualHost command.
125 # See also the BindAddress entry.
127 # Setup default vhost (first one defined in config) and include vhosts configuration
128 NameVirtualHost 0.0.0.0:80
129 <VirtualHost 0.0.0.0:80>
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
137 Include vhosts.d/*.conf