apache.base 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  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_npusr@
  16. Group @l_npgrp@
  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/folder.gif ^^DIRECTORY^^
  103. AddIcon /apache-icons/blank.gif ^^BLANKICON^^
  104. AddIcon /apache-icons/hand.right.gif README
  105. AddIcon /apache-icons/binary.gif .bin .exe
  106. AddIcon /apache-icons/binhex.gif .hqx
  107. AddIcon /apache-icons/tar.gif .tar
  108. AddIcon /apache-icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
  109. AddIcon /apache-icons/compressed.gif .Z .z .tgz .gz .zip
  110. AddIcon /apache-icons/a.gif .ps .ai .eps
  111. AddIcon /apache-icons/layout.gif .html .shtml .htm .pdf
  112. AddIcon /apache-icons/text.gif .txt
  113. AddIcon /apache-icons/c.gif .c
  114. AddIcon /apache-icons/p.gif .pl .py
  115. AddIcon /apache-icons/f.gif .for
  116. AddIcon /apache-icons/dvi.gif .dvi
  117. AddIcon /apache-icons/uuencoded.gif .uu
  118. AddIcon /apache-icons/script.gif .conf .sh .shar .csh .ksh .tcl
  119. AddIcon /apache-icons/tex.gif .tex
  120. AddIcon /apache-icons/bomb.gif core
  121. AddIconByEncoding (CMP,/apache-icons/compressed.gif) x-compress x-gzip
  122. AddIconByType (TXT,/apache-icons/text.gif) text/*
  123. AddIconByType (IMG,/apache-icons/image2.gif) image/*
  124. AddIconByType (SND,/apache-icons/sound2.gif) audio/*
  125. AddIconByType (VID,/apache-icons/movie.gif) video/*
  126. </IfModule>
  127. # MIME types and content negotiation
  128. DefaultType text/plain
  129. <IfModule mod_mime.c>
  130. TypesConfig @l_prefix@/etc/apache/mime.types
  131. AddType application/x-tar .tgz
  132. AddEncoding x-compress Z
  133. AddEncoding x-gzip gz tgz
  134. AddLanguage da .dk
  135. AddLanguage nl .nl
  136. AddLanguage en .en
  137. AddLanguage et .ee
  138. AddLanguage fr .fr
  139. AddLanguage de .de
  140. AddLanguage el .el
  141. AddLanguage he .he
  142. AddCharset ISO-8859-8 .iso8859-8
  143. AddLanguage it .it
  144. AddLanguage ja .ja
  145. AddCharset ISO-2022-JP .jis
  146. AddLanguage kr .kr
  147. AddCharset ISO-2022-KR .iso-kr
  148. AddLanguage no .no
  149. AddLanguage pl .po
  150. AddCharset ISO-8859-2 .iso-pl
  151. AddLanguage pt .pt
  152. AddLanguage pt-br .pt-br
  153. AddLanguage ltz .lu
  154. AddLanguage ca .ca
  155. AddLanguage es .es
  156. AddLanguage sv .se
  157. AddLanguage cz .cz
  158. AddLanguage ru .ru
  159. AddLanguage tw .tw
  160. AddCharset Big5 .Big5 .big5
  161. AddCharset WINDOWS-1251 .cp-1251
  162. AddCharset CP866 .cp866
  163. AddCharset ISO-8859-5 .iso-ru
  164. AddCharset KOI8-R .koi8-r
  165. AddCharset UCS-2 .ucs2
  166. AddCharset UCS-4 .ucs4
  167. AddCharset UTF-8 .utf8
  168. </IfModule>
  169. <IfModule mod_negotiation.c>
  170. LanguagePriority en da nl et fr de el it ja kr no pl pt pt-br ru ltz ca es sv tw
  171. </IfModule>
  172. <IfModule mod_mime_magic.c>
  173. MIMEMagicFile @l_prefix@/etc/apache/mime.magic
  174. </IfModule>
  175. # browser specifics
  176. <IfModule mod_setenvif.c>
  177. BrowserMatch "Mozilla/2" nokeepalive
  178. BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
  179. BrowserMatch "RealPlayer 4\.0" force-response-1.0
  180. BrowserMatch "Java/1\.0" force-response-1.0
  181. BrowserMatch "JDK/1\.0" force-response-1.0
  182. </IfModule>
  183. # IVW access logging
  184. <IfModule mod_zmod.c>
  185. ZModSubPath /cgi-bin/ivw
  186. ZModFormat ZMODS
  187. ZModLog @l_prefix@/var/apache/log/zmod.log
  188. #ZModFileBase @l_prefix@/share/apache/htdocs/ivw/pics
  189. </IfModule>
  190. # SSL/TLS support
  191. <IfModule mod_ssl.c>
  192. SSLRandomSeed startup builtin
  193. SSLRandomSeed connect builtin
  194. SSLMutex sem
  195. SSLSessionCache shmcb:@l_prefix@/var/apache/run/ssl_scache(512000)
  196. SSLSessionCacheTimeout 300
  197. SSLLog @l_prefix@/var/apache/log/ssl.log
  198. SSLLogLevel warn
  199. SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
  200. SetEnvIf User-Agent ".*MSIE.*" \
  201. nokeepalive ssl-unclean-shutdown \
  202. downgrade-1.0 force-response-1.0
  203. <Files ~ "\.(cgi|shtml|phtml|php?)$">
  204. SSLOptions +StdEnvVars
  205. </Files>
  206. <Directory "@l_prefix@/cgi">
  207. SSLOptions +StdEnvVars
  208. </Directory>
  209. </IfModule>
  210. # PHP4 support
  211. <IfModule mod_php4.c>
  212. AddType application/x-httpd-php .php
  213. </IfModule>