Posted by http Thu 8th Feb 2007 21:19 - Syntax is None/text - 458 views
Download | New Post | Modify | Hide line numbers
  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 for detailed information.
  5. # In particular, see
  6. #
  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 "logs/foo.log"
  17. # with ServerRoot set to "C:/xampp/xampp/apache" will be interpreted by the
  18. # server as "C:/xampp/xampp/apache/logs/foo.log".
  19. #
  20. # NOTE: Where filenames are specified, you must use forward slashes
  21. # instead of backslashes (e.g., "c:/apache" instead of "c:\apache").
  22. # If a drive letter is omitted, the drive on which Apache.exe is located
  23. # will be used by default.  It is recommended that you always supply
  24. # an explicit drive letter in absolute paths, however, to avoid
  25. # confusion.
  26. #
  27.  
  28. # ThreadsPerChild: constant number of worker threads in the server process
  29. # MaxRequestsPerChild: maximum  number of requests a server process serves
  30. ThreadsPerChild 250
  31. MaxRequestsPerChild  0
  32.  
  33. #
  34. # ServerRoot: The top of the directory tree under which the server's
  35. # configuration, error, and log files are kept.
  36. #
  37. # Do not add a slash at the end of the directory path.  If you point
  38. # ServerRoot at a non-local disk, be sure to point the LockFile directive
  39. # at a local disk.  If you wish to share the same ServerRoot for multiple
  40. # httpd daemons, you will need to change at least LockFile and PidFile.
  41. #
  42. ServerRoot "C:/xampp/xampp/apache"
  43.  
  44. #
  45. # Listen: Allows you to bind Apache to specific IP addresses and/or
  46. # ports, instead of the default. See also the
  47. # directive.
  48. #
  49. # Change this to Listen on specific IP addresses as shown below to
  50. # prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
  51. #
  52. #Listen 12.34.56.78:80
  53. Listen 80
  54.  
  55. #
  56. # Dynamic Shared Object (DSO) Support
  57. #
  58. # To be able to use the functionality of a module which was built as a DSO you
  59. # have to place corresponding `LoadModule' lines at this location so the
  60. # directives contained in it are actually available _before_ they are used.
  61. # Statically compiled modules (those listed by `httpd -l') do not need
  62. # to be loaded here.
  63. #
  64. # Example:
  65. # LoadModule foo_module modules/mod_foo.so
  66. #
  67. LoadModule actions_module modules/mod_actions.so
  68. LoadModule alias_module modules/mod_alias.so
  69. LoadModule asis_module modules/mod_asis.so
  70. LoadModule auth_basic_module modules/mod_auth_basic.so
  71. #LoadModule auth_digest_module modules/mod_auth_digest.so
  72. #LoadModule authn_anon_module modules/mod_authn_anon.so
  73. #LoadModule authn_dbm_module modules/mod_authn_dbm.so
  74. LoadModule authn_default_module modules/mod_authn_default.so
  75. LoadModule authn_file_module modules/mod_authn_file.so
  76. #LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
  77. #LoadModule authz_dbm_module modules/mod_authz_dbm.so
  78. LoadModule authz_default_module modules/mod_authz_default.so
  79. LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
  80. LoadModule authz_host_module modules/mod_authz_host.so
  81. LoadModule authz_user_module modules/mod_authz_user.so
  82. #LoadModule autoindex_module modules/mod_autoindex.so # don't load because of mod_autoindex_color.so
  83. #LoadModule bucketeer_module modules/mod_bucketeer.so
  84. #LoadModule cache_module modules/mod_cache.so
  85. #LoadModule disk_cache_module modules/mod_disk_cache.so
  86. #LoadModule file_cache_module modules/mod_file_cache.so
  87. #LoadModule mem_cache_module modules/mod_mem_cache.so
  88. #LoadModule cern_meta_module modules/mod_cern_meta.so
  89. #LoadModule charset_lite_module modules/mod_charset_lite.so
  90. LoadModule cgi_module modules/mod_cgi.so
  91. LoadModule dav_module modules/mod_dav.so
  92. LoadModule dav_fs_module modules/mod_dav_fs.so
  93. #LoadModule deflate_module modules/mod_deflate.so
  94. LoadModule dir_module modules/mod_dir.so
  95. #LoadModule dumpio_module modules/mod_dumpio.so
  96. LoadModule env_module modules/mod_env.so
  97. #LoadModule expires_module modules/mod_expires.so
  98. #LoadModule ext_filter_module modules/mod_ext_filter.so
  99. #LoadModule headers_module modules/mod_headers.so
  100. #LoadModule ident_module modules/mod_ident.so
  101. #LoadModule imagemap_module modules/mod_imagemap.so
  102. LoadModule include_module modules/mod_include.so
  103. LoadModule info_module modules/mod_info.so
  104. LoadModule isapi_module modules/mod_isapi.so
  105. LoadModule ldap_module modules/mod_ldap.so
  106. #LoadModule logio_module modules/mod_logio.so
  107. LoadModule log_config_module modules/mod_log_config.so
  108. #LoadModule log_forensic_module modules/mod_log_forensic.so
  109. LoadModule mime_module modules/mod_mime.so
  110. #LoadModule mime_magic_module modules/mod_mime_magic.so
  111. LoadModule negotiation_module modules/mod_negotiation.so
  112. #LoadModule proxy_module modules/mod_proxy.so
  113. #LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
  114. #LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
  115. #LoadModule proxy_connect_module modules/mod_proxy_connect.so
  116. #LoadModule proxy_http_module modules/mod_proxy_http.so
  117. #LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
  118. LoadModule rewrite_module modules/mod_rewrite.so
  119. LoadModule setenvif_module modules/mod_setenvif.so
  120. #LoadModule speling_module modules/mod_speling.so
  121. LoadModule status_module modules/mod_status.so
  122. #LoadModule unique_id_module modules/mod_unique_id.so
  123. #LoadModule userdir_module modules/mod_userdir.so
  124. #LoadModule usertrack_module modules/mod_usertrack.so
  125. #LoadModule version_module modules/mod_version.so
  126. #LoadModule vhost_alias_module modules/mod_vhost_alias.so
  127. LoadModule ssl_module modules/mod_ssl.so
  128.  
  129. LoadModule autoindex_color_module modules/mod_autoindex_color.so
  130. #LoadModule mysql_auth_module modules/mod_auth_mysql.so
  131. #LoadModule auth_remote_module modules/mod_auth_remote.so
  132. #LoadModule sspi_auth_module modules/mod_auth_sspi.so
  133. #LoadModule log_sql_module modules/mod_log_sql.so
  134. #LoadModule log_sql_mysql_module modules/mod_log_sql_mysql.so
  135. #
  136. #    LoadModule log_sql_ssl_module modules/mod_log_sql_ssl.so
  137. #
  138. #LoadModule proxy_html_module modules/mod_proxy_html.so
  139. #LoadModule xmlns_module modules/mod_xmlns.so
  140. #LoadModule proxy_xml_module modules/mod_proxy_xml.so
  141. #LoadModule bw_module modules/mod_bw.so
  142.  
  143. # 'Main' server configuration
  144. #
  145. # The directives in this section set up the values used by the 'main'
  146. # server, which responds to any requests that aren't handled by a
  147. # definition.  These values also provide defaults for
  148. # any containers you may define later in the file.
  149. #
  150. # All of these directives may appear inside containers,
  151. # in which case these default settings will be overridden for the
  152. # virtual host being defined.
  153. #
  154.  
  155. #
  156. # ServerAdmin: Your address, where problems with the server should be
  157. # e-mailed.  This address appears on some server-generated pages, such
  158. # as error documents.  e.g.
  159. #
  160. ServerAdmin admin@localhost
  161.  
  162. #
  163. # ServerName gives the name and port that the server uses to identify itself.
  164. # This can often be determined automatically, but we recommend you specify
  165. # it explicitly to prevent problems during startup.
  166. #
  167. # If your host doesn't have a registered DNS name, enter its IP address here.
  168. #
  169. ServerName localhost:80
  170.  
  171. #
  172. # DocumentRoot: The directory out of which you will serve your
  173. # documents. By default, all requests are taken from this directory, but
  174. # symbolic links and aliases may be used to point to other locations.
  175. #
  176. DocumentRoot "C:/xampp/xampp/htdocs"
  177.  
  178. #
  179. # Each directory to which Apache has access can be configured with respect
  180. # to which services and features are allowed and/or disabled in that
  181. # directory (and its subdirectories).
  182. #
  183. # First, we configure the "default" to be a very restrictive set of
  184. # features. 
  185. #
  186.     Options FollowSymLinks
  187.     AllowOverride None
  188.     Order deny,allow
  189.     Deny from all
  190.  
  191. #
  192. # Note that from this point forward you must specifically allow
  193. # particular features to be enabled - so if something's not working as
  194. # you might expect, make sure that you have specifically enabled it
  195. # below.
  196. #
  197.  
  198. #
  199. # This should be changed to whatever you set DocumentRoot to.
  200. #
  201.     #
  202.     # Possible values for the Options directive are "None", "All",
  203.     # or any combination of:
  204.     #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
  205.     #
  206.     # Note that "MultiViews" must be named *explicitly* --- "Options All"
  207.     # doesn't give it to you.
  208.     #
  209.     # The Options directive is both complicated and important.  Please see
  210.     # http://httpd.apache.org/docs/2.2/mod/core.html#options
  211.     # for more information.
  212.     #
  213.     Options Indexes FollowSymLinks Includes ExecCGI
  214.    
  215.     #
  216.     # AllowOverride controls what directives may be placed in .htaccess files.
  217.     # It can be "All", "None", or any combination of the keywords:
  218.     #   Options FileInfo AuthConfig Limit
  219.     #
  220.     AllowOverride All
  221.  
  222.     #
  223.     # Controls who can get stuff from this server.
  224.     #
  225.     Order allow,deny
  226.     Allow from all
  227.  
  228.  
  229. #
  230. # DirectoryIndex: sets the file that Apache will serve if a directory
  231. # is requested.
  232. #
  233.     DirectoryIndex index.php index.php4 index.php3 index.cgi index.pl index.html index.htm index.shtml index.phtml
  234.  
  235. #
  236. # The following lines prevent .htaccess and .htpasswd files from being
  237. # viewed by Web clients.
  238. #
  239.     Order allow,deny
  240.     Deny from all
  241.  
  242. #
  243. # ErrorLog: The location of the error log file.
  244. # If you do not specify an ErrorLog directive within a
  245. # container, error messages relating to that virtual host will be
  246. # logged here.  If you *do* define an error logfile for a
  247. # container, that host's errors will be logged there and not here.
  248. #
  249. ErrorLog logs/error.log
  250.  
  251. #
  252. # LogLevel: Control the number of messages logged to the error_log.
  253. # Possible values include: debug, info, notice, warn, error, crit,
  254. # alert, emerg.
  255. #
  256. LogLevel warn
  257.  
  258.     #
  259.     # The following directives define some format nicknames for use with
  260.     # a CustomLog directive (see below).
  261.     #
  262.     LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  263.     LogFormat "%h %l %u %t \"%r\" %>s %b" common
  264.  
  265.    
  266.       # You need to enable mod_logio.c to use %I and %O
  267.       LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
  268.    
  269.  
  270.     #
  271.     # The location and format of the access logfile (Common Logfile Format).
  272.     # If you do not define any access logfiles within a
  273.     # container, they will be logged here.  Contrariwise, if you *do*
  274.     # define per- access logfiles, transactions will be
  275.     # logged therein and *not* in this file.
  276.     #
  277.     CustomLog logs/access.log common
  278.  
  279.     #
  280.     # If you prefer a logfile with access, agent, and referer information
  281.     # (Combined Logfile Format) you can use the following directive.
  282.     #
  283.     #CustomLog logs/access.log combined
  284.  
  285.     #
  286.     # Redirect: Allows you to tell clients about documents that used to
  287.     # exist in your server's namespace, but do not anymore. The client
  288.     # will make a new request for the document at its new location.
  289.     # Example:
  290.     # Redirect permanent /foo http://www.example.com/bar
  291.  
  292.     #
  293.     # Alias: Maps web paths into filesystem paths and is used to
  294.     # access content that does not live under the DocumentRoot.
  295.     # Example:
  296.     # Alias /webpath /full/filesystem/path
  297.     #
  298.     # If you include a trailing / on /webpath then the server will
  299.     # require it to be present in the URL.  You will also likely
  300.     # need to provide a section to allow access to
  301.     # the filesystem path.
  302.  
  303.     #
  304.     # ScriptAlias: This controls which directories contain server scripts.
  305.     # ScriptAliases are essentially the same as Aliases, except that
  306.     # documents in the target directory are treated as applications and
  307.     # run by the server when requested rather than as documents sent to the
  308.     # client.  The same rules about trailing "/" apply to ScriptAlias
  309.     # directives as to Alias.
  310.     #
  311.     ScriptAlias /cgi-bin/ "C:/xampp/xampp/cgi-bin/"
  312.  
  313.  
  314. #
  315. # "C:/xampp/xampp/cgi-bin" should be changed to whatever your ScriptAliased
  316. # CGI directory exists, if you have that configured.
  317. #
  318.     AllowOverride None
  319.     Options None
  320.     Order allow,deny
  321.     Allow from all
  322.  
  323. #
  324. # Apache parses all CGI scripts for the shebang line by default.
  325. # This comment line, the first line of the script, consists of the symbols
  326. # pound (#) and exclamation (!) followed by the path of the program that
  327. # can execute this specific script.  For a perl script, with perl.exe in
  328. # the C:\Program Files\Perl directory, the shebang line should be:
  329.  
  330.    #!c:/program files/perl/perl
  331.  
  332. # Note you _must_not_ indent the actual shebang line, and it must be the
  333. # first line of the file.  Of course, CGI processing must be enabled by
  334. # the appropriate ScriptAlias or Options ExecCGI directives for the files
  335. # or directory in question.
  336. #
  337. # However, Apache on Windows allows either the Unix behavior above, or can
  338. # use the Registry to match files by extention.  The command to execute
  339. # a file of this type is retrieved from the registry by the same method as
  340. # the Windows Explorer would use to handle double-clicking on a file.
  341. # These script actions can be configured from the Windows Explorer View menu,
  342. # 'Folder Options', and reviewing the 'File Types' tab.  Clicking the Edit
  343. # button allows you to modify the Actions, of which Apache 1.3 attempts to
  344. # perform the 'Open' Action, and failing that it will try the shebang line.
  345. # This behavior is subject to change in Apache release 2.0.
  346. #
  347. # Each mechanism has it's own specific security weaknesses, from the means
  348. # to run a program you didn't intend the website owner to invoke, and the
  349. # best method is a matter of great debate.
  350. #
  351. # To enable the this Windows specific behavior (and therefore -disable- the
  352. # equivilant Unix behavior), uncomment the following directive:
  353. #
  354. #ScriptInterpreterSource registry
  355. #
  356. # The directive above can be placed in individual blocks or the
  357. # .htaccess file, with either the 'registry' (Windows behavior) or 'script'
  358. # (Unix behavior) option, and will override this server default option.
  359. #
  360.  
  361. #
  362. # DefaultType: the default MIME type the server will use for a document
  363. # if it cannot otherwise determine one, such as from filename extensions.
  364. # If your server contains mostly text or HTML documents, "text/plain" is
  365. # a good value.  If most of your content is binary, such as applications
  366. # or images, you may want to use "application/octet-stream" instead to
  367. # keep browsers from trying to display binary files as though they are
  368. # text.
  369. #
  370. DefaultType text/plain
  371.  
  372.     #
  373.     # TypesConfig points to the file containing the list of mappings from
  374.     # filename extension to MIME-type.
  375.     #
  376.     TypesConfig conf/mime.types
  377.  
  378.     #
  379.     # AddType allows you to add to or override the MIME configuration
  380.     # file specified in TypesConfig for specific file types.
  381.     #
  382.     #AddType application/x-gzip .tgz
  383.     #
  384.     # AddEncoding allows you to have certain browsers uncompress
  385.     # information on the fly. Note: Not all browsers support this.
  386.     #
  387.     AddEncoding x-compress .Z
  388.     AddEncoding x-gzip .gz .tgz
  389.     #
  390.     # If the AddEncoding directives above are commented-out, then you
  391.     # probably should define those extensions to indicate media types:
  392.     #
  393.     #AddType application/x-compress .Z
  394.     #AddType application/x-gzip .gz .tgz
  395.  
  396.     #
  397.     # AddHandler allows you to map certain file extensions to "handlers":
  398.     # actions unrelated to filetype. These can be either built into the server
  399.     # or added with the Action directive (see below)
  400.     #
  401.     # To use CGI scripts outside of ScriptAliased directories:
  402.     # (You will also need to add "ExecCGI" to the "Options" directive.)
  403.     #
  404.     AddHandler cgi-script .cgi
  405.  
  406.     # For files that include their own HTTP headers:
  407.     #AddHandler send-as-is asis
  408.  
  409.     # For server-parsed imagemap files:
  410.     #AddHandler imap-file map
  411.  
  412.     # For type maps (negotiated resources):
  413.     #AddHandler type-map var
  414.  
  415.     #
  416.     # Filters allow you to process content before it is sent to the client.
  417.     #
  418.     # To parse .shtml files for server-side includes (SSI):
  419.     # (You will also need to add "Includes" to the "Options" directive.)
  420.     #
  421.    AddType text/html .shtml
  422.    AddOutputFilter INCLUDES .shtml
  423.  
  424. #
  425. # The mod_mime_magic module allows the server to use various hints from the
  426. # contents of the file itself to determine its type.  The MIMEMagicFile
  427. # directive tells the module where the hint definitions are located.
  428. #
  429. #MIMEMagicFile conf/magic
  430.  
  431. #
  432. # Customizable error responses come in three flavors:
  433. # 1) plain text 2) local redirects 3) external redirects
  434. #
  435. # Some examples:
  436. #ErrorDocument 500 "The server made a boo boo."
  437. #ErrorDocument 404 /missing.html
  438. #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
  439. #ErrorDocument 402 http://www.example.com/subscription_info.html
  440. #
  441.  
  442. #
  443. # EnableMMAP and EnableSendfile: On systems that support it,
  444. # memory-mapping or the sendfile syscall is used to deliver
  445. # files.  This usually improves server performance, but must
  446. # be turned off when serving from networked-mounted
  447. # filesystems or if support for these functions is otherwise
  448. # broken on your system.
  449. #
  450. EnableMMAP off
  451. EnableSendfile off
  452.  
  453. # Supplemental configuration
  454. #
  455. # The configuration files in the conf/extra/ directory can be
  456. # included to add extra features or to modify the default configuration of
  457. # the server, or you may simply copy their contents here and change as
  458. # necessary.
  459.  
  460. # XAMPP specific settings
  461. Include conf/extra/httpd-xampp.conf
  462.  
  463. # Server-pool management (MPM specific)
  464. # Include conf/extra/httpd-mpm.conf
  465.  
  466. # Multi-language error messages
  467. Include conf/extra/httpd-multilang-errordoc.conf
  468.  
  469. # Fancy directory listings
  470. Include conf/extra/httpd-autoindex.conf
  471.  
  472. # Language settings
  473. Include conf/extra/httpd-languages.conf
  474.  
  475. # User home directories
  476. Include conf/extra/httpd-userdir.conf
  477.  
  478. # Real-time info on requests and configuration
  479. Include conf/extra/httpd-info.conf
  480.  
  481. # Virtual hosts
  482. Include conf/extra/httpd-vhosts.conf
  483.  
  484. # Local access to the Apache HTTP Server Manual
  485. Include conf/extra/httpd-manual.conf
  486.  
  487. # Distributed authoring and versioning (WebDAV)
  488. Include conf/extra/httpd-dav.conf
  489.  
  490. # Various default settings
  491. Include conf/extra/httpd-default.conf
  492.  
  493. # Secure (SSL/TLS) connections
  494. Include conf/extra/httpd-ssl.conf
  495.  
  496. #
  497. # Note: The following must must be present to support
  498. #       starting without SSL on platforms with no /dev/random equivalent
  499. #       but a statically compiled-in mod_ssl.
  500. #
  501. SSLRandomSeed startup builtin
  502. SSLRandomSeed connect builtin
  503.  

PermaLink to this entry https://pastebin.co.uk/10118
Posted by http Thu 8th Feb 2007 21:19 - Syntax is None/text - 458 views
Download | New Post | Modify | Hide line numbers

 

Comments: 0