apache/apache.base

Mon, 28 Jan 2013 17:37:18 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Mon, 28 Jan 2013 17:37:18 +0100
changeset 758
a2c6460cfb16
permissions
-rw-r--r--

Correct socket error reporting improvement with IPv6 portable code,
after helpful recommendation by Saúl Ibarra Corretgé on OSips devlist.

michael@684 1 ##
michael@684 2 ## apache.base -- Apache Base/Default Configuration
michael@684 3 ## ______________________________________________________
michael@684 4 ##
michael@684 5 ## PLEASE DO NOT EDIT THIS FILE!! ADJUST CONFIGURATION BY
michael@684 6 ## OVERRIDING DIRECTIVES IN "apache.conf" INSTEAD, PLEASE!
michael@684 7 ## ______________________________________________________
michael@684 8 ##
michael@684 9
michael@684 10 # global server
michael@684 11 ServerRoot @l_prefix@
michael@684 12 ServerAdmin root@@l_hostname@.@l_domainname@
michael@684 13 ServerName @l_hostname@.@l_domainname@
michael@684 14 ServerTokens os
michael@684 15 User @l_nusr@
michael@684 16 Group @l_ngrp@
michael@684 17
michael@684 18 # runtime files
michael@684 19 LockFile @l_prefix@/var/apache/run/apache.lock
michael@684 20 <IfModule mpm_prefork_module>
michael@684 21 PidFile @l_prefix@/var/apache/run/apache.pid
michael@684 22 ScoreBoardFile @l_prefix@/var/apache/run/apache.sb
michael@684 23 </IfModule>
michael@684 24 <IfModule cgid_module>
michael@684 25 ScriptSock @l_prefix@/var/apache/run/apache.cgisock
michael@684 26 </IfModule>
michael@684 27
michael@684 28 # server behaviour
michael@684 29 Timeout 300
michael@684 30 KeepAlive on
michael@684 31 MaxKeepAliveRequests 100
michael@684 32 KeepAliveTimeout 15
michael@684 33 <IfModule mpm_prefork_module>
michael@684 34 MinSpareServers 5
michael@684 35 MaxSpareServers 10
michael@684 36 StartServers 5
michael@684 37 MaxClients 150
michael@684 38 MaxRequestsPerChild 0
michael@684 39 </IfModule>
michael@684 40 <IfModule mpm_worker_module>
michael@684 41 MinSpareThreads 25
michael@684 42 MaxSpareThreads 75
michael@684 43 ThreadsPerChild 25
michael@684 44 StartServers 2
michael@684 45 ServerLimit 16
michael@684 46 MaxClients 150
michael@684 47 MaxRequestsPerChild 0
michael@684 48 </IfModule>
michael@684 49 HostnameLookups off
michael@684 50 UseCanonicalName on
michael@684 51
michael@684 52 # access logging
michael@684 53 <IfModule log_config_module>
michael@684 54 LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
michael@684 55 <IfModule logio_module>
michael@684 56 LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combined_io
michael@684 57 </IfModule>
michael@684 58 <IfModule ssl_module>
michael@684 59 LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %{SSL_PROTOCOL}x %{SSL_CIPHER}x" combined_ssl
michael@684 60 </IfModule>
michael@684 61 LogFormat "%h %l %u %t \"%r\" %>s %b" common
michael@684 62 LogFormat "%{Referer}i -> %U" referer
michael@684 63 LogFormat "%{User-agent}i" agent
michael@684 64 CustomLog @l_prefix@/var/apache/log/access.log common env=!ignore_global_access
michael@684 65 </IfModule>
michael@684 66
michael@684 67 # error logging
michael@684 68 LogLevel warn
michael@684 69 ErrorLog @l_prefix@/var/apache/log/error.log
michael@684 70 ServerSignature on
michael@684 71
michael@684 72 # script logging
michael@684 73 <IfModule cgi_module>
michael@684 74 ScriptLog @l_prefix@/var/apache/log/script.log
michael@684 75 ScriptLogBuffer 1024
michael@684 76 ScriptLogLength 10485760
michael@684 77 </IfModule>
michael@684 78
michael@684 79 # secure root directory
michael@684 80 <Directory />
michael@684 81 Options FollowSymLinks
michael@684 82 AllowOverride None
michael@684 83 Order deny,allow
michael@684 84 Deny from all
michael@684 85 </Directory>
michael@684 86
michael@684 87 # configure global document root
michael@684 88 DocumentRoot @l_prefix@/share/apache/htdocs
michael@684 89 <IfModule alias_module>
michael@684 90 Alias /apache-htdocs @l_prefix@/share/apache/htdocs
michael@684 91 </IfModule>
michael@684 92 <Directory "@l_prefix@/share/apache/htdocs">
michael@684 93 Options Indexes FollowSymLinks MultiViews
michael@684 94 AllowOverride none
michael@684 95 Order allow,deny
michael@684 96 Allow from all
michael@684 97 </Directory>
michael@684 98
michael@684 99 # default directories and files
michael@684 100 <IfModule userdir_module>
michael@684 101 UserDir public_html
michael@684 102 UserDir disabled root
michael@684 103 </IfModule>
michael@684 104 <IfModule dir_module>
michael@684 105 DirectoryIndex index.html
michael@684 106 </IfModule>
michael@684 107
michael@684 108 # local configuration files
michael@684 109 AccessFileName .htaccess
michael@684 110 <Files ~ "^\.ht">
michael@684 111 Order allow,deny
michael@684 112 Deny from all
michael@684 113 Satisfy All
michael@684 114 </Files>
michael@684 115
michael@684 116 # global Icons and CGI directory
michael@684 117 <IfModule alias_module>
michael@684 118 Alias /apache-icons @l_prefix@/share/apache/icons
michael@684 119 <Directory "@l_prefix@/share/apache/icons">
michael@684 120 Options Indexes MultiViews
michael@684 121 AllowOverride None
michael@684 122 Order allow,deny
michael@684 123 Allow from all
michael@684 124 </Directory>
michael@684 125 AliasMatch ^/apache-manual(?:/(?:de|en|es|fr|ja|ko|pt-br|ru))?(/.*)?$ @l_prefix@/share/apache/manual$1
michael@684 126 <Directory "@l_prefix@/share/apache/manual">
michael@684 127 Options Indexes
michael@684 128 AllowOverride None
michael@684 129 Order allow,deny
michael@684 130 Allow from all
michael@684 131 <Files *.html>
michael@684 132 SetHandler type-map
michael@684 133 </Files>
michael@684 134 SetEnvIf Request_URI ^/apache-manual/(de|en|es|fr|ja|ko|pt-br|ru)/ prefer-language=$1
michael@684 135 RedirectMatch 301 ^/apache-manual(?:/(de|en|es|fr|ja|ko|pt-br|ru)){2,}(/.*)?$ /apache-manual/$1$2
michael@684 136 LanguagePriority en de es fr ja ko pt-br ru
michael@684 137 ForceLanguagePriority Prefer Fallback
michael@684 138 </Directory>
michael@684 139 Alias /apache-error @l_prefix@/share/apache/error
michael@684 140 <Directory "@l_prefix@/share/apache/error">
michael@684 141 Options IncludesNoExec
michael@684 142 AllowOverride None
michael@684 143 Order allow,deny
michael@684 144 Allow from all
michael@684 145 AddOutputFilter Includes html
michael@684 146 AddHandler type-map var
michael@684 147 LanguagePriority en cs de es fr it ja ko nl pl pt-br ro sv tr
michael@684 148 ForceLanguagePriority Prefer Fallback
michael@684 149 </Directory>
michael@684 150 ScriptAlias /openpkg-cgi "@l_prefix@/cgi"
michael@684 151 <Directory "@l_prefix@/cgi">
michael@684 152 AllowOverride None
michael@684 153 Options None
michael@684 154 Order allow,deny
michael@684 155 Allow from all
michael@684 156 </Directory>
michael@684 157 </IfModule>
michael@684 158
michael@684 159 # global server status information
michael@684 160 <IfModule status_module>
michael@684 161 ExtendedStatus on
michael@684 162 <Location /apache-server-status>
michael@684 163 SetHandler server-status
michael@684 164 Order deny,allow
michael@684 165 Deny from all
michael@684 166 Allow from 127.0.0.1
michael@684 167 </Location>
michael@684 168 <Location /apache-server-info>
michael@684 169 SetHandler server-info
michael@684 170 Order deny,allow
michael@684 171 Deny from all
michael@684 172 Allow from 127.0.0.1
michael@684 173 </Location>
michael@684 174 </IfModule>
michael@684 175
michael@684 176 # automatic CGI and SSI recognition
michael@684 177 <IfModule mime_module>
michael@684 178 <IfModule cgi_module>
michael@684 179 AddHandler cgi-script .cgi
michael@684 180 </IfModule>
michael@684 181 <IfModule include_module>
michael@684 182 AddType text/html .shtml
michael@684 183 AddOutputFilter INCLUDES .shtml
michael@684 184 </IfModule>
michael@684 185 </IfModule>
michael@684 186
michael@684 187 # multi-language error documents
michael@684 188 ErrorDocument 400 /apache-error/HTTP_BAD_REQUEST.html.var
michael@684 189 ErrorDocument 401 /apache-error/HTTP_UNAUTHORIZED.html.var
michael@684 190 ErrorDocument 403 /apache-error/HTTP_FORBIDDEN.html.var
michael@684 191 ErrorDocument 404 /apache-error/HTTP_NOT_FOUND.html.var
michael@684 192 ErrorDocument 405 /apache-error/HTTP_METHOD_NOT_ALLOWED.html.var
michael@684 193 ErrorDocument 408 /apache-error/HTTP_REQUEST_TIME_OUT.html.var
michael@684 194 ErrorDocument 410 /apache-error/HTTP_GONE.html.var
michael@684 195 ErrorDocument 411 /apache-error/HTTP_LENGTH_REQUIRED.html.var
michael@684 196 ErrorDocument 412 /apache-error/HTTP_PRECONDITION_FAILED.html.var
michael@684 197 ErrorDocument 413 /apache-error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
michael@684 198 ErrorDocument 414 /apache-error/HTTP_REQUEST_URI_TOO_LARGE.html.var
michael@684 199 ErrorDocument 415 /apache-error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
michael@684 200 ErrorDocument 500 /apache-error/HTTP_INTERNAL_SERVER_ERROR.html.var
michael@684 201 ErrorDocument 501 /apache-error/HTTP_NOT_IMPLEMENTED.html.var
michael@684 202 ErrorDocument 502 /apache-error/HTTP_BAD_GATEWAY.html.var
michael@684 203 ErrorDocument 503 /apache-error/HTTP_SERVICE_UNAVAILABLE.html.var
michael@684 204 ErrorDocument 506 /apache-error/HTTP_VARIANT_ALSO_VARIES.html.var
michael@684 205
michael@684 206 # automatic directory indexing
michael@684 207 <IfModule autoindex_module>
michael@684 208 IndexOptions FancyIndexing HTMLTable VersionSort
michael@684 209 ReadmeName README
michael@684 210 HeaderName HEADER
michael@684 211 IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
michael@684 212 DefaultIcon /apache-icons/unknown.gif
michael@684 213 AddIcon /apache-icons/back.gif ..
michael@684 214 AddIcon /apache-icons/dir.gif ^^DIRECTORY^^
michael@684 215 AddIcon /apache-icons/blank.gif ^^BLANKICON^^
michael@684 216 AddIcon /apache-icons/binary.gif .bin .exe
michael@684 217 AddIcon /apache-icons/binhex.gif .hqx
michael@684 218 AddIcon /apache-icons/tar.gif .tar
michael@684 219 AddIcon /apache-icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
michael@684 220 AddIcon /apache-icons/compressed.gif .Z .z .tgz .gz .zip
michael@684 221 AddIcon /apache-icons/a.gif .ps .ai .eps
michael@684 222 AddIcon /apache-icons/layout.gif .html .shtml .htm .pdf
michael@684 223 AddIcon /apache-icons/text.gif .txt
michael@684 224 AddIcon /apache-icons/c.gif .c
michael@684 225 AddIcon /apache-icons/p.gif .pl .py
michael@684 226 AddIcon /apache-icons/f.gif .for
michael@684 227 AddIcon /apache-icons/dvi.gif .dvi
michael@684 228 AddIcon /apache-icons/uuencoded.gif .uu
michael@684 229 AddIcon /apache-icons/script.gif .conf .sh .shar .csh .ksh .tcl
michael@684 230 AddIcon /apache-icons/tex.gif .tex
michael@684 231 AddIcon /apache-icons/bomb.gif core
michael@684 232 AddIconByEncoding (CMP,/apache-icons/compressed.gif) x-compress x-gzip
michael@684 233 AddIconByType (TXT,/apache-icons/text.gif) text/*
michael@684 234 AddIconByType (IMG,/apache-icons/image2.gif) image/*
michael@684 235 AddIconByType (SND,/apache-icons/sound2.gif) audio/*
michael@684 236 AddIconByType (VID,/apache-icons/movie.gif) video/*
michael@684 237 </IfModule>
michael@684 238
michael@684 239 # MIME types and content negotiation
michael@684 240 DefaultType text/plain
michael@684 241 <IfModule mime_module>
michael@684 242 TypesConfig @l_prefix@/etc/apache/mime.types
michael@684 243 AddType application/x-compress .Z
michael@684 244 AddType application/x-gzip .gz .tgz
michael@684 245 AddType application/x-tar .tar
michael@684 246 AddEncoding x-compress Z
michael@684 247 AddEncoding x-gzip gz tgz
michael@684 248 AddLanguage da .dk
michael@684 249 AddLanguage nl .nl
michael@684 250 AddLanguage en .en
michael@684 251 AddLanguage et .ee
michael@684 252 AddLanguage fr .fr
michael@684 253 AddLanguage de .de
michael@684 254 AddLanguage el .el
michael@684 255 AddLanguage he .he
michael@684 256 AddCharset ISO-8859-8 .iso8859-8
michael@684 257 AddLanguage it .it
michael@684 258 AddLanguage ja .ja
michael@684 259 AddCharset ISO-2022-JP .jis
michael@684 260 AddLanguage kr .kr
michael@684 261 AddCharset ISO-2022-KR .iso-kr
michael@684 262 AddLanguage no .no
michael@684 263 AddLanguage pl .po
michael@684 264 AddCharset ISO-8859-2 .iso-pl
michael@684 265 AddLanguage pt .pt
michael@684 266 AddLanguage pt-br .pt-br
michael@684 267 AddLanguage ltz .lu
michael@684 268 AddLanguage ca .ca
michael@684 269 AddLanguage es .es
michael@684 270 AddLanguage sv .se
michael@684 271 AddLanguage cz .cz
michael@684 272 AddLanguage ru .ru
michael@684 273 AddLanguage tw .tw
michael@684 274 AddCharset Big5 .Big5 .big5
michael@684 275 AddCharset WINDOWS-1251 .cp-1251
michael@684 276 AddCharset CP866 .cp866
michael@684 277 AddCharset ISO-8859-5 .iso-ru
michael@684 278 AddCharset KOI8-R .koi8-r
michael@684 279 AddCharset UCS-2 .ucs2
michael@684 280 AddCharset UCS-4 .ucs4
michael@684 281 AddCharset UTF-8 .utf8
michael@684 282 </IfModule>
michael@684 283 <IfModule negotiation_module>
michael@684 284 AddHandler type-map .var
michael@684 285 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
michael@684 286 ForceLanguagePriority Prefer Fallback
michael@684 287 </IfModule>
michael@684 288 <IfModule mime_magic_module>
michael@684 289 MIMEMagicFile @l_prefix@/etc/apache/mime.magic
michael@684 290 </IfModule>
michael@684 291
michael@684 292 # SSL/TLS support
michael@684 293 <IfModule ssl_module>
michael@684 294 SSLRandomSeed startup builtin
michael@684 295 SSLRandomSeed connect builtin
michael@684 296 SSLMutex sem
michael@684 297 SSLCADNRequestFile @l_prefix@/etc/x509/public-ca.crt.pem
michael@684 298 SSLCACertificateFile @l_prefix@/etc/x509/public-ca.crt.pem
michael@684 299 SSLSessionCache shm:@l_prefix@/var/apache/run/apache.ssl_scache(512000)
michael@684 300 SSLSessionCacheTimeout 300
michael@684 301 SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
michael@684 302 <IfModule setenvif_module>
michael@684 303 SetEnvIf User-Agent ".*MSIE.*" \
michael@684 304 nokeepalive ssl-unclean-shutdown \
michael@684 305 downgrade-1.0 force-response-1.0
michael@684 306 </IfModule>
michael@684 307 <Files ~ "\.(cgi|shtml|pl|phtml|php?)$">
michael@684 308 SSLOptions +StdEnvVars
michael@684 309 </Files>
michael@684 310 <Directory "@l_prefix@/cgi">
michael@684 311 SSLOptions +StdEnvVars
michael@684 312 </Directory>
michael@684 313 AddType application/x-x509-ca-cert .crt
michael@684 314 AddType application/x-pkcs7-crl .crl
michael@684 315 </IfModule>
michael@684 316
michael@684 317 # DAV support
michael@684 318 <IfModule dav_module>
michael@684 319 DavLockDB @l_prefix@/var/apache/run/apache.dav/lock
michael@684 320 BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
michael@684 321 BrowserMatch "MS FrontPage" redirect-carefully
michael@684 322 BrowserMatch "^WebDrive" redirect-carefully
michael@684 323 BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
michael@684 324 BrowserMatch "^gnome-vfs/1.0" redirect-carefully
michael@684 325 BrowserMatch "^XML Spy" redirect-carefully
michael@684 326 BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully
michael@684 327 </IfModule>
michael@684 328
michael@684 329 # Cache support
michael@684 330 <IfModule disk_cache_module>
michael@684 331 CacheRoot @l_prefix@/var/apache/run/apache.cache
michael@684 332 CacheMaxFileSize 1000000
michael@684 333 CacheMinFileSize 1
michael@684 334 CacheDirLength 2
michael@684 335 CacheDirLevels 3
michael@684 336 </IfModule>
michael@684 337
michael@684 338 # Compression support
michael@684 339 <IfModule deflate_module>
michael@684 340 DeflateCompressionLevel 1
michael@684 341 DeflateMemLevel 9
michael@684 342 DeflateWindowSize 15
michael@684 343 DeflateBufferSize 8096
michael@684 344 DeflateFilterNote Ratio deflate_ratio
michael@684 345 AddOutputFilterByType DEFLATE text/plain text/html text/xml application/javascript application/json text/css
michael@684 346 </IfModule>
michael@684 347

mercurial