Advertisement
Guest User

Untitled

a guest
Jul 17th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.58 KB | None | 0 0
  1. ### Section 1: Global Environment
  2.  
  3. ServerRoot "/etc/apache2"
  4. LockFile /var/lock/apache2/accept.lock
  5. PidFile /var/run/apache2.pid
  6. Timeout 100
  7. KeepAlive Off
  8. MaxKeepAliveRequests 200
  9. KeepAliveTimeout 4
  10. ServerLimit 256
  11.  
  12. <IfModule mpm_prefork_module>
  13. StartServers 100
  14. MinSpareServers 30
  15. MaxSpareServers 50
  16. MaxClients 200
  17. MaxRequestsPerChild 1000
  18. </IfModule>
  19.  
  20. User www-data
  21. Group www-data
  22.  
  23. AccessFileName .htaccess
  24.  
  25. <Files ~ "^\.ht">
  26. Order allow,deny
  27. Deny from all
  28. </Files>
  29.  
  30. <Files ~ "^\.git">
  31. Order allow,deny
  32. Deny from all
  33. </Files>
  34.  
  35. <Location /.git>
  36. Order allow,deny
  37. Deny from all
  38. </Location>
  39.  
  40. TypesConfig /etc/mime.types
  41. DefaultType text/plain
  42.  
  43. HostnameLookups Off
  44.  
  45. SetEnvIf Remote_Addr .::1. dontlog
  46. SetEnvIf Remote_Addr "127\.0\.0\.1" dontlog
  47.  
  48. ErrorLog /var/log/apache2/error.log
  49. CustomLog /var/log/apache2/access.log vhosts env=!dontlog
  50.  
  51. LogLevel warn
  52.  
  53. Include /etc/apache2/mods-enabled/*.load
  54. Include /etc/apache2/mods-enabled/*.conf
  55.  
  56. Include /etc/apache2/httpd.conf
  57. Include /etc/apache2/ports.conf
  58.  
  59. Include /etc/apache2/conf.d/
  60.  
  61. LogFormat "%V %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" vhosts
  62. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  63. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  64. LogFormat "%{Referer}i -> %U" referer
  65. LogFormat "%{User-agent}i" agent
  66.  
  67. ServerTokens Full
  68. ServerSignature On
  69.  
  70. <IfModule alias_module>
  71.  
  72. <Directory "/usr/share/apache2/icons">
  73. Options Indexes MultiViews
  74. AllowOverride None
  75. Order allow,deny
  76. Allow from all
  77. </Directory>
  78.  
  79. </IfModule>
  80.  
  81. <IfModule mod_autoindex.c>
  82.  
  83. IndexOptions FancyIndexing VersionSort HTMLTable NameWidth=*
  84.  
  85. AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
  86.  
  87. AddIconByType (TXT,/icons/text.gif) text/*
  88. AddIconByType (IMG,/icons/image2.gif) image/*
  89. AddIconByType (SND,/icons/sound2.gif) audio/*
  90. AddIconByType (VID,/icons/movie.gif) video/*
  91.  
  92. AddIcon /icons/binary.gif .bin .exe
  93. AddIcon /icons/binhex.gif .hqx
  94. AddIcon /icons/tar.gif .tar
  95. AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
  96. AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
  97. AddIcon /icons/a.gif .ps .ai .eps
  98. AddIcon /icons/layout.gif .html .shtml .htm .pdf
  99. AddIcon /icons/text.gif .txt
  100. AddIcon /icons/c.gif .c
  101. AddIcon /icons/p.gif .pl .py
  102. AddIcon /icons/f.gif .for
  103. AddIcon /icons/dvi.gif .dvi
  104. AddIcon /icons/uuencoded.gif .uu
  105. AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
  106. AddIcon /icons/tex.gif .tex
  107. AddIcon /icons/bomb.gif core
  108.  
  109. AddIcon /icons/back.gif ..
  110. AddIcon /icons/hand.right.gif README
  111. AddIcon /icons/folder.gif ^^DIRECTORY^^
  112. AddIcon /icons/blank.gif ^^BLANKICON^^
  113.  
  114. DefaultIcon /icons/unknown.gif
  115.  
  116. ReadmeName README.html
  117. HeaderName HEADER.html
  118.  
  119. IndexIgnore .??* *~ *# RCS CVS *,v *,t
  120.  
  121. </IfModule>
  122.  
  123. <IfModule mod_mime.c>
  124.  
  125. AddType application/x-compress .Z
  126. AddType application/x-gzip .gz .tgz
  127.  
  128. AddLanguage ca .ca
  129. AddLanguage cs .cz .cs
  130. AddLanguage da .dk
  131. AddLanguage de .de
  132. AddLanguage el .el
  133. AddLanguage en .en
  134. AddLanguage eo .eo
  135. AddLanguage es .es
  136. AddLanguage et .et
  137. AddLanguage fr .fr
  138. AddLanguage he .he
  139. AddLanguage hr .hr
  140. AddLanguage it .it
  141. AddLanguage ja .ja
  142. AddLanguage ko .ko
  143. AddLanguage ltz .ltz
  144. AddLanguage nl .nl
  145. AddLanguage nn .nn
  146. AddLanguage no .no
  147. AddLanguage pl .po
  148. AddLanguage pt .pt
  149. AddLanguage pt-BR .pt-br
  150. AddLanguage ru .ru
  151. AddLanguage sv .sv
  152. AddLanguage zh-CN .zh-cn
  153. AddLanguage zh-TW .zh-tw
  154.  
  155. </IfModule>
  156.  
  157. <IfModule mod_negotiation.c>
  158.  
  159. 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
  160. ForceLanguagePriority Prefer Fallback
  161.  
  162. </IfModule>
  163.  
  164. <IfModule mod_mime.c>
  165.  
  166. AddDefaultCharset utf-8
  167.  
  168. AddCharset us-ascii .ascii .us-ascii
  169. AddCharset ISO-8859-1 .iso8859-1 .latin1
  170. AddCharset ISO-8859-2 .iso8859-2 .latin2 .cen
  171. AddCharset ISO-8859-3 .iso8859-3 .latin3
  172. AddCharset ISO-8859-4 .iso8859-4 .latin4
  173. AddCharset ISO-8859-5 .iso8859-5 .cyr .iso-ru
  174. AddCharset ISO-8859-6 .iso8859-6 .arb .arabic
  175. AddCharset ISO-8859-7 .iso8859-7 .grk .greek
  176. AddCharset ISO-8859-8 .iso8859-8 .heb .hebrew
  177. AddCharset ISO-8859-9 .iso8859-9 .latin5 .trk
  178. AddCharset ISO-8859-10 .iso8859-10 .latin6
  179. AddCharset ISO-8859-13 .iso8859-13
  180. AddCharset ISO-8859-14 .iso8859-14 .latin8
  181. AddCharset ISO-8859-15 .iso8859-15 .latin9
  182. AddCharset ISO-8859-16 .iso8859-16 .latin10
  183. AddCharset ISO-2022-JP .iso2022-jp .jis
  184. AddCharset ISO-2022-KR .iso2022-kr .kis
  185. AddCharset ISO-2022-CN .iso2022-cn .cis
  186. AddCharset Big5 .Big5 .big5 .b5
  187. AddCharset cn-Big5 .cn-big5
  188. AddCharset WINDOWS-1251 .cp-1251 .win-1251
  189. AddCharset CP866 .cp866
  190. AddCharset KOI8 .koi8
  191. AddCharset KOI8-E .koi8-e
  192. AddCharset KOI8-r .koi8-r .koi8-ru
  193. AddCharset KOI8-U .koi8-u
  194. AddCharset KOI8-ru .koi8-uk .ua
  195. AddCharset ISO-10646-UCS-2 .ucs2
  196. AddCharset ISO-10646-UCS-4 .ucs4
  197. AddCharset UTF-7 .utf7
  198. AddCharset UTF-8 .utf8
  199. AddCharset UTF-16 .utf16
  200. AddCharset UTF-16BE .utf16be
  201. AddCharset UTF-16LE .utf16le
  202. AddCharset UTF-32 .utf32
  203. AddCharset UTF-32BE .utf32be
  204. AddCharset UTF-32LE .utf32le
  205. AddCharset euc-cn .euc-cn
  206. AddCharset euc-gb .euc-gb
  207. AddCharset euc-jp .euc-jp
  208. AddCharset euc-kr .euc-kr
  209. AddCharset EUC-TW .euc-tw
  210. AddCharset gb2312 .gb2312 .gb
  211. AddCharset iso-10646-ucs-2 .ucs-2 .iso-10646-ucs-2
  212. AddCharset iso-10646-ucs-4 .ucs-4 .iso-10646-ucs-4
  213. AddCharset shift_jis .shift_jis .sjis
  214.  
  215. AddHandler type-map var
  216.  
  217. AddType text/html .shtml
  218. AddOutputFilter INCLUDES .shtml
  219.  
  220. </IfModule>
  221.  
  222. <IfModule mod_setenvif.c>
  223.  
  224. BrowserMatch "Mozilla/2" nokeepalive
  225. BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
  226. BrowserMatch "RealPlayer 4\.0" force-response-1.0
  227. BrowserMatch "Java/1\.0" force-response-1.0
  228. BrowserMatch "JDK/1\.0" force-response-1.0
  229.  
  230. BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
  231. BrowserMatch "MS FrontPage" redirect-carefully
  232. BrowserMatch "^WebDrive" redirect-carefully
  233. BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
  234. BrowserMatch "^gnome-vfs/1.0" redirect-carefully
  235. BrowserMatch "^XML Spy" redirect-carefully
  236. BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully
  237.  
  238. </IfModule>
  239.  
  240. Include /etc/apache2/sites-enabled/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement