Advertisement
Guest User

Untitled

a guest
May 23rd, 2017
795
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.13 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.4> for detailed information.
  5. # In particular, see
  6. # <URL:http://httpd.apache.org/docs/2.4/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. #
  14. # ServerRoot: The top of the directory tree under which the server's
  15. # configuration, error, and log files are kept.
  16. #
  17. # Do not add a slash at the end of the directory path. If you point
  18. # ServerRoot at a non-local disk, be sure to specify a local disk on the
  19. # Mutex directive, if file-based mutexes are used. If you wish to share the
  20. # same ServerRoot for multiple httpd daemons, you will need to change at
  21. # least PidFile.
  22. #
  23. ServerRoot "/etc/httpd"
  24.  
  25. #
  26. # Listen: Allows you to bind Apache to specific IP addresses and/or
  27. # ports, instead of the default. See also the <VirtualHost>
  28. # directive.
  29. #
  30. # Change this to Listen on specific IP addresses as shown below to
  31. # prevent Apache from glomming onto all bound IP addresses.
  32. #
  33. #Listen 12.34.56.78:80
  34. Listen 80
  35.  
  36. <IfModule unixd_module>
  37. #
  38. # If you wish httpd to run as a different user or group, you must run
  39. # httpd as root initially and it will switch.
  40. #
  41. # User/Group: The name (or #number) of the user/group to run httpd as.
  42. # It is usually good practice to create a dedicated user and group for
  43. # running httpd, as with most system services.
  44. #
  45. User apache
  46. Group apache
  47. </IfModule>
  48.  
  49. #LoadModule dummy_module /usr/lib/apache/mod_dummy.so
  50. Include /etc/httpd/conf/extra/httpd-phpmodules.conf
  51.  
  52. #
  53. # ServerAdmin: Your address, where problems with the server should be
  54. # e-mailed. This address appears on some server-generated pages, such
  55. # as error documents. e.g. admin@your-domain.com
  56. #
  57. ServerAdmin admin@localhost
  58. DocumentRoot "/var/www/html"
  59. <IfModule dir_module>
  60. DirectoryIndex index.html index.htm index.shtml index.php index.php5 index.php4 index.php3 index.phtml index.cgi index.pl
  61. </IfModule>
  62.  
  63. #
  64. # The following lines prevent .htaccess and .htpasswd files from being
  65. # viewed by Web clients.
  66. #
  67. <Files ".ht*">
  68. Require all denied
  69. </Files>
  70.  
  71. #
  72. # The following lines prevent .user.ini files from being viewed by Web clients.
  73. #
  74. <Files ".user.ini">
  75. Require all denied
  76. </Files>
  77.  
  78. #
  79. #
  80. # ErrorLog: The location of the error log file.
  81. # If you do not specify an ErrorLog directive within a <VirtualHost>
  82. # container, error messages relating to that virtual host will be
  83. # logged here. If you *do* define an error logfile for a <VirtualHost>
  84. # container, that host's errors will be logged there and not here.
  85. #
  86. ErrorLog /var/log/httpd/error_log
  87.  
  88. #
  89. # LogLevel: Control the number of messages logged to the error_log.
  90. # Possible values include: debug, info, notice, warn, error, crit,
  91. # alert, emerg.
  92. #
  93. LogLevel warn
  94.  
  95. <IfModule log_config_module>
  96. #replace %b with %O for more accurate logging
  97. <IfModule mod_logio.c>
  98. LogFormat "%a %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
  99. LogFormat "%a %l %u %t \"%r\" %>s %O" common
  100. LogFormat "%O %I" bytes
  101.  
  102. LogFormat "%a %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
  103. </IfModule>
  104.  
  105. CustomLog /var/log/httpd/access_log common
  106. </IfModule>
  107.  
  108. <IfModule alias_module>
  109. # Include some DirectAdmin alias
  110. Include conf/extra/httpd-alias.conf
  111. </IfModule>
  112.  
  113. #DefaultType text/plain
  114.  
  115. <IfModule mime_module>
  116. TypesConfig conf/mime.types
  117. AddType application/x-gzip .tgz
  118. AddEncoding x-compress .Z
  119. AddEncoding x-gzip .gz .tgz
  120. AddType application/x-compress .Z
  121. AddType application/x-gzip .gz .tgz
  122. AddHandler cgi-script .cgi
  123. AddHandler type-map var
  124. AddType text/html .shtml
  125. AddOutputFilter INCLUDES .shtml
  126. AddType video/x-ms-asf .avi
  127. AddType video/mpeg .mpg
  128. AddType video/mpeg .mpeg
  129. AddType video/quicktime .mov
  130. AddType video/x-ms-wmv .wmv
  131. </IfModule>
  132.  
  133. #
  134. # MaxRanges: Maximum number of Ranges in a request before
  135. # returning the entire resource, or one of the special
  136. # values 'default', 'none' or 'unlimited'.
  137. # Default setting is to accept 200 Ranges.
  138. #MaxRanges unlimited
  139. #
  140. # EnableMMAP and EnableSendfile: On systems that support it,
  141. # memory-mapping or the sendfile syscall may be used to deliver
  142. # files. This usually improves server performance, but must
  143. # be turned off when serving from networked-mounted
  144. # filesystems or if support for these functions is otherwise
  145. # broken on your system.
  146. # Defaults: EnableMMAP On, EnableSendfile Off
  147. #
  148. #EnableMMAP off
  149. #EnableSendfile off
  150.  
  151. #######################################################################################
  152. # For user configurations not maintained by DirectAdmin. Empty by default.
  153. #######################################################################################
  154.  
  155. Include conf/extra/httpd-includes.conf
  156.  
  157. #######################################################################################
  158. # Supplemental configuration
  159. #######################################################################################
  160.  
  161. # Options and AllowOverrides
  162. Include conf/extra/httpd-directories.conf
  163.  
  164. # Nginx reverse proxy configuration
  165. Include conf/extra/httpd-nginx.conf
  166.  
  167. # Server-pool management (MPM specific)
  168. Include conf/extra/httpd-mpm.conf
  169.  
  170. # Multi-language error messages
  171. Include conf/extra/httpd-multilang-errordoc.conf
  172.  
  173. # Fancy directory listings
  174. Include conf/extra/httpd-autoindex.conf
  175.  
  176. # Language settings
  177. Include conf/extra/httpd-languages.conf
  178. # User home directories
  179. #Include conf/extra/httpd-userdir.conf
  180.  
  181. # Real-time info on requests and configuration
  182. Include conf/extra/httpd-info.conf
  183.  
  184. # Suphp
  185. Include conf/extra/httpd-suphp.conf
  186.  
  187. # Local access to the Apache HTTP Server Manual
  188. #Include conf/extra/httpd-manual.conf
  189.  
  190. # Distributed authoring and versioning (WebDAV)
  191. Include conf/extra/httpd-dav.conf
  192.  
  193. # Various default settings
  194. Include conf/extra/httpd-default.conf
  195.  
  196. # Secure (SSL/TLS) connections
  197. Include conf/extra/httpd-ssl.conf
  198. # Deflate module settings
  199. Include conf/extra/httpd-deflate.conf
  200.  
  201. #######################################################################################
  202. # Do not change anything in files below, because they are rewritten by DirectAdmin #
  203. #######################################################################################
  204.  
  205. # This is needed for PHP
  206. Include conf/extra/httpd-php-handlers.conf
  207.  
  208. # Virtual hosts
  209. Include conf/extra/httpd-vhosts.conf
  210.  
  211. # All the DirectAdmin vhosts
  212. Include conf/extra/directadmin-vhosts.conf
  213.  
  214. #######################################################################################
  215. # End of included files that are rewritten by DirectAdmin #
  216. #######################################################################################
  217. <IfModule ssl_module>
  218. SSLRandomSeed startup builtin
  219. SSLRandomSeed connect builtin
  220. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement