Advertisement
Guest User

Untitled

a guest
Jan 27th, 2015
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.45 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. # Configuration and logfile names: If the filenames you specify for many
  14. # of the server's control files begin with "/" (or "drive:/" for Win32), the
  15. # server will use that explicit path. If the filenames do *not* begin
  16. # with "/", the value of ServerRoot is prepended -- so 'log/access_log'
  17. # with ServerRoot set to '/www' will be interpreted by the
  18. # server as '/www/log/access_log', where as '/log/access_log' will be
  19. # interpreted as '/log/access_log'.
  20.  
  21. #
  22. # ServerRoot: The top of the directory tree under which the server's
  23. # configuration, error, and log files are kept.
  24. #
  25. # Do not add a slash at the end of the directory path. If you point
  26. # ServerRoot at a non-local disk, be sure to point the LockFile directive
  27. # at a local disk. If you wish to share the same ServerRoot for multiple
  28. # httpd daemons, you will need to change at least LockFile and PidFile.
  29. #
  30. ServerRoot "/etc/httpd2"
  31.  
  32. #
  33. # Dynamic Shared Object (DSO) Support
  34. #
  35. # To be able to use the functionality of a module which was built as a DSO you
  36. # have to place corresponding `LoadModule' lines at this location so the
  37. # directives contained in it are actually available _before_ they are used.
  38. # Statically compiled modules (those listed by `httpd -l') do not need
  39. # to be loaded here.
  40. #
  41. # Example:
  42. # LoadModule foo_module modules/mod_foo.so
  43. #
  44. # Include module configuration:
  45. Include conf/mods-enabled/*.load
  46. Include conf/mods-enabled/*.conf
  47.  
  48. # Include ports listing
  49. Include conf/ports-enabled/*.conf
  50.  
  51. <IfModule !mpm_netware_module>
  52. #
  53. # If you wish httpd to run as a different user or group, you must run
  54. # httpd as root initially and it will switch.
  55. #
  56. # User/Group: The name (or #number) of the user/group to run httpd as.
  57. # It is usually good practice to create a dedicated user and group for
  58. # running httpd, as with most system services.
  59. #
  60. User apache2
  61. Group apache2
  62. </IfModule>
  63.  
  64. # 'Main' server configuration
  65. #
  66. # The directives in this section set up the values used by the 'main'
  67. # server, which responds to any requests that aren't handled by a
  68. # <VirtualHost> definition. These values also provide defaults for
  69. # any <VirtualHost> containers you may define later in the file.
  70. #
  71. # All of these directives may appear inside <VirtualHost> containers,
  72. # in which case these default settings will be overridden for the
  73. # virtual host being defined.
  74. #
  75.  
  76. #
  77. # The following lines prevent .htaccess and .htpasswd files from being
  78. # viewed by Web clients.
  79. #
  80. <FilesMatch "^\.ht">
  81. <IfModule authz_host_module>
  82. Order allow,deny
  83. Deny from all
  84. </IfModule>
  85. Satisfy All
  86. </FilesMatch>
  87.  
  88. #
  89. # ErrorLog: The location of the error log file.
  90. # If you do not specify an ErrorLog directive within a <VirtualHost>
  91. # container, error messages relating to that virtual host will be
  92. # logged here. If you *do* define an error logfile for a <VirtualHost>
  93. # container, that host's errors will be logged there and not here.
  94. #
  95. ErrorLog "/var/log/httpd2/error_log"
  96.  
  97. #
  98. # LogLevel: Control the number of messages logged to the error_log.
  99. # Possible values include: debug, info, notice, warn, error, crit,
  100. # alert, emerg.
  101. #
  102. LogLevel warn
  103.  
  104. #
  105. # DefaultType: the default MIME type the server will use for a document
  106. # if it cannot otherwise determine one, such as from filename extensions.
  107. # If your server contains mostly text or HTML documents, "text/plain" is
  108. # a good value. If most of your content is binary, such as applications
  109. # or images, you may want to use "application/octet-stream" instead to
  110. # keep browsers from trying to display binary files as though they are
  111. # text.
  112. #
  113. DefaultType text/plain
  114.  
  115. #
  116. # Customizable error responses come in three flavors:
  117. # 1) plain text 2) local redirects 3) external redirects
  118. #
  119. # Some examples:
  120. #ErrorDocument 500 "The server made a boo boo."
  121. #ErrorDocument 404 /missing.html
  122. #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
  123. #ErrorDocument 402 http://www.example.com/subscription_info.html
  124. #
  125.  
  126. #
  127. # MaxRanges: Maximum number of Ranges in a request before
  128. # returning the entire resource, or one of the special
  129. # values 'default', 'none' or 'unlimited'.
  130. # Default setting is to accept 200 Ranges.
  131. #MaxRanges unlimited
  132.  
  133. #
  134. # EnableMMAP and EnableSendfile: On systems that support it,
  135. # memory-mapping or the sendfile syscall is used to deliver
  136. # files. This usually improves server performance, but must
  137. # be turned off when serving from networked-mounted
  138. # filesystems or if support for these functions is otherwise
  139. # broken on your system.
  140. #
  141. #EnableMMAP off
  142. #EnableSendfile off
  143.  
  144. # Supplemental configuration
  145. #
  146. # The configuration files in the conf/extra/ directory can be
  147. # included to add extra features or to modify the default configuration of
  148. # the server, or you may simply copy their contents here and change as
  149. # necessary.
  150.  
  151. # Various default settings
  152. Include conf/extra-enabled/*.conf
  153.  
  154. # Include the virtual host configurations:
  155. Include conf/sites-enabled/*.conf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement