1 ###############################################################################
2 # Apache configuration file for OMD site specific webserver daemon
4 # This file is only used, if you have set WEBSERVER to 'own' (which
5 # is the default). It is the configuration for a site-specific additional
6 # Apache server process, which is just listening on 127.0.0.1 and is
7 # called by the system-Apache via mod_proxy.
9 # Advantages are: No root-permissions are needed for administrating this
10 # Apache and priviledges are better separated. Also each OMD site has its
11 # own Apache access and error logs below ~/var/log/apache.
12 ###############################################################################
16 # OMD OMD OMD OMD OMD OMD OMD OMD OMD OMD OMD OMD ----------------------------
17 # Better do not change anything in this block or you will have to
18 # resolve conflicts in omd cp/mv/upate:
20 ServerRoot "###ROOT###"
21 PidFile ###ROOT###/tmp/apache/run/apache.pid
22 DocumentRoot "###ROOT###/var/www"
24 # Include file where TCP port number is configured. That file
25 # is automatically created and changed by 'omd config' if you
26 # change APACHE_TCP_PORT.
27 Include ###ROOT###/etc/apache/listen-port.conf
29 # User/Group to run the webserver with
33 # ---------------------------------------------------------------
35 # Here you can configure and tune Apache
38 ServerAdmin nobody@localhost
39 #ServerName www.example.com:80
44 MaxKeepAliveRequests 100
47 DirectoryIndex index.html index.php index.html.var
48 AccessFileName .htaccess
55 ## Server-Pool Size Regulation (MPM specific)
59 # StartServers: number of server processes to start
60 # MinSpareServers: minimum number of server processes which are kept spare
61 # MaxSpareServers: maximum number of server processes which are kept spare
62 # ServerLimit: Upper limit on configurable number of processes
63 # (maximum value for MaxClients for the lifetime of the server)
64 # MaxClients: Maximum number of connections that will be processed simultaneously
65 # (maximum number of server processes allowed to start)
66 # MaxRequestsPerChild: maximum number of requests a server process serves
73 MaxRequestsPerChild 4000
77 # StartServers: initial number of server processes to start
78 # MaxClients: maximum number of simultaneous client connections
79 # MinSpareThreads: minimum number of worker threads which are kept spare
80 # MaxSpareThreads: maximum number of worker threads which are kept spare
81 # ThreadsPerChild: constant number of worker threads in each server process
82 # MaxRequestsPerChild: maximum number of requests a server process serves
92 ###############################################################################
94 ###############################################################################
95 # Ugly IfModules! But they seem to be needed because some distributions have
96 # modules compiled in. An example is the log_config module which is
97 # compiled in on ubuntu/debian and a module on sles/centos.
99 LoadModule mpm_prefork_module ###APACHE_MODULE_DIR###/mod_mpm_prefork.so
101 <IfModule !mod_log_config.c>
102 LoadModule log_config_module ###APACHE_MODULE_DIR###/mod_log_config.so
104 LoadModule access_compat_module ###APACHE_MODULE_DIR###/mod_access_compat.so
105 LoadModule auth_basic_module ###APACHE_MODULE_DIR###/mod_auth_basic.so
106 LoadModule authn_core_module ###APACHE_MODULE_DIR###/mod_authn_core.so
107 LoadModule authn_file_module ###APACHE_MODULE_DIR###/mod_authn_file.so
108 LoadModule authz_core_module ###APACHE_MODULE_DIR###/mod_authz_core.so
109 LoadModule authz_host_module ###APACHE_MODULE_DIR###/mod_authz_host.so
110 LoadModule authz_user_module ###APACHE_MODULE_DIR###/mod_authz_user.so
111 LoadModule autoindex_module ###APACHE_MODULE_DIR###/mod_autoindex.so
112 LoadModule env_module ###APACHE_MODULE_DIR###/mod_env.so
113 LoadModule expires_module ###APACHE_MODULE_DIR###/mod_expires.so
114 LoadModule filter_module ###APACHE_MODULE_DIR###/mod_filter.so
115 LoadModule deflate_module ###APACHE_MODULE_DIR###/mod_deflate.so
116 LoadModule headers_module ###APACHE_MODULE_DIR###/mod_headers.so
117 LoadModule setenvif_module ###APACHE_MODULE_DIR###/mod_setenvif.so
118 LoadModule mime_magic_module ###APACHE_MODULE_DIR###/mod_mime_magic.so
119 LoadModule mime_module ###APACHE_MODULE_DIR###/mod_mime.so
120 LoadModule negotiation_module ###APACHE_MODULE_DIR###/mod_negotiation.so
121 LoadModule dir_module ###APACHE_MODULE_DIR###/mod_dir.so
122 LoadModule alias_module ###APACHE_MODULE_DIR###/mod_alias.so
123 LoadModule rewrite_module ###APACHE_MODULE_DIR###/mod_rewrite.so
124 LoadModule cgi_module ###APACHE_MODULE_DIR###/mod_cgi.so
125 LoadModule status_module ###APACHE_MODULE_DIR###/mod_status.so
126 <IfModule !mod_unixd.c>
127 LoadModule unixd_module ###APACHE_MODULE_DIR###/mod_unixd.so
131 Options FollowSymLinks
136 # Configure mod_status (if available)
138 <IfModule mod_status.c>
139 <Location /server-status>
140 SetHandler server-status
143 Allow from 127.0.0.1 ::1
146 # Keep track of extended status information for each request
151 # The following lines prevent .htaccess and .htpasswd files from being
152 # viewed by Web clients.
159 TypesConfig /etc/mime.types
162 # Loglevel and logfile configuration
164 LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
167 # Language configuration
170 LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW
171 ForceLanguagePriority Prefer Fallback
173 AddDefaultCharset UTF-8
175 AddType application/x-compress .Z
176 AddType application/x-gzip .gz .tgz
178 AddHandler type-map var
181 # PHP specific configuration
183 AddType text/html .php
187 # The following directives modify normal HTTP response behavior to
188 # handle known problems with browser implementations.
190 BrowserMatch "Mozilla/2" nokeepalive
191 BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
192 BrowserMatch "RealPlayer 4\.0" force-response-1.0
193 BrowserMatch "Java/1\.0" force-response-1.0
194 BrowserMatch "JDK/1\.0" force-response-1.0
197 # The following directive disables redirects on non-GET requests for
198 # a directory that does not include the trailing slash. This fixes a
199 # problem with Microsoft WebFolders which does not appropriately handle
200 # redirects for folders with DAV methods.
201 # Same deal with Apple's DAV filesystem and Gnome VFS support for DAV.
203 BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
204 BrowserMatch "MS FrontPage" redirect-carefully
205 BrowserMatch "^WebDrive" redirect-carefully
206 BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
207 BrowserMatch "^gnome-vfs/1.0" redirect-carefully
208 BrowserMatch "^XML Spy" redirect-carefully
209 BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully
212 # OMD OMD OMD OMD OMD OMD OMD OMD OMD OMD OMD OMD ----------------------------
213 # Do not change anything below here
215 MIMEMagicFile ###ROOT###/etc/apache/magic
216 ErrorLog ###ROOT###/var/log/apache/error_log
217 CustomLog ###ROOT###/var/log/apache/access_log combined
219 # fcgi settings must be site specific and cannot be used from shared apache
220 SharememPath "###ROOT###/tmp/apache/fcgid_shm"
221 SocketPath "###ROOT###/tmp/apache/fcgid_sock"
223 # Load config files from the include dir. You can put your own
224 # configuration there. Also addons put default files there.
225 Include ###ROOT###/etc/apache/conf.d/*.conf