Lucas_Malor

apache configuration file

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