apache.base 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. ##
  2. ## apache.base -- Apache Base/Default Configuration
  3. ## ______________________________________________________
  4. ##
  5. ## PLEASE DO NOT EDIT THIS FILE!! ADJUST CONFIGURATION BY
  6. ## OVERRIDING DIRECTIVES IN "apache.conf" INSTEAD, PLEASE!
  7. ## ______________________________________________________
  8. ##
  9. # global server
  10. ServerType standalone
  11. ServerRoot @l_prefix@
  12. ServerAdmin root@@l_hostname@.@l_domainname@
  13. ServerName @l_hostname@.@l_domainname@
  14. ServerTokens Prod
  15. User @l_nusr@
  16. Group @l_ngrp@
  17. Port 80
  18. # runtime files
  19. PidFile @l_prefix@/var/apache/run/apache.pid
  20. ScoreBoardFile @l_prefix@/var/apache/run/apache.sb
  21. # server behaviour
  22. Timeout 300
  23. KeepAlive on
  24. MaxKeepAliveRequests 100
  25. KeepAliveTimeout 15
  26. MinSpareServers 5
  27. MaxSpareServers 10
  28. StartServers 5
  29. MaxClients 150
  30. MaxRequestsPerChild 0
  31. HostnameLookups off
  32. UseCanonicalName on
  33. # access logging
  34. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  35. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  36. LogFormat "%{Referer}i -> %U" referer
  37. LogFormat "%{User-agent}i" agent
  38. CustomLog @l_prefix@/var/apache/log/access.log common
  39. # error logging
  40. LogLevel warn
  41. ErrorLog @l_prefix@/var/apache/log/error.log
  42. ServerSignature on
  43. # secure root directory
  44. <Directory />
  45. Options FollowSymLinks
  46. AllowOverride None
  47. </Directory>
  48. # configure global document root
  49. DocumentRoot @l_prefix@/share/apache/htdocs
  50. <IfModule mod_alias.c>
  51. Alias /apache-htdocs @l_prefix@/share/apache/htdocs
  52. </IfModule>
  53. <Directory "@l_prefix@/share/apache/htdocs">
  54. Options Indexes FollowSymLinks MultiViews
  55. AllowOverride none
  56. Order allow,deny
  57. Allow from all
  58. </Directory>
  59. # default directories and files
  60. <IfModule mod_userdir.c>
  61. UserDir public_html
  62. </IfModule>
  63. <IfModule mod_dir.c>
  64. DirectoryIndex index.html
  65. </IfModule>
  66. # local configuration files
  67. AccessFileName .htaccess
  68. <Files ~ "^\.ht">
  69. Order allow,deny
  70. Deny from all
  71. Satisfy All
  72. </Files>
  73. # global Icons and CGI directory
  74. <IfModule mod_alias.c>
  75. Alias /apache-icons @l_prefix@/share/apache/icons
  76. <Directory "@l_prefix@/share/apache/icons">
  77. Options Indexes MultiViews
  78. AllowOverride None
  79. Order allow,deny
  80. Allow from all
  81. </Directory>
  82. ScriptAlias /openpkg-cgi "@l_prefix@/cgi"
  83. <Directory "@l_prefix@/cgi">
  84. AllowOverride None
  85. Options None
  86. Order allow,deny
  87. Allow from all
  88. </Directory>
  89. </IfModule>
  90. # automatic CGI recognition by extension
  91. <IfModule mod_cgi.c>
  92. AddHandler cgi-script .cgi
  93. </IfModule>
  94. # automatic directory indexing
  95. <IfModule mod_autoindex.c>
  96. IndexOptions FancyIndexing
  97. ReadmeName README
  98. HeaderName HEADER
  99. IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
  100. DefaultIcon /apache-icons/unknown.gif
  101. AddIcon /apache-icons/back.gif ..
  102. AddIcon /apache-icons/dir.gif ^^DIRECTORY^^
  103. AddIcon /apache-icons/blank.gif ^^BLANKICON^^
  104. AddIcon /apache-icons/binary.gif .bin .exe
  105. AddIcon /apache-icons/binhex.gif .hqx
  106. AddIcon /apache-icons/tar.gif .tar
  107. AddIcon /apache-icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
  108. AddIcon /apache-icons/compressed.gif .Z .z .tgz .gz .zip
  109. AddIcon /apache-icons/a.gif .ps .ai .eps
  110. AddIcon /apache-icons/layout.gif .html .shtml .htm .pdf
  111. AddIcon /apache-icons/text.gif .txt
  112. AddIcon /apache-icons/c.gif .c
  113. AddIcon /apache-icons/p.gif .pl .py
  114. AddIcon /apache-icons/f.gif .for
  115. AddIcon /apache-icons/dvi.gif .dvi
  116. AddIcon /apache-icons/uuencoded.gif .uu
  117. AddIcon /apache-icons/script.gif .conf .sh .shar .csh .ksh .tcl
  118. AddIcon /apache-icons/tex.gif .tex
  119. AddIcon /apache-icons/bomb.gif core
  120. AddIconByEncoding (CMP,/apache-icons/compressed.gif) x-compress x-gzip
  121. AddIconByType (TXT,/apache-icons/text.gif) text/*
  122. AddIconByType (IMG,/apache-icons/image2.gif) image/*
  123. AddIconByType (SND,/apache-icons/sound2.gif) audio/*
  124. AddIconByType (VID,/apache-icons/movie.gif) video/*
  125. </IfModule>
  126. # MIME types and content negotiation
  127. DefaultType text/plain
  128. <IfModule mod_mime.c>
  129. TypesConfig @l_prefix@/etc/apache/mime.types
  130. AddType application/x-tar .tgz
  131. AddEncoding x-compress Z
  132. AddEncoding x-gzip gz tgz
  133. AddLanguage da .dk
  134. AddLanguage nl .nl
  135. AddLanguage en .en
  136. AddLanguage et .ee
  137. AddLanguage fr .fr
  138. AddLanguage de .de
  139. AddLanguage el .el
  140. AddLanguage he .he
  141. AddCharset ISO-8859-8 .iso8859-8
  142. AddLanguage it .it
  143. AddLanguage ja .ja
  144. AddCharset ISO-2022-JP .jis
  145. AddLanguage kr .kr
  146. AddCharset ISO-2022-KR .iso-kr
  147. AddLanguage no .no
  148. AddLanguage pl .po
  149. AddCharset ISO-8859-2 .iso-pl
  150. AddLanguage pt .pt
  151. AddLanguage pt-br .pt-br
  152. AddLanguage ltz .lu
  153. AddLanguage ca .ca
  154. AddLanguage es .es
  155. AddLanguage sv .se
  156. AddLanguage cz .cz
  157. AddLanguage ru .ru
  158. AddLanguage tw .tw
  159. AddCharset Big5 .Big5 .big5
  160. AddCharset WINDOWS-1251 .cp-1251
  161. AddCharset CP866 .cp866
  162. AddCharset ISO-8859-5 .iso-ru
  163. AddCharset KOI8-R .koi8-r
  164. AddCharset UCS-2 .ucs2
  165. AddCharset UCS-4 .ucs4
  166. AddCharset UTF-8 .utf8
  167. </IfModule>
  168. <IfModule mod_negotiation.c>
  169. LanguagePriority en da nl et fr de el it ja kr no pl pt pt-br ru ltz ca es sv tw
  170. </IfModule>
  171. <IfModule mod_mime_magic.c>
  172. MIMEMagicFile @l_prefix@/etc/apache/mime.magic
  173. </IfModule>
  174. # browser specifics
  175. <IfModule mod_setenvif.c>
  176. BrowserMatch "Mozilla/2" nokeepalive
  177. BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
  178. BrowserMatch "RealPlayer 4\.0" force-response-1.0
  179. BrowserMatch "Java/1\.0" force-response-1.0
  180. BrowserMatch "JDK/1\.0" force-response-1.0
  181. </IfModule>
  182. # IVW access logging
  183. <IfModule mod_zmod.c>
  184. ZModSubPath /cgi-bin/ivw
  185. ZModFormat ZMODS
  186. ZModLog @l_prefix@/var/apache/log/zmod.log
  187. #ZModFileBase @l_prefix@/share/apache/htdocs/ivw/pics
  188. </IfModule>
  189. # SSL/TLS support
  190. <IfModule mod_ssl.c>
  191. SSLRandomSeed startup builtin
  192. SSLRandomSeed connect builtin
  193. SSLMutex sem
  194. SSLSessionCache shmcb:@l_prefix@/var/apache/run/ssl_scache(512000)
  195. SSLSessionCacheTimeout 300
  196. SSLLog @l_prefix@/var/apache/log/ssl.log
  197. SSLLogLevel warn
  198. SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
  199. SetEnvIf User-Agent ".*MSIE.*" \
  200. nokeepalive ssl-unclean-shutdown \
  201. downgrade-1.0 force-response-1.0
  202. <Files ~ "\.(cgi|shtml|phtml|php?)$">
  203. SSLOptions +StdEnvVars
  204. </Files>
  205. <Directory "@l_prefix@/cgi">
  206. SSLOptions +StdEnvVars
  207. </Directory>
  208. </IfModule>
  209. # PHP4 support
  210. <IfModule mod_php4.c>
  211. AddType application/x-httpd-php .php
  212. </IfModule>