Advertisement
Guest User

httpd.conf

a guest
Aug 15th, 2014
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.11 KB | None | 0 0
  1. #
  2. # This is the main Apache HTTP server configuration file. It contains the
  3. # configuration directives that give the server its instructions.
  4. # See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
  5. # In particular, see
  6. # <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
  7. # for a discussion of each configuration directive.
  8. #
  9. # Do NOT simply read the instructions in here without understanding
  10. # what they do. They're here only as hints or reminders. If you are unsure
  11. # consult the online docs. You have been warned.
  12.  
  13. ServerRoot "/etc/httpd"
  14. Listen 80
  15.  
  16. #LoadModule dummy_module /usr/lib/apache/mod_dummy.so
  17. Include /etc/httpd/conf/extra/httpd-phpmodules.conf
  18.  
  19. User apache
  20. Group apache
  21.  
  22. ServerAdmin admin@localhost
  23. DocumentRoot "/var/www/html"
  24.  
  25. # Options and AllowOverrides
  26. Include conf/extra/httpd-directories.conf
  27.  
  28. <IfModule dir_module>
  29. DirectoryIndex index.html index.htm index.shtml index.php index.php5 index.php4 index.php3 index.phtml index.cgi
  30. </IfModule>
  31.  
  32. <FilesMatch "^\.ht">
  33. Order allow,deny
  34. Deny from all
  35. Satisfy All
  36. </FilesMatch>
  37.  
  38. ErrorLog /var/log/httpd/error_log
  39. LogLevel warn
  40.  
  41. <IfModule log_config_module>
  42. #replace %b with %O for more accurate logging
  43. <IfModule mod_logio.c>
  44. LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
  45. LogFormat "%h %l %u %t \"%r\" %>s %O" common
  46. LogFormat "%O %I" bytes
  47.  
  48. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
  49. </IfModule>
  50.  
  51. CustomLog /var/log/httpd/access_log common
  52. </IfModule>
  53.  
  54. <IfModule alias_module>
  55. # Include some DirectAdmin alias
  56. Include conf/extra/httpd-alias.conf
  57. </IfModule>
  58.  
  59. DefaultType text/plain
  60.  
  61. <IfModule mime_module>
  62. TypesConfig conf/mime.types
  63. AddType application/x-gzip .tgz
  64. AddEncoding x-compress .Z
  65. AddEncoding x-gzip .gz .tgz
  66. AddType application/x-compress .Z
  67. AddType application/x-gzip .gz .tgz
  68. AddHandler cgi-script .cgi
  69. AddHandler type-map var
  70. AddType text/html .shtml
  71. AddOutputFilter INCLUDES .shtml
  72. AddType video/x-ms-asf .avi
  73. AddType video/mpeg .mpg
  74. AddType video/mpeg .mpeg
  75. AddType video/quicktime .mov
  76. AddType video/x-ms-wmv .wmv
  77. </IfModule>
  78.  
  79. #EnableMMAP off
  80. #EnableSendfile off
  81.  
  82. #######################################################################################
  83. # Do not change anything in included files, because they are rewritten by DirectAdmin #
  84. #######################################################################################
  85.  
  86. # This is needed for PHP
  87. Include conf/extra/httpd-php-handlers.conf
  88.  
  89. # Server-pool management (MPM specific)
  90. Include conf/extra/httpd-mpm.conf
  91.  
  92. # Multi-language error messages
  93. Include conf/extra/httpd-multilang-errordoc.conf
  94.  
  95. # Fancy directory listings
  96. Include conf/extra/httpd-autoindex.conf
  97.  
  98. # Language settings
  99. Include conf/extra/httpd-languages.conf
  100.  
  101. # User home directories
  102. #Include conf/extra/httpd-userdir.conf
  103.  
  104. # Real-time info on requests and configuration
  105. Include conf/extra/httpd-info.conf
  106.  
  107. # Virtual hosts
  108. Include conf/extra/httpd-vhosts.conf
  109.  
  110. # Local access to the Apache HTTP Server Manual
  111. #Include conf/extra/httpd-manual.conf
  112.  
  113. # Distributed authoring and versioning (WebDAV)
  114. Include conf/extra/httpd-dav.conf
  115.  
  116. # Various default settings
  117. Include conf/extra/httpd-default.conf
  118.  
  119. # Secure (SSL/TLS) connections
  120. Include conf/extra/httpd-ssl.conf
  121.  
  122. # Deflate module settings
  123. Include conf/extra/httpd-deflate.conf
  124.  
  125. # All the DirectAdmin vhosts
  126. Include conf/extra/directadmin-vhosts.conf
  127.  
  128. # All suPHP directives
  129. Include conf/extra/httpd-suphp.conf
  130.  
  131. # For user configurations not maintained by DirectAdmin. Empty by default.
  132. Include conf/extra/httpd-includes.conf
  133.  
  134. #######################################################################################
  135. # End of included files that are rewritten by DirectAdmin #
  136. #######################################################################################
  137.  
  138. <IfModule ssl_module>
  139. SSLRandomSeed startup builtin
  140. SSLRandomSeed connect builtin
  141. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement