Fix for httpd.conf file

  1. #
  2. # /etc/apache2/httpd.conf
  3. #
  4. # This is the main Apache server configuration file.  It contains the
  5. # configuration directives that give the server its instructions.
  6. # See <URL:http://httpd.apache.org/docs-2.2/> for detailed information about
  7. # the directives.
  8.  
  9. # Based upon the default apache configuration file that ships with apache,
  10. # which is based upon the NCSA server configuration files originally by Rob
  11. # McCool. This file was knocked together by Peter Poeml <poeml+apache@suse.de>.
  12.  
  13. # If possible, avoid changes to this file. It does mainly contain Include
  14. # statements and global settings that can/should be overridden in the
  15. # configuration of your virtual hosts.
  16.  
  17. # Quickstart guide:
  18. # http://en.opensuse.org/Apache_Quickstart_HOWTO
  19.  
  20.  
  21. # Overview of include files, chronologically:
  22. #
  23. # httpd.conf
  24. #  |
  25. #  |-- uid.conf  . . . . . . . . . . . . . .  UserID/GroupID to run under
  26. #  |-- server-tuning.conf  . . . . . . . . .  sizing of the server (how many processes to start, ...)
  27. #  |-- sysconfig.d/loadmodule.conf . . . . .  [*] load these modules
  28. #  |-- listen.conf . . . . . . . . . . . . .  IP adresses / ports to listen on
  29. #  |-- mod_log_config.conf . . . . . . . . .  define logging formats
  30. #  |-- sysconfig.d/global.conf . . . . . . .  [*] server-wide general settings
  31. #  |-- mod_status.conf . . . . . . . . . . .  restrict access to mod_status (server monitoring)
  32. #  |-- mod_info.conf . . . . . . . . . . . .  restrict access to mod_info
  33. #  |-- mod_usertrack.conf  . . . . . . . . .  defaults for cookie-based user tracking
  34. #  |-- mod_autoindex-defaults.conf . . . . .  defaults for displaying of server-generated directory listings
  35. #  |-- mod_mime-defaults.conf  . . . . . . .  defaults for mod_mime configuration
  36. #  |-- errors.conf . . . . . . . . . . . . .  customize error responses
  37. #  |-- ssl-global.conf . . . . . . . . . . .  SSL conf that applies to default server _and all_ virtual hosts
  38. #  |
  39. #  |-- default-server.conf . . . . . . . . .  set up the default server that replies to non-virtual-host requests
  40. #  |    |--mod_userdir.conf  . . . . . . . .  enable UserDir (if mod_userdir is loaded)
  41. #  |    `--conf.d/apache2-manual?conf  . . .  add the docs ('?' = if installed)
  42. #  |
  43. #  |-- sysconfig.d/include.conf  . . . . . .  [*] your include files
  44. #  |                                             (for each file to be included here, put its name
  45. #  |                                              into APACHE_INCLUDE_* in /etc/sysconfig/apache2)
  46. #  |
  47. #  `-- vhosts.d/ . . . . . . . . . . . . . .  for each virtual host, place one file here
  48. #       `-- *.conf . . . . . . . . . . . . .     (*.conf is automatically included)
  49. #
  50. #
  51. # Files marked [*] are created from sysconfig upon server restart: instead of
  52. # these files, you edit /etc/sysconfig/apache2
  53.  
  54.  
  55.  
  56. #  Filesystem layout:
  57. #
  58. # /etc/apache2/
  59. #  |-- charset.conv  . . . . . . . . . . . .  for mod_auth_ldap
  60. #  |-- conf.d/
  61. #  |   |-- apache2-manual.conf . . . . . . .  conf that comes with apache2-doc
  62. #  |   |-- mod_php4.conf . . . . . . . . . .  (example) conf that comes with apache2-mod_php4
  63. #  |   `-- ... . . . . . . . . . . . . . . .  other configuration added by packages
  64. #  |-- default-server.conf
  65. #  |-- errors.conf
  66. #  |-- httpd.conf  . . . . . . . . . . . . .  top level configuration file
  67. #  |-- listen.conf
  68. #  |-- magic
  69. #  |-- mime.types -> ../mime.types
  70. #  |-- mod_autoindex-defaults.conf
  71. #  |-- mod_info.conf
  72. #  |-- mod_log_config.conf
  73. #  |-- mod_mime-defaults.conf
  74. #  |-- mod_perl-startup.pl
  75. #  |-- mod_status.conf
  76. #  |-- mod_userdir.conf
  77. #  |-- mod_usertrack.conf
  78. #  |-- server-tuning.conf
  79. #  |-- ssl-global.conf
  80. #  |-- ssl.crl/  . . . . . . . . . . . . . .  PEM-encoded X.509 Certificate Revocation Lists (CRL)
  81. #  |-- ssl.crt/  . . . . . . . . . . . . . .  PEM-encoded X.509 Certificates
  82. #  |-- ssl.csr/  . . . . . . . . . . . . . .  PEM-encoded X.509 Certificate Signing Requests
  83. #  |-- ssl.key/  . . . . . . . . . . . . . .  PEM-encoded RSA Private Keys
  84. #  |-- ssl.prm/  . . . . . . . . . . . . . .  public DSA Parameter Files
  85. #  |-- sysconfig.d/  . . . . . . . . . . . .  files that are created from /etc/sysconfig/apache2
  86. #  |   |-- global.conf
  87. #  |   |-- include.conf
  88. #  |   `-- loadmodule.conf
  89. #  |-- uid.conf
  90. #  `-- vhosts.d/ . . . . . . . . . . . . . .  put your virtual host configuration (*.conf) here
  91. #      |-- vhost-ssl.template
  92. #      `-- vhost.template
  93.  
  94.  
  95.  
  96. ### Global Environment ######################################################
  97. #
  98. # The directives in this section affect the overall operation of Apache,
  99. # such as the number of concurrent requests.
  100.  
  101. # run under this user/group id
  102. Include /etc/apache2/uid.conf
  103.  
  104. # - how many server processes to start (server pool regulation)
  105. # - usage of KeepAlive
  106. Include /etc/apache2/server-tuning.conf
  107.  
  108. # ErrorLog: The location of the error log file.
  109. # If you do not specify an ErrorLog directive within a <VirtualHost>
  110. # container, error messages relating to that virtual host will be
  111. # logged here.  If you *do* define an error logfile for a <VirtualHost>
  112. # container, that host's errors will be logged there and not here.
  113. ErrorLog /var/log/apache2/error_log
  114.  
  115. # generated from APACHE_MODULES in /etc/sysconfig/apache2
  116. Include /etc/apache2/sysconfig.d/loadmodule.conf
  117.  
  118. # IP addresses / ports to listen on
  119. Include /etc/apache2/listen.conf
  120.  
  121. # predefined logging formats
  122. Include /etc/apache2/mod_log_config.conf
  123.  
  124. # generated from global settings in /etc/sysconfig/apache2
  125. Include /etc/apache2/sysconfig.d/global.conf
  126.  
  127. # optional mod_status, mod_info
  128. Include /etc/apache2/mod_status.conf
  129. Include /etc/apache2/mod_info.conf
  130.  
  131. # optional cookie-based user tracking
  132. # read the documentation before using it!!
  133. Include /etc/apache2/mod_usertrack.conf
  134.  
  135. # configuration of server-generated directory listings
  136. Include /etc/apache2/mod_autoindex-defaults.conf
  137.  
  138. # associate MIME types with filename extensions
  139. TypesConfig /etc/apache2/mime.types
  140. DefaultType text/plain
  141. Include /etc/apache2/mod_mime-defaults.conf
  142.  
  143. # set up (customizable) error responses
  144. Include /etc/apache2/errors.conf
  145.  
  146. # global (server-wide) SSL configuration, that is not specific to
  147. # any virtual host
  148. Include /etc/apache2/ssl-global.conf
  149.  
  150. # forbid access to the entire filesystem by default
  151. <Directory />
  152.     Options None
  153.     AllowOverride None
  154.     Order deny,allow
  155.     Deny from all
  156. </Directory>
  157.  
  158. # use .htaccess files for overriding,
  159. AccessFileName .htaccess
  160. # and never show them
  161. <Files ~ "^\.ht">
  162.     Order allow,deny
  163.     Deny from all
  164. </Files>
  165.  
  166. # List of resources to look for when the client requests a directory
  167. DirectoryIndex index.html index.html.var index.php
  168.  
  169. ### 'Main' server configuration #############################################
  170. #
  171. # The directives in this section set up the values used by the 'main'
  172. # server, which responds to any requests that aren't handled by a
  173. # <VirtualHost> definition.  These values also provide defaults for
  174. # any <VirtualHost> containers you may define later in the file.
  175. #
  176. # All of these directives may appear inside <VirtualHost> containers,
  177. # in which case these default settings will be overridden for the
  178. # virtual host being defined.
  179. #
  180. Include /etc/apache2/default-server.conf
  181.  
  182.  
  183. # Another way to include your own files
  184. #
  185. # The file below is generated from /etc/sysconfig/apache2,
  186. # include arbitrary files as named in APACHE_CONF_INCLUDE_FILES and
  187. # APACHE_CONF_INCLUDE_DIRS
  188. Include /etc/apache2/sysconfig.d/include.conf
  189.  
  190.  
  191. ### Virtual server configuration ############################################
  192. #
  193. # VirtualHost: If you want to maintain multiple domains/hostnames on your
  194. # machine you can setup VirtualHost containers for them. Most configurations
  195. # use only name-based virtual hosts so the server doesn't need to worry about
  196. # IP addresses. This is indicated by the asterisks in the directives below.
  197. #
  198. # Please see the documentation at
  199. # <URL:http://httpd.apache.org/docs-2.2/vhosts/>
  200. # for further details before you try to setup virtual hosts.
  201. #
  202. # You may use the command line option '-S' to verify your virtual host
  203. # configuration.
  204. #
  205. Include /etc/apache2/vhosts.d/*.conf
  206.  
  207.  
  208. # Note: instead of adding your own configuration here, consider
  209. #       adding it in your own file (/etc/apache2/httpd.conf.local)
  210. #       putting its name into APACHE_CONF_INCLUDE_FILES in
  211. #       /etc/sysconfig/apache2 -- this will make system updates
  212. #       easier :)

Submit Fix

Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Select the syntax highlighting mode to use.