home *** CD-ROM | disk | FTP | other *** search
/ Enter 2004 June / ENTER.ISO / files / xampp-win32-1.4.5-installer.exe / xampp / httpd.conf < prev    next >
Encoding:
Text File  |  2004-07-07  |  34.1 KB  |  1,021 lines

  1. #
  2. # Based upon the NCSA server configuration files originally by Rob McCool.
  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.0/> for detailed information about
  7. # the directives.
  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. # The configuration directives are grouped into three basic sections:
  14. #  1. Directives that control the operation of the Apache server process as a
  15. #     whole (the 'global environment').
  16. #  2. Directives that define the parameters of the 'main' or 'default' server,
  17. #     which responds to requests that aren't handled by a virtual host.
  18. #     These directives also provide default values for the settings
  19. #     of all virtual hosts.
  20. #  3. Settings for virtual hosts, which allow Web requests to be sent to
  21. #     different IP addresses or hostnames and have them handled by the
  22. #     same Apache server process.
  23. #
  24. # Configuration and logfile names: If the filenames you specify for many
  25. # of the server's control files begin with "/" (or "drive:/" for Win32), the
  26. # server will use that explicit path.  If the filenames do *not* begin
  27. # with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
  28. # with ServerRoot set to "/usr/local/apache" will be interpreted by the
  29. # server as "/usr/local/apache/logs/foo.log".
  30. #
  31. # NOTE: Where filenames are specified, you must use forward slashes
  32. # instead of backslashes (e.g., "c:/apache" instead of "c:\apache").
  33. # If a drive letter is omitted, the drive on which Apache.exe is located
  34. # will be used by default.  It is recommended that you always supply
  35. # an explicit drive letter in absolute paths, however, to avoid
  36. # confusion.
  37. #
  38.  
  39. ### Section 1: Global Environment
  40. #
  41. # The directives in this section affect the overall operation of Apache,
  42. # such as the number of concurrent requests it can handle or where it
  43. # can find its configuration files.
  44. #
  45.  
  46. #
  47. # ServerRoot: The top of the directory tree under which the server's
  48. # configuration, error, and log files are kept.
  49. #
  50. # NOTE!  If you intend to place this on an NFS (or otherwise network)
  51. # mounted filesystem then please read the LockFile documentation
  52. # (available at <URL:http://httpd.apache.org/docs-2.0/mod/core.html#lockfile>);
  53. # you will save yourself a lot of trouble.
  54. #
  55. # Do NOT add a slash at the end of the directory path.
  56. #
  57. ServerRoot "/xampp/apache"
  58.  
  59. #
  60. # ScoreBoardFile: File used to store internal server process information.
  61. # If unspecified (the default), the scoreboard will be stored in an
  62. # anonymous shared memory segment, and will be unavailable to third-party
  63. # applications.
  64. # If specified, ensure that no two invocations of Apache share the same
  65. # scoreboard file. The scoreboard file MUST BE STORED ON A LOCAL DISK.
  66. #
  67. #ScoreBoardFile logs/apache_runtime_status
  68.  
  69. #
  70. # PidFile: The file in which the server should record its process
  71. # identification number when it starts.
  72. #
  73. PidFile logs/httpd.pid
  74.  
  75. #
  76. # Timeout: The number of seconds before receives and sends time out.
  77. #
  78. Timeout 300
  79.  
  80. #
  81. # KeepAlive: Whether or not to allow persistent connections (more than
  82. # one request per connection). Set to "Off" to deactivate.
  83. #
  84. KeepAlive On
  85.  
  86. #
  87. # MaxKeepAliveRequests: The maximum number of requests to allow
  88. # during a persistent connection. Set to 0 to allow an unlimited amount.
  89. # We recommend you leave this number high, for maximum performance.
  90. #
  91. MaxKeepAliveRequests 100
  92.  
  93. #
  94. # KeepAliveTimeout: Number of seconds to wait for the next request from the
  95. # same client on the same connection.
  96. #
  97. KeepAliveTimeout 15
  98.  
  99. ##
  100. ## Server-Pool Size Regulation (MPM specific)
  101. ##
  102.  
  103. # WinNT MPM
  104. # ThreadsPerChild: constant number of worker threads in the server process
  105. # MaxRequestsPerChild: maximum  number of requests a server process serves
  106. <IfModule mpm_winnt.c>
  107. ThreadsPerChild 250
  108. MaxRequestsPerChild  0
  109. </IfModule>
  110.  
  111. #
  112. # Listen: Allows you to bind Apache to specific IP addresses and/or
  113. # ports, in addition to the default. See also the <VirtualHost>
  114. # directive.
  115. #
  116. # Change this to Listen on specific IP addresses as shown below to
  117. # prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
  118. #
  119. #Listen 12.34.56.78:80
  120. Listen 80
  121.  
  122.  
  123.  
  124. #
  125. # Dynamic Shared Object (DSO) Support
  126. #
  127. # To be able to use the functionality of a module which was built as a DSO you
  128. # have to place corresponding `LoadModule' lines at this location so the
  129. # directives contained in it are actually available _before_ they are used.
  130. # Statically compiled modules (those listed by `httpd -l') do not need
  131. # to be loaded here.
  132. #
  133. # Example:
  134. # LoadModule foo_module modules/mod_foo.so
  135. #
  136. LoadModule access_module modules/mod_access.so
  137. LoadModule actions_module modules/mod_actions.so
  138. LoadModule alias_module modules/mod_alias.so
  139. LoadModule asis_module modules/mod_asis.so
  140. LoadModule auth_module modules/mod_auth.so
  141. #LoadModule auth_anon_module modules/mod_auth_anon.so
  142. #LoadModule auth_dbm_module modules/mod_auth_dbm.so
  143. #LoadModule auth_digest_module modules/mod_auth_digest.so
  144. LoadModule autoindex_module modules/mod_autoindex.so
  145. #LoadModule cern_meta_module modules/mod_cern_meta.so
  146. LoadModule cgi_module modules/mod_cgi.so
  147. #LoadModule dav_module modules/mod_dav.so
  148. #LoadModule dav_fs_module modules/mod_dav_fs.so
  149. LoadModule dir_module modules/mod_dir.so
  150. LoadModule env_module modules/mod_env.so
  151. #LoadModule expires_module modules/mod_expires.so
  152. #LoadModule file_cache_module modules/mod_file_cache.so
  153. #LoadModule headers_module modules/mod_headers.so
  154. #LoadModule imap_module modules/mod_imap.so
  155. LoadModule include_module modules/mod_include.so
  156. #LoadModule info_module modules/mod_info.so
  157. #LoadModule isapi_module modules/mod_isapi.so
  158. LoadModule log_config_module modules/mod_log_config.so
  159. LoadModule mime_module modules/mod_mime.so
  160. #LoadModule mime_magic_module modules/mod_mime_magic.so
  161. #LoadModule proxy_module modules/mod_proxy.so
  162. #LoadModule proxy_connect_module modules/mod_proxy_connect.so
  163. #LoadModule proxy_http_module modules/mod_proxy_http.so
  164. #LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
  165. #LoadModule negotiation_module modules/mod_negotiation.so
  166. #LoadModule rewrite_module modules/mod_rewrite.so
  167. LoadModule setenvif_module modules/mod_setenvif.so
  168. #LoadModule speling_module modules/mod_speling.so
  169. #LoadModule status_module modules/mod_status.so
  170. #LoadModule unique_id_module modules/mod_unique_id.so
  171. #LoadModule userdir_module modules/mod_userdir.so
  172. #LoadModule usertrack_module modules/mod_usertrack.so
  173. #LoadModule vhost_alias_module modules/mod_vhost_alias.so
  174. #LoadModule mysql_auth_module modules/mod_auth_mysql.so
  175. #LoadModule auth_remote_module modules/mod_auth_remote.so
  176.  
  177.  
  178. <IfModule mod_dav.c>
  179. <IfModule mod_dav_fs.c>
  180. Include conf/moddav.conf
  181. </IfModule>
  182. </IfModule>
  183.  
  184. <IfModule mod_auth_mysql.c>
  185. Include conf/mod_auth_mysql.conf
  186. </IfModule>
  187.  
  188. <IfModule mod_auth_remote.c>
  189. <Directory "/xampp/htdocs/fonts/">
  190.  AllowOverride All
  191.  AuthType           Basic
  192.  AuthName           "AUTH REMOTE TEST"
  193.  AuthRemoteServer   127.0.0.1        # like www.home.net
  194.  AuthRemotePort     80
  195.  AuthRemoteURL      /forbidden/        # like www.home.net/forbidden/
  196.  require            valid-user
  197.  ##### user:pass
  198. </Directory>
  199. </IfModule>
  200.  
  201. Include conf/ssl.conf
  202.  
  203. LoadFile "/xampp/apache/bin/php5ts.dll"
  204. LoadModule php5_module "/xampp/apache/bin/php5apache2.dll"
  205.  
  206. Alias /webalizer "/xampp/webalizer/"
  207.  
  208.     <Directory "/xampp/webalizer/">
  209.         Options Indexes MultiViews ExecCGI
  210.         AddHandler cgi-script .cgi .exe
  211.         Order allow,deny
  212.         Allow from all
  213.     </Directory>
  214.  
  215.  
  216. #ScriptAlias /php/ "/xampp/php/"
  217.  
  218. AddType application/x-httpd-php .php .php4 .php3 .phtml
  219. #Action application/x-httpd-php "/php/php.exe"
  220.  
  221. Alias /phpmyadmin "/xampp/phpmyadmin/"
  222.  
  223.     <Directory "/xampp/phpMyAdmin/">
  224.         Options Indexes MultiViews ExecCGI
  225.         DirectoryIndex index.php
  226.         Order allow,deny
  227.         Allow from all
  228.     </Directory>
  229.  
  230.     Alias /excel "/xampp/htdocs/excel/"
  231.  
  232.     <Directory "/xampp/htdocs/excel/">
  233.         Options Indexes MultiViews ExecCGI
  234.         AddHandler cgi-script .cgi .exe
  235.         Order allow,deny
  236.         Allow from all
  237.     </Directory>
  238.     
  239.     Alias /pdf "/xampp/htdocs/pdf/"
  240.  
  241.     <Directory "/xampp/htdocs/pdf/">
  242.         Options Indexes MultiViews ExecCGI
  243.         AddHandler cgi-script .cgi .exe
  244.         Order allow,deny
  245.         Allow from all
  246.     </Directory>
  247.  
  248.     Alias /csimcache "/xampp/tmp/"
  249.  
  250.     <Directory "/xampp/tmp">
  251.         AllowOverride None
  252.         Order allow,deny
  253.         Allow from all
  254.     </Directory>
  255.  
  256. #
  257. # ExtendedStatus controls whether Apache will generate "full" status
  258. # information (ExtendedStatus On) or just basic information (ExtendedStatus
  259. # Off) when the "server-status" handler is called. The default is Off.
  260. #
  261. #ExtendedStatus On
  262.  
  263. ### Section 2: 'Main' server configuration
  264. #
  265. # The directives in this section set up the values used by the 'main'
  266. # server, which responds to any requests that aren't handled by a
  267. # <VirtualHost> definition.  These values also provide defaults for
  268. # any <VirtualHost> containers you may define later in the file.
  269. #
  270. # All of these directives may appear inside <VirtualHost> containers,
  271. # in which case these default settings will be overridden for the
  272. # virtual host being defined.
  273. #
  274.  
  275. #
  276. # ServerAdmin: Your address, where problems with the server should be
  277. # e-mailed.  This address appears on some server-generated pages, such
  278. # as error documents.  e.g. admin@your-domain.com
  279. #
  280. ServerAdmin admin@localhost
  281.  
  282. #
  283. # ServerName gives the name and port that the server uses to identify itself.
  284. # This can often be determined automatically, but we recommend you specify
  285. # it explicitly to prevent problems during startup.
  286. #
  287. # If this is not set to valid DNS name for your host, server-generated
  288. # redirections will not work.  See also the UseCanonicalName directive.
  289. #
  290. # If your host doesn't have a registered DNS name, enter its IP address here.
  291. # You will have to access it by its address anyway, and this will make
  292. # redirections work in a sensible way.
  293. #
  294. ServerName localhost
  295.  
  296. #
  297. # UseCanonicalName: Determines how Apache constructs self-referencing
  298. # URLs and the SERVER_NAME and SERVER_PORT variables.
  299. # When set "Off", Apache will use the Hostname and Port supplied
  300. # by the client.  When set "On", Apache will use the value of the
  301. # ServerName directive.
  302. #
  303. UseCanonicalName Off
  304.  
  305. #
  306. # DocumentRoot: The directory out of which you will serve your
  307. # documents. By default, all requests are taken from this directory, but
  308. # symbolic links and aliases may be used to point to other locations.
  309. #
  310. DocumentRoot "/xampp/htdocs"
  311.  
  312. #
  313. # Each directory to which Apache has access can be configured with respect
  314. # to which services and features are allowed and/or disabled in that
  315. # directory (and its subdirectories).
  316. #
  317. # First, we configure the "default" to be a very restrictive set of
  318. # features.
  319. #
  320. <Directory />
  321.     Options FollowSymLinks
  322.     AllowOverride None
  323. </Directory>
  324.  
  325. #
  326. # Note that from this point forward you must specifically allow
  327. # particular features to be enabled - so if something's not working as
  328. # you might expect, make sure that you have specifically enabled it
  329. # below.
  330. #
  331.  
  332. #
  333. # This should be changed to whatever you set DocumentRoot to.
  334. #
  335. <Directory "/xampp/htdocs">
  336.  
  337. #
  338. # Possible values for the Options directive are "None", "All",
  339. # or any combination of:
  340. #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI Multiviews
  341. #
  342. # Note that "MultiViews" must be named *explicitly* --- "Options All"
  343. # doesn't give it to you.
  344. #
  345. # The Options directive is both complicated and important.  Please see
  346. # http://httpd.apache.org/docs-2.0/mod/core.html#options
  347. # for more information.
  348. #
  349.     Options Indexes FollowSymLinks MultiViews Includes ExecCGI
  350.     AddType text/html .shtml
  351.         AddHandler server-parsed .shtml
  352.         AddHandler cgi-script .cgi .pl
  353. # ReadmeName footer.html
  354. #
  355. # AllowOverride controls what directives may be placed in .htaccess files.
  356. # It can be "All", "None", or any combination of the keywords:
  357. #   Options FileInfo AuthConfig Limit
  358. #
  359.     AllowOverride All
  360.  
  361. #
  362. # Controls who can get stuff from this server.
  363. #
  364.     Order allow,deny
  365.     Allow from all
  366.  
  367. </Directory>
  368.  
  369. #
  370. # UserDir: The name of the directory that is appended onto a user's home
  371. # directory if a ~user request is received.  Be especially careful to use
  372. # proper, forward slashes here.
  373. #
  374. # UserDir "My Documents/My Website"
  375.  
  376. #
  377. # Control access to UserDir directories.  The following is an example
  378. # for a site where these directories are restricted to read-only.
  379. #
  380. # You must correct the path for the root to match your system's configured
  381. # user directory location, e.g. "C:/WinNT/profiles/*/My Documents/My Website"
  382. # or whichever, as appropriate.
  383. #
  384. #<Directory "C:/Documents and Settings/*/My Documents/My Website">
  385. #    AllowOverride FileInfo AuthConfig Limit
  386. #    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
  387. #    <Limit GET POST OPTIONS PROPFIND>
  388. #        Order allow,deny
  389. #        Allow from all
  390. #    </Limit>
  391. #    <LimitExcept GET POST OPTIONS PROPFIND>
  392. #        Order deny,allow
  393. #        Deny from all
  394. #    </LimitExcept>
  395. #</Directory>
  396.  
  397. #
  398. # DirectoryIndex: sets the file that Apache will serve if a directory
  399. # is requested.
  400. #
  401. # The index.html.var file (a type-map) is used to deliver content-
  402. # negotiated documents.  The MultiViews Option can be used for the
  403. # same purpose, but it is much slower.
  404. #
  405. DirectoryIndex index.html index.htm index.php index.php4 index.php3 index.cgi index.pl index.html.var index.phtml
  406.  
  407. #
  408. # AccessFileName: The name of the file to look for in each directory
  409. # for access control information.  See also the AllowOverride directive.
  410. #
  411. AccessFileName .htaccess
  412.  
  413. #
  414. # The following lines prevent .htaccess and .htpasswd files from being
  415. # viewed by Web clients.
  416. #
  417. <Files ~ "^\.ht">
  418.     Order allow,deny
  419.     Deny from all
  420. </Files>
  421.  
  422. #
  423. # TypesConfig describes where the mime.types file (or equivalent) is
  424. # to be found.
  425. #
  426. TypesConfig conf/mime.types
  427.  
  428. #
  429. # DefaultType is the default MIME type the server will use for a document
  430. # if it cannot otherwise determine one, such as from filename extensions.
  431. # If your server contains mostly text or HTML documents, "text/plain" is
  432. # a good value.  If most of your content is binary, such as applications
  433. # or images, you may want to use "application/octet-stream" instead to
  434. # keep browsers from trying to display binary files as though they are
  435. # text.
  436. #
  437. DefaultType text/plain
  438.  
  439. #
  440. # The mod_mime_magic module allows the server to use various hints from the
  441. # contents of the file itself to determine its type.  The MIMEMagicFile
  442. # directive tells the module where the hint definitions are located.
  443. #
  444. <IfModule mod_mime_magic.c>
  445.     MIMEMagicFile conf/magic
  446. </IfModule>
  447.  
  448. #
  449. # HostnameLookups: Log the names of clients or just their IP addresses
  450. # e.g., www.apache.org (on) or 204.62.129.132 (off).
  451. # The default is off because it'd be overall better for the net if people
  452. # had to knowingly turn this feature on, since enabling it means that
  453. # each client request will result in AT LEAST one lookup request to the
  454. # nameserver.
  455. #
  456. HostnameLookups Off
  457.  
  458. #
  459. # ErrorLog: The location of the error log file.
  460. # If you do not specify an ErrorLog directive within a <VirtualHost>
  461. # container, error messages relating to that virtual host will be
  462. # logged here.  If you *do* define an error logfile for a <VirtualHost>
  463. # container, that host's errors will be logged there and not here.
  464. #
  465. ErrorLog logs/error.log
  466.  
  467. #
  468. # LogLevel: Control the number of messages logged to the error.log.
  469. # Possible values include: debug, info, notice, warn, error, crit,
  470. # alert, emerg.
  471. #
  472. LogLevel error
  473.  
  474. #
  475. # The following directives define some format nicknames for use with
  476. # a CustomLog directive (see below).
  477. #
  478. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  479. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  480. LogFormat "%{Referer}i -> %U" referer
  481. LogFormat "%{User-agent}i" agent
  482.  
  483. #
  484. # The location and format of the access logfile (Common Logfile Format).
  485. # If you do not define any access logfiles within a <VirtualHost>
  486. # container, they will be logged here.  Contrariwise, if you *do*
  487. # define per-<VirtualHost> access logfiles, transactions will be
  488. # logged therein and *not* in this file.
  489. #
  490. CustomLog logs/access.log common
  491.  
  492. #
  493. # If you would like to have agent and referer logfiles, uncomment the
  494. # following directives.
  495. #
  496. #CustomLog logs/referer.log referer
  497. #CustomLog logs/agent.log agent
  498.  
  499. #
  500. # If you prefer a single logfile with access, agent, and referer information
  501. # (Combined Logfile Format) you can use the following directive.
  502. #
  503. # CustomLog logs/access.log combined
  504.  
  505. #
  506. # Optionally add a line containing the server version and virtual host
  507. # name to server-generated pages (error documents, FTP directory listings,
  508. # mod_status and mod_info output etc., but not CGI generated documents).
  509. # Set to "EMail" to also include a mailto: link to the ServerAdmin.
  510. # Set to one of:  On | Off | EMail
  511. #
  512. ServerSignature On
  513.  
  514. #
  515. # Aliases: Add here as many aliases as you need (with no limit). The format is
  516. # Alias fakename realname
  517. #
  518. # Note that if you include a trailing / on fakename then the server will
  519. # require it to be present in the URL.  So "/icons" isn't aliased in this
  520. # example, only "/icons/".  If the fakename is slash-terminated, then the
  521. # realname must also be slash terminated, and if the fakename omits the
  522. # trailing slash, the realname must also omit it.
  523. #
  524. # We include the /icons/ alias for FancyIndexed directory listings.  If you
  525. # do not use FancyIndexing, you may comment this out.
  526. #
  527. Alias /icons/ "/xampp/apache/icons/"
  528.  
  529. <Directory "/xampp/apache/icons">
  530.     Options Indexes MultiViews
  531.     AllowOverride None
  532.     Order allow,deny
  533.     Allow from all
  534. </Directory>
  535.  
  536.  
  537. #
  538. # This should be changed to the ServerRoot/manual/.  The alias provides
  539. # the manual, even if you choose to move your DocumentRoot.  You may comment
  540. # this out if you do not care for the documentation.
  541. #
  542. #
  543. # ScriptAlias: This controls which directories contain server scripts.
  544. # ScriptAliases are essentially the same as Aliases, except that
  545. # documents in the realname directory are treated as applications and
  546. # run by the server when requested rather than as documents sent to the client.
  547. # The same rules about trailing "/" apply to ScriptAlias directives as to
  548. # Alias.
  549. #
  550. ScriptAlias /cgi-bin/ "/xampp/cgi-bin/"
  551.  
  552. #
  553. # "/xampp/apache/cgi-bin" should be changed to whatever your ScriptAliased
  554. # CGI directory exists, if you have that configured.
  555. #
  556. <Directory "/xampp/cgi-bin">
  557.     AllowOverride None
  558.     Options Includes ExecCGI
  559.         AddHandler server-parsed .shtml
  560.         AddHandler cgi-script .cgi .pl
  561.     Order allow,deny
  562.     Allow from all
  563. </Directory>
  564.  
  565. #
  566. # Redirect allows you to tell clients about documents which used to exist in
  567. # your server's namespace, but do not anymore. This allows you to tell the
  568. # clients where to look for the relocated document.
  569. # Example:
  570. # Redirect permanent /foo http://www.example.com/bar
  571.  
  572. #
  573. # Directives controlling the display of server-generated directory listings.
  574. #
  575.  
  576. #
  577. # FancyIndexing is whether you want fancy directory indexing or standard.
  578. # VersionSort is whether files containing version numbers should be
  579. # compared in the natural way, so that `apache-1.3.9.tar' is placed before
  580. # `apache-1.3.12.tar'.
  581. #
  582. IndexOptions FancyIndexing VersionSort
  583.  
  584. #
  585. # AddIcon* directives tell the server which icon to show for different
  586. # files or filename extensions.  These are only displayed for
  587. # FancyIndexed directories.
  588. #
  589. AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
  590.  
  591. AddIconByType (TXT,/icons/text.gif) text/*
  592. AddIconByType (IMG,/icons/image2.gif) image/*
  593. AddIconByType (SND,/icons/sound2.gif) audio/*
  594. AddIconByType (VID,/icons/movie.gif) video/*
  595.  
  596. AddIcon /icons/binary.gif .bin .exe
  597. AddIcon /icons/binhex.gif .hqx
  598. AddIcon /icons/tar.gif .tar
  599. AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
  600. AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
  601. AddIcon /icons/a.gif .ps .ai .eps
  602. AddIcon /icons/layout.gif .html .shtml .htm .pdf
  603. AddIcon /icons/text.gif .txt
  604. AddIcon /icons/c.gif .c
  605. AddIcon /icons/p.gif .pl .py
  606. AddIcon /icons/f.gif .for
  607. AddIcon /icons/dvi.gif .dvi
  608. AddIcon /icons/uuencoded.gif .uu
  609. AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
  610. AddIcon /icons/tex.gif .tex
  611. AddIcon /icons/bomb.gif core
  612.  
  613. AddIcon /icons/back.gif ..
  614. AddIcon /icons/hand.right.gif README
  615. AddIcon /icons/folder.gif ^^DIRECTORY^^
  616. AddIcon /icons/blank.gif ^^BLANKICON^^
  617.  
  618. #
  619. # DefaultIcon is which icon to show for files which do not have an icon
  620. # explicitly set.
  621. #
  622. DefaultIcon /icons/unknown.gif
  623.  
  624. #
  625. # AddDescription allows you to place a short description after a file in
  626. # server-generated indexes.  These are only displayed for FancyIndexed
  627. # directories.
  628. # Format: AddDescription "description" filename
  629. #
  630. #AddDescription "GZIP compressed document" .gz
  631. #AddDescription "tar archive" .tar
  632. #AddDescription "GZIP compressed tar archive" .tgz
  633.  
  634. #
  635. # ReadmeName is the name of the README file the server will look for by
  636. # default, and append to directory listings.
  637. #
  638. # HeaderName is the name of a file which should be prepended to
  639. # directory indexes.
  640. ReadmeName README.html
  641. HeaderName HEADER.html
  642.  
  643. #
  644. # IndexIgnore is a set of filenames which directory indexing should ignore
  645. # and not include in the listing.  Shell-style wildcarding is permitted.
  646. #
  647. IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
  648.  
  649. #
  650. # AddEncoding allows you to have certain browsers (Mosaic/X 2.1+) uncompress
  651. # information on the fly. Note: Not all browsers support this.
  652. # Despite the name similarity, the following Add* directives have nothing
  653. # to do with the FancyIndexing customization directives above.
  654. #
  655. AddEncoding x-compress Z
  656. AddEncoding x-gzip gz tgz
  657.  
  658. #
  659. # DefaultLanguage and AddLanguage allows you to specify the language of
  660. # a document. You can then use content negotiation to give a browser a
  661. # file in a language the user can understand.
  662. #
  663. # Specify a default language. This means that all data
  664. # going out without a specific language tag (see below) will
  665. # be marked with this one. You probably do NOT want to set
  666. # this unless you are sure it is correct for all cases.
  667. #
  668. # * It is generally better to not mark a page as
  669. # * being a certain language than marking it with the wrong
  670. # * language!
  671. #
  672. # DefaultLanguage nl
  673. #
  674. # Note 1: The suffix does not have to be the same as the language
  675. # keyword --- those with documents in Polish (whose net-standard
  676. # language code is pl) may wish to use "AddLanguage pl .po" to
  677. # avoid the ambiguity with the common suffix for perl scripts.
  678. #
  679. # Note 2: The example entries below illustrate that in some cases
  680. # the two character 'Language' abbreviation is not identical to
  681. # the two character 'Country' code for its country,
  682. # E.g. 'Danmark/dk' versus 'Danish/da'.
  683. #
  684. # Note 3: In the case of 'ltz' we violate the RFC by using a three char
  685. # specifier. There is 'work in progress' to fix this and get
  686. # the reference data for rfc1766 cleaned up.
  687. #
  688. # Danish (da) - Dutch (nl) - English (en) - Estonian (et)
  689. # French (fr) - German (de) - Greek-Modern (el)
  690. # Italian (it) - Norwegian (no) - Norwegian Nynorsk (nn) - Korean (ko)
  691. # Portugese (pt) - Luxembourgeois* (ltz)
  692. # Spanish (es) - Swedish (sv) - Catalan (ca) - Czech(cz)
  693. # Polish (pl) - Brazilian Portuguese (pt-br) - Japanese (ja)
  694. # Russian (ru) - Croatian (hr)
  695. #
  696. AddLanguage da .dk
  697. AddLanguage nl .nl
  698. AddLanguage en .en
  699. AddLanguage et .et
  700. AddLanguage fr .fr
  701. AddLanguage de .de
  702. AddLanguage he .he
  703. AddLanguage el .el
  704. AddLanguage it .it
  705. AddLanguage ja .ja
  706. AddLanguage pl .po
  707. AddLanguage ko .ko
  708. AddLanguage pt .pt
  709. AddLanguage nn .nn
  710. AddLanguage no .no
  711. AddLanguage pt-br .pt-br
  712. AddLanguage ltz .ltz
  713. AddLanguage ca .ca
  714. AddLanguage es .es
  715. AddLanguage sv .se
  716. AddLanguage cz .cz
  717. AddLanguage ru .ru
  718. AddLanguage tw .tw
  719. AddLanguage zh-tw .tw
  720. AddLanguage hr .hr
  721.  
  722. #
  723. # LanguagePriority allows you to give precedence to some languages
  724. # in case of a tie during content negotiation.
  725. #
  726. # Just list the languages in decreasing order of preference. We have
  727. # more or less alphabetized them here. You probably want to change this.
  728. #
  729. # LanguagePriority en da nl et fr de el it ja ko no pl pt pt-br ltz ca es sv tw
  730.  
  731. #
  732. # ForceLanguagePriority allows you to serve a result page rather than
  733. # MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback)
  734. # [in case no accepted languages matched the available variants]
  735. #
  736. # ForceLanguagePriority Prefer Fallback
  737.  
  738. #
  739. # Specify a default charset for all pages sent out. This is
  740. # always a good idea and opens the door for future internationalisation
  741. # of your web site, should you ever want it. Specifying it as
  742. # a default does little harm; as the standard dictates that a page
  743. # is in iso-8859-1 (latin1) unless specified otherwise i.e. you
  744. # are merely stating the obvious. There are also some security
  745. # reasons in browsers, related to javascript and URL parsing
  746. # which encourage you to always set a default char set.
  747. #
  748. AddDefaultCharset ISO-8859-1
  749.  
  750. #
  751. # Commonly used filename extensions to character sets. You probably
  752. # want to avoid clashes with the language extensions, unless you
  753. # are good at carefully testing your setup after each change.
  754. # See ftp://ftp.isi.edu/in-notes/iana/assignments/character-sets for
  755. # the official list of charset names and their respective RFCs
  756. #
  757. AddCharset ISO-8859-1  .iso8859-1 .latin1
  758. AddCharset ISO-8859-2  .iso8859-2 .latin2 .cen
  759. AddCharset ISO-8859-3  .iso8859-3 .latin3
  760. AddCharset ISO-8859-4  .iso8859-4 .latin4
  761. AddCharset ISO-8859-5  .iso8859-5 .latin5 .cyr .iso-ru
  762. AddCharset ISO-8859-6  .iso8859-6 .latin6 .arb
  763. AddCharset ISO-8859-7  .iso8859-7 .latin7 .grk
  764. AddCharset ISO-8859-8  .iso8859-8 .latin8 .heb
  765. AddCharset ISO-8859-9  .iso8859-9 .latin9 .trk
  766. AddCharset ISO-2022-JP .iso2022-jp .jis
  767. AddCharset ISO-2022-KR .iso2022-kr .kis
  768. AddCharset ISO-2022-CN .iso2022-cn .cis
  769. AddCharset Big5        .Big5       .big5
  770. # For russian, more than one charset is used (depends on client, mostly):
  771. AddCharset WINDOWS-1251 .cp-1251   .win-1251
  772. AddCharset CP866       .cp866
  773. AddCharset KOI8-r      .koi8-r .koi8-ru
  774. AddCharset KOI8-ru     .koi8-uk .ua
  775. AddCharset ISO-10646-UCS-2 .ucs2
  776. AddCharset ISO-10646-UCS-4 .ucs4
  777. AddCharset UTF-8       .utf8
  778.  
  779. # The set below does not map to a specific (iso) standard
  780. # but works on a fairly wide range of browsers. Note that
  781. # capitalization actually matters (it should not, but it
  782. # does for some browsers).
  783. #
  784. # See ftp://ftp.isi.edu/in-notes/iana/assignments/character-sets
  785. # for a list of sorts. But browsers support few.
  786. #
  787. AddCharset GB2312      .gb2312 .gb
  788. AddCharset utf-7       .utf7
  789. AddCharset utf-8       .utf8
  790. AddCharset big5        .big5 .b5
  791. AddCharset EUC-TW      .euc-tw
  792. AddCharset EUC-JP      .euc-jp
  793. AddCharset EUC-KR      .euc-kr
  794. AddCharset shift_jis   .sjis
  795.  
  796. #
  797. # AddType allows you to add to or override the MIME configuration
  798. # file mime.types for specific file types.
  799. #
  800. AddType application/x-tar .tgz
  801. #AddType text/html .shtml
  802. #AddHandler server-parsed .shtml
  803.  
  804.  
  805. #
  806. # AddHandler allows you to map certain file extensions to "handlers":
  807. # actions unrelated to filetype. These can be either built into the server
  808. # or added with the Action directive (see below)
  809. #
  810. # To use CGI scripts outside of ScriptAliased directories:
  811. # (You will also need to add "ExecCGI" to the "Options" directive.)
  812. #
  813. #AddHandler cgi-script .cgi
  814.  
  815. #
  816. # For files that include their own HTTP headers:
  817. #
  818. #AddHandler send-as-is asis
  819.  
  820. #
  821. # For server-parsed imagemap files:
  822. #
  823. #AddHandler imap-file map
  824.  
  825. #
  826. # For type maps (negotiated resources):
  827. # (This is enabled by default to allow the Apache "It Worked" page
  828. #  to be distributed in multiple languages.)
  829. #
  830. AddHandler type-map var
  831.  
  832. # Filters allow you to process content before it is sent to the client.
  833. #
  834. # To parse .shtml files for server-side includes (SSI):
  835. # (You will also need to add "Includes" to the "Options" directive.)
  836. #
  837. #AddOutputFilter INCLUDES .shtml
  838.  
  839. #
  840. # Action lets you define media types that will execute a script whenever
  841. # a matching file is called. This eliminates the need for repeated URL
  842. # pathnames for oft-used CGI file processors.
  843. # Format: Action media/type /cgi-script/location
  844. # Format: Action handler-name /cgi-script/location
  845. #
  846.  
  847. #
  848. # Customizable error responses come in three flavors:
  849. # 1) plain text 2) local redirects 3) external redirects
  850. #
  851. # Some examples:
  852. #ErrorDocument 500 "The server made a boo boo."
  853. #ErrorDocument 404 /missing.html
  854. #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
  855. #ErrorDocument 402 http://www.example.com/subscription_info.html
  856. #
  857.  
  858. #
  859. # Putting this all together, we can Internationalize error responses.
  860. #
  861. # We use Alias to redirect any /error/HTTP_<error>.html.var response to
  862. # our collection of by-error message multi-language collections.  We use
  863. # includes to substitute the appropriate text.
  864. #
  865. # You can modify the messages' appearance without changing any of the
  866. # default HTTP_<error>.html.var files by adding the line;
  867. #
  868. #   Alias /error/include/ "/your/include/path/"
  869. #
  870. # which allows you to create your own set of files by starting with the
  871. # /xampp/apache/error/include/ files and
  872. # copying them to /your/include/path/, even on a per-VirtualHost basis.
  873. #
  874.  
  875. <IfModule mod_negotiation.c>
  876. <IfModule mod_include.c>
  877.     Alias /error/ "/xampp/apache/error/"
  878.  
  879.     <Directory "/xampp/apache/error">
  880.         AllowOverride None
  881.         Options IncludesNoExec
  882.         AddOutputFilter Includes html
  883.         AddHandler type-map var
  884.         Order allow,deny
  885.         Allow from all
  886.         LanguagePriority en es de fr
  887.         ForceLanguagePriority Prefer Fallback
  888.     </Directory>
  889.  
  890.     ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
  891.     ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
  892.     ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
  893.     ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
  894.     ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
  895.     ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
  896.     ErrorDocument 410 /error/HTTP_GONE.html.var
  897.     ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
  898.     ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
  899.     ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
  900.     ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
  901.     ErrorDocument 415 /error/HTTP_SERVICE_UNAVAILABLE.html.var
  902.     ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
  903.     ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
  904.     ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
  905.     ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
  906.     ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var
  907.  
  908. </IfModule>
  909. </IfModule>
  910.  
  911. #
  912. # The following directives modify normal HTTP response behavior to
  913. # handle known problems with browser implementations.
  914. #
  915. BrowserMatch "Mozilla/2" nokeepalive
  916. BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
  917. BrowserMatch "RealPlayer 4\.0" force-response-1.0
  918. BrowserMatch "Java/1\.0" force-response-1.0
  919. BrowserMatch "JDK/1\.0" force-response-1.0
  920.  
  921. #
  922. # The following directive disables redirects on non-GET requests for
  923. # a directory that does not include the trailing slash.  This fixes a
  924. # problem with Microsoft WebFolders which does not appropriately handle
  925. # redirects for folders with DAV methods.
  926. #
  927. BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
  928. BrowserMatch "^WebDrive" redirect-carefully
  929.  
  930. #
  931. # Allow server status reports, with the URL of http://servername/server-status
  932. # Change the ".localhost" to match your domain to enable.
  933. #
  934. #<Location /server-status>
  935. #    SetHandler server-status
  936. #    Order deny,allow
  937. #    Deny from all
  938. #    Allow from .localhost
  939. #</Location>
  940.  
  941. #
  942. # Allow remote server configuration reports, with the URL of
  943. #  http://servername/server-info (requires that mod_info.c be loaded).
  944. # Change the ".your-domain.com" to match your domain to enable.
  945. #
  946. #<Location /server-info>
  947. #    SetHandler server-info
  948. #    Order deny,allow
  949. #    Deny from all
  950. #    Allow from .localhost
  951. #</Location>
  952.  
  953. #
  954. # Proxy Server directives. Uncomment the following lines to
  955. # enable the proxy server:
  956. #
  957. #<IfModule mod_proxy.c>
  958. #ProxyRequests On
  959. #
  960. #<Proxy *>
  961. #    Order deny,allow
  962. #    Deny from all
  963. #    Allow from .your-domain.com
  964. #</Proxy>
  965.  
  966. #
  967. # Enable/disable the handling of HTTP/1.1 "Via:" headers.
  968. # ("Full" adds the server version; "Block" removes all outgoing Via: headers)
  969. # Set to one of: Off | On | Full | Block
  970. #
  971. #ProxyVia On
  972.  
  973. #
  974. # To enable the cache as well, edit and uncomment the following lines:
  975. # (no cacheing without CacheRoot)
  976. #
  977. #CacheRoot "/xampp/apache/proxy"
  978. #CacheSize 5
  979. #CacheGcInterval 4
  980. #CacheMaxExpire 24
  981. #CacheLastModifiedFactor 0.1
  982. #CacheDefaultExpire 1
  983. #NoCache a-domain.com another-domain.edu joes.garage-sale.com
  984.  
  985. #</IfModule>
  986. # End of proxy directives.
  987.  
  988.  
  989.  
  990. # VirtualHost: If you want to maintain multiple domains/hostnames on your
  991. # machine you can setup VirtualHost containers for them. Most configurations
  992. # use only name-based virtual hosts so the server doesn't need to worry about
  993. # IP addresses. This is indicated by the asterisks in the directives below.
  994. #
  995. # Please see the documentation at
  996. # <URL:http://httpd.apache.org/docs-2.0/vhosts/>
  997. # for further details before you try to setup virtual hosts.
  998. #
  999. # You may use the command line option '-S' to verify your virtual host
  1000. # configuration.
  1001.  
  1002. #
  1003. # Use name-based virtual hosting.
  1004. #
  1005. #NameVirtualHost *
  1006.  
  1007. #
  1008. # VirtualHost example:
  1009. # Almost any Apache directive may go into a VirtualHost container.
  1010. # The first VirtualHost section is used for requests without a known
  1011. # server name.
  1012. #
  1013. #<VirtualHost *>
  1014. #    ServerAdmin webmaster@dummy-host.example.com
  1015. #    DocumentRoot /www/docs/dummy-host.example.com
  1016. #    ServerName dummy-host.example.com
  1017. #    ErrorLog logs/dummy-host.example.com-error_log
  1018. #    CustomLog logs/dummy-host.example.com-access_log common
  1019. #</VirtualHost>
  1020.  
  1021. Win32DisableAcceptEx ON