Advertisement
Guest User

httpd.conf

a guest
Nov 22nd, 2013
331
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.83 KB | None | 0 0
  1. ServerTokens OS
  2.  
  3. ServerRoot "/etc/httpd"
  4.  
  5. PidFile run/httpd.pid
  6.  
  7. Timeout 60
  8.  
  9. KeepAlive Off
  10.  
  11. MaxKeepAliveRequests 100
  12.  
  13. KeepAliveTimeout 15
  14.  
  15.  
  16. <IfModule prefork.c>
  17. StartServers 8
  18. MinSpareServers 5
  19. MaxSpareServers 20
  20. ServerLimit 256
  21. MaxClients 256
  22. MaxRequestsPerChild 4000
  23. </IfModule>
  24.  
  25. <IfModule worker.c>
  26. StartServers 4
  27. MaxClients 300
  28. MinSpareThreads 25
  29. MaxSpareThreads 75
  30. ThreadsPerChild 25
  31. MaxRequestsPerChild 0
  32. </IfModule>
  33.  
  34. Listen 80
  35.  
  36. LoadModule auth_basic_module modules/mod_auth_basic.so
  37. LoadModule auth_digest_module modules/mod_auth_digest.so
  38. LoadModule authn_file_module modules/mod_authn_file.so
  39. LoadModule authn_alias_module modules/mod_authn_alias.so
  40. LoadModule authn_anon_module modules/mod_authn_anon.so
  41. LoadModule authn_dbm_module modules/mod_authn_dbm.so
  42. LoadModule authn_default_module modules/mod_authn_default.so
  43. LoadModule authz_host_module modules/mod_authz_host.so
  44. LoadModule authz_user_module modules/mod_authz_user.so
  45. LoadModule authz_owner_module modules/mod_authz_owner.so
  46. LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
  47. LoadModule authz_dbm_module modules/mod_authz_dbm.so
  48. LoadModule authz_default_module modules/mod_authz_default.so
  49. LoadModule ldap_module modules/mod_ldap.so
  50. LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
  51. LoadModule include_module modules/mod_include.so
  52. LoadModule log_config_module modules/mod_log_config.so
  53. LoadModule logio_module modules/mod_logio.so
  54. LoadModule env_module modules/mod_env.so
  55. LoadModule ext_filter_module modules/mod_ext_filter.so
  56. LoadModule mime_magic_module modules/mod_mime_magic.so
  57. LoadModule expires_module modules/mod_expires.so
  58. LoadModule deflate_module modules/mod_deflate.so
  59. LoadModule headers_module modules/mod_headers.so
  60. LoadModule usertrack_module modules/mod_usertrack.so
  61. LoadModule setenvif_module modules/mod_setenvif.so
  62. LoadModule mime_module modules/mod_mime.so
  63. LoadModule dav_module modules/mod_dav.so
  64. LoadModule status_module modules/mod_status.so
  65. LoadModule autoindex_module modules/mod_autoindex.so
  66. LoadModule info_module modules/mod_info.so
  67. LoadModule dav_fs_module modules/mod_dav_fs.so
  68. LoadModule vhost_alias_module modules/mod_vhost_alias.so
  69. LoadModule negotiation_module modules/mod_negotiation.so
  70. LoadModule dir_module modules/mod_dir.so
  71. LoadModule actions_module modules/mod_actions.so
  72. LoadModule speling_module modules/mod_speling.so
  73. LoadModule userdir_module modules/mod_userdir.so
  74. LoadModule alias_module modules/mod_alias.so
  75. LoadModule substitute_module modules/mod_substitute.so
  76. LoadModule rewrite_module modules/mod_rewrite.so
  77. LoadModule proxy_module modules/mod_proxy.so
  78. LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
  79. LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
  80. LoadModule proxy_http_module modules/mod_proxy_http.so
  81. LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
  82. LoadModule proxy_connect_module modules/mod_proxy_connect.so
  83. LoadModule cache_module modules/mod_cache.so
  84. LoadModule suexec_module modules/mod_suexec.so
  85. LoadModule disk_cache_module modules/mod_disk_cache.so
  86. LoadModule cgi_module modules/mod_cgi.so
  87. LoadModule version_module modules/mod_version.so
  88.  
  89.  
  90. Include conf.d/*.conf
  91.  
  92.  
  93. User apache
  94. Group apache
  95.  
  96.  
  97. ServerAdmin root@localhost
  98.  
  99.  
  100. UseCanonicalName Off
  101.  
  102. DocumentRoot "/var/www/html"
  103.  
  104. <Directory />
  105. Options FollowSymLinks
  106. AllowOverride None
  107. </Directory>
  108.  
  109.  
  110. <Directory "/var/www/html">
  111.  
  112. Options Indexes FollowSymLinks
  113.  
  114. AllowOverride None
  115.  
  116. Order allow,deny
  117. Allow from all
  118.  
  119. </Directory>
  120.  
  121. <IfModule mod_userdir.c>
  122. UserDir disabled
  123.  
  124.  
  125. </IfModule>
  126.  
  127.  
  128. DirectoryIndex index.html index.html.var
  129.  
  130. AccessFileName .htaccess
  131.  
  132. <Files ~ "^\.ht">
  133. Order allow,deny
  134. Deny from all
  135. Satisfy All
  136. </Files>
  137.  
  138. TypesConfig /etc/mime.types
  139.  
  140. DefaultType text/plain
  141.  
  142. <IfModule mod_mime_magic.c>
  143. MIMEMagicFile conf/magic
  144. </IfModule>
  145.  
  146. HostnameLookups Off
  147.  
  148.  
  149.  
  150. ErrorLog logs/error_log
  151.  
  152. LogLevel warn
  153.  
  154. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  155. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  156. LogFormat "%{Referer}i -> %U" referer
  157. LogFormat "%{User-agent}i" agent
  158.  
  159.  
  160.  
  161.  
  162. CustomLog logs/access_log combined
  163.  
  164. ServerSignature On
  165.  
  166. Alias /icons/ "/var/www/icons/"
  167.  
  168. <Directory "/var/www/icons">
  169. Options Indexes MultiViews FollowSymLinks
  170. AllowOverride None
  171. Order allow,deny
  172. Allow from all
  173. </Directory>
  174.  
  175. <IfModule mod_dav_fs.c>
  176. DAVLockDB /var/lib/dav/lockdb
  177. </IfModule>
  178.  
  179. ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
  180.  
  181. <Directory "/var/www/cgi-bin">
  182. AllowOverride None
  183. Options None
  184. Order allow,deny
  185. Allow from all
  186. </Directory>
  187.  
  188.  
  189.  
  190. IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable Charset=UTF-8
  191.  
  192. AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
  193.  
  194. AddIconByType (TXT,/icons/text.gif) text/*
  195. AddIconByType (IMG,/icons/image2.gif) image/*
  196. AddIconByType (SND,/icons/sound2.gif) audio/*
  197. AddIconByType (VID,/icons/movie.gif) video/*
  198.  
  199. AddIcon /icons/binary.gif .bin .exe
  200. AddIcon /icons/binhex.gif .hqx
  201. AddIcon /icons/tar.gif .tar
  202. AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
  203. AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
  204. AddIcon /icons/a.gif .ps .ai .eps
  205. AddIcon /icons/layout.gif .html .shtml .htm .pdf
  206. AddIcon /icons/text.gif .txt
  207. AddIcon /icons/c.gif .c
  208. AddIcon /icons/p.gif .pl .py
  209. AddIcon /icons/f.gif .for
  210. AddIcon /icons/dvi.gif .dvi
  211. AddIcon /icons/uuencoded.gif .uu
  212. AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
  213. AddIcon /icons/tex.gif .tex
  214. AddIcon /icons/bomb.gif core
  215.  
  216. AddIcon /icons/back.gif ..
  217. AddIcon /icons/hand.right.gif README
  218. AddIcon /icons/folder.gif ^^DIRECTORY^^
  219. AddIcon /icons/blank.gif ^^BLANKICON^^
  220.  
  221. DefaultIcon /icons/unknown.gif
  222.  
  223.  
  224. ReadmeName README.html
  225. HeaderName HEADER.html
  226.  
  227.  
  228. AddLanguage ca .ca
  229. AddLanguage cs .cz .cs
  230. AddLanguage da .dk
  231. AddLanguage de .de
  232. AddLanguage el .el
  233. AddLanguage en .en
  234. AddLanguage eo .eo
  235. AddLanguage es .es
  236. AddLanguage et .et
  237. AddLanguage fr .fr
  238. AddLanguage he .he
  239. AddLanguage hr .hr
  240. AddLanguage it .it
  241. AddLanguage ja .ja
  242. AddLanguage ko .ko
  243. AddLanguage ltz .ltz
  244. AddLanguage nl .nl
  245. AddLanguage nn .nn
  246. AddLanguage no .no
  247. AddLanguage pl .po
  248. AddLanguage pt .pt
  249. AddLanguage pt-BR .pt-br
  250. AddLanguage ru .ru
  251. AddLanguage sv .sv
  252. AddLanguage zh-CN .zh-cn
  253. AddLanguage zh-TW .zh-tw
  254.  
  255. 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
  256.  
  257. ForceLanguagePriority Prefer Fallback
  258.  
  259. AddDefaultCharset UTF-8
  260.  
  261.  
  262.  
  263. AddType application/x-compress .Z
  264. AddType application/x-gzip .gz .tgz
  265.  
  266. AddType application/x-x509-ca-cert .crt
  267. AddType application/x-pkcs7-crl .crl
  268.  
  269.  
  270.  
  271. AddHandler type-map var
  272.  
  273. AddType text/html .shtml
  274. AddOutputFilter INCLUDES .shtml
  275.  
  276.  
  277.  
  278.  
  279. Alias /error/ "/var/www/error/"
  280.  
  281. <IfModule mod_negotiation.c>
  282. <IfModule mod_include.c>
  283. <Directory "/var/www/error">
  284. AllowOverride None
  285. Options IncludesNoExec
  286. AddOutputFilter Includes html
  287. AddHandler type-map var
  288. Order allow,deny
  289. Allow from all
  290. LanguagePriority en es de fr
  291. ForceLanguagePriority Prefer Fallback
  292. </Directory>
  293.  
  294.  
  295. </IfModule>
  296. </IfModule>
  297.  
  298. BrowserMatch "Mozilla/2" nokeepalive
  299. BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
  300. BrowserMatch "RealPlayer 4\.0" force-response-1.0
  301. BrowserMatch "Java/1\.0" force-response-1.0
  302. BrowserMatch "JDK/1\.0" force-response-1.0
  303.  
  304. BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
  305. BrowserMatch "MS FrontPage" redirect-carefully
  306. BrowserMatch "^WebDrive" redirect-carefully
  307. BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
  308. BrowserMatch "^gnome-vfs/1.0" redirect-carefully
  309. BrowserMatch "^XML Spy" redirect-carefully
  310. BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement